diff --git a/config/packages/monolog.yaml b/config/packages/monolog.yaml index 8c9efa9..136f7f0 100644 --- a/config/packages/monolog.yaml +++ b/config/packages/monolog.yaml @@ -30,7 +30,7 @@ when@test: type: fingers_crossed action_level: error handler: nested - excluded_http_codes: [404, 405] + excluded_http_codes: [400, 404, 405] channels: ["!event"] nested: type: stream @@ -40,22 +40,8 @@ when@test: when@prod: monolog: handlers: + # We want normal production logs, which all go to ELK. No need for fancy action_levels. main: - type: fingers_crossed - action_level: error - 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 - level: debug - formatter: monolog.formatter.json - console: - type: console - process_psr_3_messages: false - channels: ["!event", "!doctrine"] - deprecation: type: stream - channels: [deprecation] - path: php://stderr + path: "%kernel.logs_dir%/%kernel.environment%.log" + level: info