1
0
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:
Alexandru Vilau 2012-07-22 04:03:43 +02:00
parent 59fb9f41be
commit 0f89a6b267

View File

@ -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');
}
}