From f54f953029947bfa7064200165403ec46954bdfc Mon Sep 17 00:00:00 2001 From: Charles Date: Mon, 1 Dec 2025 13:53:01 +0100 Subject: [PATCH] Add error log and phph error log --- config/packages/monolog.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/config/packages/monolog.yaml b/config/packages/monolog.yaml index 61695d0..42ca320 100644 --- a/config/packages/monolog.yaml +++ b/config/packages/monolog.yaml @@ -7,6 +7,7 @@ monolog: - email_notifications - admin_actions - security + - php - deprecation # Deprecations are logged in the dedicated "deprecation" channel when it exists when@dev: @@ -47,6 +48,24 @@ when@test: when@prod: monolog: handlers: + error: + type: fingers_crossed + action_level: critical + handler: error_nested + buffer_size: 50 + + error_nested: + type: rotating_file + path: "%kernel.logs_dir%/error.log" + level: debug + max_files: 30 + + php_errors: + type: rotating_file + path: "%kernel.logs_dir%/php_error.log" + level: warning # warnings, errors, fatals… + max_files: 30 + channels: [ php ] # User Management user_management: type: stream