diff --git a/config/packages/monolog.yaml b/config/packages/monolog.yaml index 1b93bab..c533f37 100644 --- a/config/packages/monolog.yaml +++ b/config/packages/monolog.yaml @@ -8,6 +8,7 @@ monolog: - admin_actions - security - php + - error - deprecation # Deprecations are logged in the dedicated "deprecation" channel when it exists when@dev: @@ -48,7 +49,7 @@ when@test: when@prod: monolog: handlers: - error: + critical_error: type: fingers_crossed action_level: critical handler: error_nested @@ -60,6 +61,13 @@ when@prod: level: debug max_files: 30 + error: + type: rotating_file + path: "%kernel.logs_dir%/error.log" + level: error # logs error, critical, alert, emergency + max_files: 30 + channels: [ error ] + php_errors: type: rotating_file path: "%kernel.logs_dir%/php_error.log"