38 lines
1.1 KiB
PHP
Executable File
38 lines
1.1 KiB
PHP
Executable File
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
|
|
|
return static function (ContainerConfigurator $containerConfigurator): void {
|
|
$containerConfigurator->extension('monolog', [
|
|
'channels' => ['ai'],
|
|
'handlers' => [
|
|
'ai' => [
|
|
'type' => 'stream',
|
|
'path' => '%kernel.logs_dir%/ai.log',
|
|
'level' => 'debug',
|
|
'channels' => ['ai'],
|
|
],
|
|
|
|
'main' => [
|
|
'type' => 'fingers_crossed',
|
|
'action_level' => 'error',
|
|
'handler' => 'nested',
|
|
'excluded_http_codes' => [404, 405],
|
|
'buffer_size' => 50,
|
|
],
|
|
'nested' => [
|
|
'type' => 'stream',
|
|
'path' => '%kernel.logs_dir%/%kernel.environment%.log',
|
|
'level' => 'debug',
|
|
],
|
|
'console' => [
|
|
'type' => 'console',
|
|
'process_psr_3_messages' => false,
|
|
'channels' => ['!event', '!doctrine'],
|
|
],
|
|
],
|
|
]);
|
|
};
|