Remove deprecation logging by default and added env to reenable it again

The files can easily get quite large and probably also not good for performance. This fixes issue #1405
This commit is contained in:
Jan Böhmer 2026-06-14 23:19:59 +02:00
parent ef7e6d6f3b
commit 12f4a3606e
3 changed files with 17 additions and 1 deletions

View file

@ -51,6 +51,7 @@ when@prod:
type: stream
channels: [deprecation]
path: "%kernel.logs_dir%/%kernel.environment%_deprecations.log"
level: "%env(DEPRECATION_LOG_LEVEL)%"
when@docker:
monolog:
@ -75,3 +76,4 @@ when@docker:
type: stream
channels: [deprecation]
path: "%kernel.logs_dir%/%kernel.environment%_deprecations.log"
level: "%env(DEPRECATION_LOG_LEVEL)%"