Below is my monologue configuration. This is confirmed by the work of sending critical errors, as well as registering "errors" and higher to a file. I also split the various channels for file sharing. Other channels seem to cause errors much less than a "request", so it makes sense to split them into production for me. Understand that this is not your question, but I hope this helps someone else; It can satisfy all requirements.
monolog: handlers: main: level: error type: stream path: "%kernel.logs_dir%/%kernel.environment%_remaining.log" channels: ["!doctrine", "!request", "!security"] request: type: fingers_crossed handler: requests excluded_404s: - ^/phpmyadmin requests: type: group members: [request_critical, request_error] request_critical: level: critical type: stream path: "%kernel.logs_dir%/%kernel.environment%_request_critical.log" channels: [request] request_error: level: error type: stream path: "%kernel.logs_dir%/%kernel.environment%_request.log" channels: [request] doctrine: level: error type: stream path: "%kernel.logs_dir%/%kernel.environment%_doctrine.log" channels: [doctrine] security: level: error type: stream path: "%kernel.logs_dir%/%kernel.environment%_security.log" channels: [security] mail: type: fingers_crossed action_level: critical handler: buffered buffered: type: buffer handler: swift swift: type: swift_mailer from_email: aj.cerqueti@example.com to_email: aj.cerqueti@example.com subject: A critical error occurred
source share