monolog:
    channels: ['pipeline', 'ergonode', 'vertex', 'image', 'cost', 'audit']

when@dev:
    monolog:
        handlers:
            main:
                type: stream
                path: "%kernel.logs_dir%/%kernel.environment%.log"
                level: debug
                formatter: app.monolog.json_formatter
                channels: ["!event", "!doctrine", "!deprecation"]
            console:
                type: console
                process_psr_3_messages: false
                channels: ["!event", "!doctrine", "!console"]

when@prod:
    monolog:
        handlers:
            main:
                # Structured JSON to stdout/stderr for the Digt observability stack to ship.
                type: stream
                path: "php://stderr"
                level: info
                formatter: app.monolog.json_formatter
                channels: ["!event", "!doctrine"]

when@test:
    monolog:
        handlers:
            main:
                type: stream
                path: "%kernel.logs_dir%/test.log"
                level: error
                channels: ["!event", "!doctrine"]
