From 8c252ebf8465348b8c6aaee068e8b63cac2dac79 Mon Sep 17 00:00:00 2001 From: Michiel Kodde Date: Tue, 16 Apr 2024 15:13:44 +0200 Subject: [PATCH] Sync the monolog config --- config/packages/monolog.yaml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/config/packages/monolog.yaml b/config/packages/monolog.yaml index 755ba3dc..49d7b71b 100644 --- a/config/packages/monolog.yaml +++ b/config/packages/monolog.yaml @@ -4,21 +4,25 @@ monolog: type: fingers_crossed action_level: ERROR passthru_level: NOTICE # this means that all message of level NOTICE or higher are always logged + channels: [ "!event" ] handler: main_syslog bubble: false # if we handle it, nothing else should main_syslog: type: stream path: "php://stderr" formatter: surfnet_stepup.monolog.json_formatter - console: - type: console - process_psr_3_messages: false + channels: [ "!event" ] when@dev: +when@test: monolog: handlers: - prod-signaler: - channels: ['!event'] - type: fingers_crossed - action_level: INFO - passthru_level: INFO + main_syslog: + type: stream + path: php://stderr + level: error + channels: ["!event", "!doctrine", "!deprecation", "!console"] + console: + type: console + process_psr_3_messages: false + channels: ["!event", "!doctrine", "!deprecation", "!console"]