Merge pull request #8004 from MrPetovan/bug/7994-add-timezone-log

Add timezone information to logger timestamp
This commit is contained in:
Michael Vogel 2019-12-25 19:52:19 +01:00 committed by GitHub
commit 65c0418807
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) . ' ';