Set Timezone to 'UTC' for every Logger (Develop)

This commit is contained in:
Philipp Holzer 2019-03-09 14:36:32 +01:00 committed by Hypolite Petovan
parent 2d263b08e3
commit d03dedee63
2 changed files with 4 additions and 1 deletions

View file

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