Add timezone information to logger timestamp
This commit is contained in:
parent
2056e6a5c4
commit
61c6daeff0
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ class StreamLogger extends AbstractLogger
|
||||||
$record = array_merge($record, ['uid' => $this->logUid, 'process_id' => $this->pid]);
|
$record = array_merge($record, ['uid' => $this->logUid, 'process_id' => $this->pid]);
|
||||||
$logMessage = '';
|
$logMessage = '';
|
||||||
|
|
||||||
$logMessage .= DateTimeFormat::utcNow() . ' ';
|
$logMessage .= DateTimeFormat::utcNow(DateTimeFormat::ATOM) . ' ';
|
||||||
$logMessage .= $this->channel . ' ';
|
$logMessage .= $this->channel . ' ';
|
||||||
$logMessage .= '[' . strtoupper($level) . ']: ';
|
$logMessage .= '[' . strtoupper($level) . ']: ';
|
||||||
$logMessage .= $this->psrInterpolate($message, $context) . ' ';
|
$logMessage .= $this->psrInterpolate($message, $context) . ' ';
|
||||||
|
|
Loading…
Reference in a new issue