mirror of
https://github.com/Seldaek/monolog.git
synced 2026-04-26 08:05:53 +03:00
[GH-ISSUE #540] Provide a Processor interface #187
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#187
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 @tremby on GitHub (Apr 13, 2015).
Original GitHub issue: https://github.com/Seldaek/monolog/issues/540
It would be useful to have an interface which Processor classes implement. They are mostly loose classes with no inheritance right now, so determining that a given object is a Processor is impossible.
@stof commented on GitHub (Apr 13, 2015):
This would be a BC break, and remove flexibility. Processors are currently any callable. If Monolog was requiring PHP 5.4+, the method adding them would have a
callabletypehint.@tremby commented on GitHub (Apr 13, 2015):
Ah, so all I need to do is run
is_callable()on it, and if that's true, which it is if the__invokemethod is declared, it can count as a processor. So everything I want to do is already possible. Thanks for clarifying.