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: rotating_file
            path: "%kernel.logs_dir%/%kernel.environment%.log"
            level: warning
            max_files: 30
        console:
            type: console
            process_psr_3_messages: false
            level: warning
            channels: ["!event", "!doctrine"]
        iservice_logging:
            type: rotating_file
            path: "%kernel.logs_dir%/iservice.log"
            level: warning
            channels: [ "iservice" ]
            max_files: 30
            formatter: monolog.formatter.iservice
        access_logging:
            type: rotating_file
            path: "%kernel.logs_dir%/access.log"
            level: warning
            channels: [ "access" ]
            max_files: 30
            formatter: monolog.formatter.iservice
        error_logging:
            type: rotating_file
            path: "%kernel.logs_dir%/error.log"
            level: warning
            channels: [ "error" ]
            formatter: monolog.formatter.iservice
            max_files: 30
        command_logging:
            type: rotating_file
            max_files: 30
            path: "%kernel.logs_dir%/command.log"
            level: warning
            channels: [ "command" ]
            formatter: monolog.formatter.command
        client_logging:
            type: rotating_file
            max_files: 30
            path: "%kernel.logs_dir%/clientError.log"
            level: warning
            channels: [ "client" ]
            formatter: monolog.formatter.iservice
        messenger_logging:
            type: rotating_file
            max_files: 30
            path: "%kernel.logs_dir%/messenger.log"
            level: warning
            channels: [ "messenger" ]
        logscale_logging:
            type: rotating_file
            max_files: 2
            path: "%kernel.logs_dir%/logscale.log"
            level: info
            channels: [ "iservice", "access", "error", "client", "logscale", "messenger" ]
            formatter: monolog.formatter.logscale
        logscale_command_logging:
            type: rotating_file
            max_files: 30
            path: "%kernel.logs_dir%/logscale-command.log"
            level: warning
            channels: [ "command" ]
            formatter: monolog.formatter.logscale