Add timezone information to logger timestamp

2022.09-rc
Hypolite Petovan 2019-12-24 16:06:39 -05:00
rodzic 2056e6a5c4
commit 61c6daeff0
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -138,7 +138,7 @@ class StreamLogger extends AbstractLogger
$record = array_merge($record, ['uid' => $this->logUid, 'process_id' => $this->pid]);
$logMessage = '';
$logMessage .= DateTimeFormat::utcNow() . ' ';
$logMessage .= DateTimeFormat::utcNow(DateTimeFormat::ATOM) . ' ';
$logMessage .= $this->channel . ' ';
$logMessage .= '[' . strtoupper($level) . ']: ';
$logMessage .= $this->psrInterpolate($message, $context) . ' ';