OutputLogHandler: enhance the formatter.
This commit is contained in:
parent
dc431762d4
commit
bd54ee9905
1 changed files with 13 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue