- Status changed to Needs review
over 2 years ago 1:14pm 17 January 2023 - 🇭🇺Hungary mxr576 Hungary
@lussoluca, ping, kind reminder about this issue
- 🇮🇹Italy lussoluca Italy
Sorry for the late response...
I'm checking the WhatFailureGroupHandler, but it seems to me that it ignores the bubbling of each handlers added to it, or I'm wrong?
If some of the handlers added to the group stops the bubbling, all other handlers are executed anyway. This may be OK, but it's a change in the actual behaviour. Maybe we can made this configurable? Allow a developer to choose if a set of handlers must be wrapped by a WhatFailureGroupHandler
- Status changed to Needs work
about 2 years ago 5:52pm 2 April 2023 - 🇮🇹Italy lussoluca Italy
Something like:
monolog.channel_handlers: default: handlers: - name: 'handler_that_may_fail' formatter: 'json' - name: 'fallback_handler' formatter: 'json' - name: 'handler_that_will_always_work' formatter: 'json' monolog.fallback_group: - handler_that_may_fail - fallback_handler
- 🇮🇹Italy lussoluca Italy
or:
monolog.channel_handlers: default: handlers: - name: 'handler_that_may_fail' formatter: 'json' group: 'group_1' - name: 'fallback_handler' formatter: 'json' group: 'group_1' - name: 'handler_that_will_always_work' formatter: 'json'
If "group" is missing, we add the handler to a default group.