collection-crud/config/packages/dev/monolog.php

18 lines
470 B
PHP
Raw Normal View History

2022-11-17 15:32:57 -05:00
<?php declare(strict_types=1);
2022-11-03 10:44:05 -04:00
2022-11-17 15:32:57 -05:00
use Symfony\Config\MonologConfig;
2022-11-03 10:44:05 -04:00
2022-11-17 15:32:57 -05:00
return static function (MonologConfig $config): void {
$config->handler('main', [
'type' => 'stream',
'path' => '%kernel.logs_dir%/%kernel.environment%.log',
'level' => 'debug',
'channels' => ['elements' => ['!event']]
]);
$config->handler('console', [
'type' => 'console',
'process_psr_3_messages' => false,
'channels' => ['elements' => ['!event', '!doctrine', '!console']]
]);
2022-11-03 10:44:05 -04:00
};