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 {
|
2023-07-21 10:35:15 -04:00
|
|
|
$config->handler('main', [
|
2022-11-17 15:32:57 -05:00
|
|
|
'type' => 'stream',
|
|
|
|
'path' => '%kernel.logs_dir%/%kernel.environment%.log',
|
|
|
|
'level' => 'debug',
|
2023-07-21 10:35:15 -04:00
|
|
|
'channels' => ['elements' => ['!event']],
|
2022-11-17 15:32:57 -05:00
|
|
|
]);
|
|
|
|
$config->handler('console', [
|
|
|
|
'type' => 'console',
|
2023-07-21 10:35:15 -04:00
|
|
|
'process_psr_3_messages' => FALSE,
|
|
|
|
'channels' => ['elements' => ['!event', '!doctrine', '!console']],
|
2022-11-17 15:32:57 -05:00
|
|
|
]);
|
2022-11-03 10:44:05 -04:00
|
|
|
};
|