Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
Log deprecations on a dedicated Monolog channel#36621
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
a62d9e2 to9867d58Compare
nicolas-grekas left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM!
I'm wondering: is there a way to make the new channel a kind of alias for the "php" one, so that deprecations follow the same path as the php logs by default?
Note: if this PR is merged, it'll be possible to remove deprecation_filter Monolog handler in the Monolog bundle recipe.
yes! and we could move them to a NullLogger by default for the prod env
Uh oh!
There was an error while loading.Please reload this page.
9867d58 to18200f8Comparel-vo commentedApr 30, 2020
Do you mean to use the same handler(s) as |
nicolas-grekas commentedMay 4, 2020
Yes, that's a possibility. I fear that logging deprecations to a new channel might break apps that configured the php channel and expect deprecations to go there. Ideally, we'd figure out a way to make the new channel opt-in somehow. |
Uh oh!
There was an error while loading.Please reload this page.
l-vo commentedMay 4, 2020
Logging to specific channel is now disabled by default (the service |
nicolas-grekas left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Nice!
Please consider a doc PR as this will have to be documented appropriately.
fabpot commentedMay 5, 2020
Thank you@l-vo. |
l-vo commentedMay 5, 2020
PR to documentation added |
Uh oh!
There was an error while loading.Please reload this page.
This PR allows to activate a specific channel for deprecations.
Base configuration
Deprecation specific channel enabled: