1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-24 01:56:18 +02:00

Add microseconds to the DateTime object

This commit is contained in:
Matt Lehner
2012-02-22 17:49:17 -05:00
parent 8d4ac5c0f7
commit 61a49453ed

View File

@@ -168,7 +168,7 @@ class Logger
'level' => $level,
'level_name' => self::getLevelName($level),
'channel' => $this->name,
'datetime' => new \DateTime(),
'datetime' => \DateTime::createFromFormat('U.u', microtime(true)),
'extra' => array(),
);
// check if any message will handle this message