1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-04 20:27:31 +02:00

Merge pull request #60 from mlehner/microseconds

Add microseconds to the DateTime object
This commit is contained in:
Jordi Boggiano
2012-02-23 00:44:02 -08:00

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