1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-16 10:04:14 +02:00

Add microsecond precision to time

This commit is contained in:
Kamisama
2012-10-17 18:06:36 -04:00
parent 9b3524a92d
commit afe921b89d

View File

@@ -103,7 +103,7 @@ class CubeHandler extends AbstractProcessingHandler
{ {
$date = $record['datetime']; $date = $record['datetime'];
$data = array('time' => $date->format('Y-m-d H:i:s')); $data = array('time' => $date->format('Y-m-d\TH:i:s.u'));
unset($record['datetime']); unset($record['datetime']);
if (isset($record['context']['type'])) { if (isset($record['context']['type'])) {