feat(monolog): Simplifie la configuration de Monolog pour un meilleur logging.

This commit is contained in:
Serreau Jovann
2025-11-22 21:17:47 +01:00
parent 35a473e53f
commit 58f45ce84c

View File

@@ -41,22 +41,11 @@ when@prod:
monolog:
handlers:
main:
type: fingers_crossed
action_level: debug
handler: nested
excluded_http_codes: [404, 405]
buffer_size: 50 # How many messages should be saved? Prevent memory leaks
nested:
type: stream
path: php://stderr
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
formatter: monolog.formatter.json
channels: ["!event"]
console:
type: console
process_psr_3_messages: false
channels: ["!event", "!doctrine"]
deprecation:
type: stream
channels: [deprecation]
path: php://stderr
formatter: monolog.formatter.json
channels: ["!event", "!doctrine", "!console"]