Log format
This commit is contained in:
parent
ff162dfef2
commit
7f7ed16dc2
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ class LoggerFactory
|
||||||
if ($logger instanceof Monolog\Logger) {
|
if ($logger instanceof Monolog\Logger) {
|
||||||
$fileHandler = new Monolog\Handler\StreamHandler($stream . ".1", Monolog\Logger::toMonologLevel($level));
|
$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);
|
$fileHandler->setFormatter($formatter);
|
||||||
|
|
||||||
$logger->pushHandler($fileHandler);
|
$logger->pushHandler($fileHandler);
|
||||||
|
|
Loading…
Reference in a new issue