OutputLogHandler: enhance the formatter.

This commit is contained in:
Adirelle 2015-04-28 07:44:42 +02:00
commit bd54ee9905

View file

@ -60,5 +60,18 @@ class OutputLogHandler extends AbstractProcessingHandler
}
$output->write($record['formatted']);
/**
* Enable the enhancements of the default formatter.
*
* @return FormatterInterface
*/
protected function getDefaultFormatter()
{
$formatter = parent::getDefaultFormatter();
$formatter->ignoreEmptyContextAndExtra(true);
$formatter->allowInlineLineBreaks(true);
$formatter->includeStacktraces(true);
return $formatter;
}
}