when@prod:
    monolog:
        handlers:
            main:
                type: fingers_crossed
                action_level: error
                handler: nested
                excluded_http_codes: [404, 405]
                buffer_size: 50
            nested:
                type: stream
                path: "%kernel.logs_dir%/%kernel.environment%.log"
                level: debug
                formatter: monolog.formatter.json
            console:
                type: console
                process_psr_3_messages: false
                channels: ["!event", "!doctrine"]
            # Handler pour les logs de sécurité en production
            security:
                type: rotating_file
                path: "%kernel.logs_dir%/security.log"
                level: info
                channels: ["security"]
                max_files: 30
                formatter: monolog.formatter.json