Browse Source

Add timezone information to logger timestamp

pull/8004/head
Hypolite Petovan 1 year ago
parent
commit
61c6daeff0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Util/Logger/StreamLogger.php

+ 1
- 1
src/Util/Logger/StreamLogger.php 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) . ' ';


Loading…
Cancel
Save