This pull request adds support for using Monolog's Special / Wrapped Handlers with configuration alone. Let's take, for example, the GroupHandler and FingersCrossedHandler.
GroupHandler lets you group several other handlers together, and FingersCrossedHandler accumulates log messages until severity exceeds a particular log level. In my case, I want to record all of my messages once the CRITICAL threshold is reached, and I want them to go to a file and to Slack. After this PR, I can do something like this:
It will replace the [file, slack] array in handlers.group.handlers with the actual file and slack handlers, and the group entry in handlers.fingers_crossed.handler with the actual group handler.
PR includes tests, and I don't see any BC issues stemming from this.
This pull request adds support for using Monolog's Special / Wrapped Handlers with configuration alone. Let's take, for example, the
GroupHandler
andFingersCrossedHandler
.GroupHandler
lets you group several other handlers together, andFingersCrossedHandler
accumulates log messages until severity exceeds a particular log level. In my case, I want to record all of my messages once theCRITICAL
threshold is reached, and I want them to go to a file and to Slack. After this PR, I can do something like this:It will replace the
[file, slack]
array inhandlers.group.handlers
with the actualfile
andslack
handlers, and thegroup
entry inhandlers.fingers_crossed.handler
with the actualgroup
handler.PR includes tests, and I don't see any BC issues stemming from this.