mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-26 08:05:53 +03:00
[GH-ISSUE #569] Can we please supply complete $record to Handler::isHandling? #196
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#196
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 @rpkamp on GitHub (Jun 1, 2015).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/569
Logger::addRecord() on line 241 now reads
while this used to be
In our current setup we check if a handler needs to be handling a message based on some value in
$record['context']but obviously we can't check this anymore because of this change.Could this change be reverted and pass the full
$recordagain toHandler::isHandling?@Seldaek commented on GitHub (Jun 1, 2015):
The idea was to do a very slim check before calling anything, but you can just return true there based on level and then ignore records that you don't want in handle() it should be harmless. See
github.com/Seldaek/monolog@556c56483f/src/Monolog/Handler/HandlerInterface.php (L24-30)for details.@Seldaek commented on GitHub (Jun 1, 2015):
Moreover we added a Logger::isHandling($level) that couldn't do its job properly anymore if we sent a full record to HandlerInterface::isHandling so I'm afraid it was a one way trip :)