Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusing example of the console monolog handler #20700

Open
speller opened this issue Feb 28, 2025 · 0 comments
Open

Confusing example of the console monolog handler #20700

speller opened this issue Feb 28, 2025 · 0 comments
Labels

Comments

@speller
Copy link

speller commented Feb 28, 2025

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?

@xabbuh xabbuh added the Logger label Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants