mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-27 00:25:50 +03:00
[GH-ISSUE #749] NullHandler doesn't bubble #283
Labels
No labels
Bug
Documentation
Feature
Needs Work
Support
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/monolog#283
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @apflieger on GitHub (Mar 19, 2016).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/749
The current implementation of NullHandler doesn't allow the handler to bubble, it doesn't care about the
bubbleattrbute at all.Here's a use case of having the NullHandler to bubble :
I'm using MonologBundle and I configure it to have the same handlers for all symfony's environments. I still need to disable some handlers so I simply override the type to "null" in config_*.yml and expect them to be noop and bubble.
Anyway, it's weird that it behaves differently from all other handlers (I suppose all, I didn't check)
Let me know what you think about it :)
@Seldaek commented on GitHub (Mar 22, 2016):
The point of the null handler is to suppress all log records, so if it bubbled it would just become a noop and might as well not be there. You could use a type group or something instead if you want a noop.