mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-01 02:40:24 +02:00
JsonFormatter::normalize() : respect date format from Formatter
This commit is contained in:
committed by
Jordi Boggiano
parent
0f7b11d383
commit
b2ad71de59
@@ -173,6 +173,10 @@ class JsonFormatter extends NormalizerFormatter
|
|||||||
return $normalized;
|
return $normalized;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($data instanceof \DateTimeInterface) {
|
||||||
|
return $this->formatDate($data);
|
||||||
|
}
|
||||||
|
|
||||||
if ($data instanceof Throwable) {
|
if ($data instanceof Throwable) {
|
||||||
return $this->normalizeException($data, $depth);
|
return $this->normalizeException($data, $depth);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user