mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-05 12:47:39 +02:00
Merge pull request #1496 from Pierre-Lannoy/patch-1
Support for extended RFC5424 timestamp format
This commit is contained in:
@@ -25,10 +25,12 @@ class SyslogUdpHandler extends AbstractSyslogHandler
|
||||
{
|
||||
const RFC3164 = 0;
|
||||
const RFC5424 = 1;
|
||||
const RFC5424e = 2;
|
||||
|
||||
private $dateFormats = array(
|
||||
self::RFC3164 => 'M d H:i:s',
|
||||
self::RFC5424 => \DateTime::RFC3339,
|
||||
self::RFC5424e => \DateTime::RFC3339_EXTENDED,
|
||||
);
|
||||
|
||||
protected $socket;
|
||||
|
Reference in New Issue
Block a user