From 9dbf0c72a1aa4ac7d6aeaf3db28be520bdae9f22 Mon Sep 17 00:00:00 2001 From: thisfro Date: Mon, 17 Jan 2022 17:00:15 +0100 Subject: [PATCH] Add file logging in prod as well --- config/packages/prod/monolog.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/packages/prod/monolog.yaml b/config/packages/prod/monolog.yaml index 2c02ad8..3d601d4 100644 --- a/config/packages/prod/monolog.yaml +++ b/config/packages/prod/monolog.yaml @@ -15,3 +15,7 @@ monolog: type: console process_psr_3_messages: false channels: ["!event", "!doctrine"] + file: + type: stream + path: "%kernel.logs_dir%/%kernel.environment%.log" + level: debug