mirror of
https://github.com/Seldaek/monolog.git
synced 2025-02-24 06:52:34 +01:00
Improved default line formatter for syslog handler
This commit is contained in:
parent
59fb9f41be
commit
0f89a6b267
@ -107,4 +107,12 @@ class SyslogHandler extends AbstractProcessingHandler
|
||||
{
|
||||
syslog($this->logLevels[$record['level']], (string) $record['formatted']);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function getDefaultFormatter()
|
||||
{
|
||||
return new LineFormatter('%channel%.%level_name%: %message% %context% %extra%\n');
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user