monolog:
    #channels: ~

when@dev:
    monolog:
        channels: ['promohotel6']
        handlers:
            main:
                type: stream
                path: "%kernel.logs_dir%/%kernel.environment%.log"
                level: debug
                channels: ["!event", "!promohotel6"]            
            promohotel6:
                type: stream
                path: "%kernel.logs_dir%/promohotel6.log"
                level: debug
                channels: [ "promohotel6" ]            
            #traveltodo:
                #type: stream
                #path: '%kernel.logs_dir%/travel_todo.log'
                #level: debug
                #channels: [ "traveltodo" ]

            console:
                type: console
                process_psr_3_messages: false
                channels: ["!event", "!doctrine", "!console"]

when@test:
    monolog:
        handlers:
            main:
                type: fingers_crossed
                action_level: error
                handler: nested
                excluded_http_codes: [404, 405]
                channels: ["!event"]
            nested:
                type: stream
                path: "%kernel.logs_dir%/%kernel.environment%.log"
                level: debug

when@prod:
    monolog:
        #handlers:
            #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
                #formatter: monolog.formatter.json
        channels: ['promohotel6']
        handlers:
            main:
                type: stream
                path: "%kernel.logs_dir%/%kernel.environment%.log"
                level: debug
                channels: ["!event", "!promohotel6"]            
            promohotel6:
                type: stream
                path: "%kernel.logs_dir%/promohotel6.log"
                level: debug
                channels: [ "promohotel6" ]            
            #traveltodo:
                #type: stream
                #path: '%kernel.logs_dir%/travel_todo.log'
                #level: debug
                #channels: [ "traveltodo" ]

            console:
                type: console
                process_psr_3_messages: false
                channels: ["!event", "!doctrine", "!console"]