Merge pull request #8004 from MrPetovan/bug/7994-add-timezone-log
Add timezone information to logger timestamp
This commit is contained in:
commit
65c0418807
|
@ -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) . ' ';
|
||||
|
|
Loading…
Reference in a new issue