Skip to content

Confusing example of the console monolog handler #20700

@speller

Description

@speller

The page https://symfony.com/doc/current/logging/monolog_console.html suggests the following console handler:

# config/packages/dev/monolog.yaml monolog: handlers: # ... console: type: console process_psr_3_messages: false channels: ['!event', '!doctrine', '!console']

At the same time, it excludes the console channel by having the !console exclusion config value. How does it work if it doesn't accept messages from the console channel?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions