Browse Source

Log format

pull/6482/head
Philipp Holzer 2 years ago
committed by Hypolite Petovan
parent
commit
7f7ed16dc2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Util/LoggerFactory.php

+ 1
- 1
src/Util/LoggerFactory.php View File

@ -70,7 +70,7 @@ class LoggerFactory
if ($logger instanceof Monolog\Logger) {
$fileHandler = new Monolog\Handler\StreamHandler($stream . ".1", Monolog\Logger::toMonologLevel($level));
$formatter = new Monolog\Formatter\LineFormatter("%channel% [%level_name%]: %message% %context% %extra%");
$formatter = new Monolog\Formatter\LineFormatter("%datetime% %channel% [%level_name%]: %message% %context% %extra%\n");
$fileHandler->setFormatter($formatter);
$logger->pushHandler($fileHandler);


Loading…
Cancel
Save