From 0067c6ac72d61ea705fea64a87cf86e130b6a988 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Fri, 1 Mar 2024 17:32:10 +0100 Subject: [PATCH] Drop %kernel.logs_dir%/%kernel.environment%.log log --- config/packages/monolog.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/config/packages/monolog.yaml b/config/packages/monolog.yaml index 9db7d8a..bf05452 100644 --- a/config/packages/monolog.yaml +++ b/config/packages/monolog.yaml @@ -7,8 +7,9 @@ when@dev: handlers: main: type: stream - path: "%kernel.logs_dir%/%kernel.environment%.log" + path: php://stderr level: debug + formatter: monolog.formatter.line channels: ["!event"] # uncomment to get logging in your browser # you may have to allow bigger header sizes in your Web server configuration @@ -50,7 +51,7 @@ when@prod: type: stream path: php://stderr level: debug - formatter: monolog.formatter.json + formatter: monolog.formatter.line console: type: console process_psr_3_messages: false @@ -59,4 +60,4 @@ when@prod: type: stream channels: [deprecation] path: php://stderr - formatter: monolog.formatter.json + formatter: monolog.formatter.line -- 2.41.1