Can I add a Processor to just one Monolog handler? Or is there some other way I can alter a message that is only going out to one particular handler?
The handler I am working with (stackify-log-monolog) doesn't let me filter messages by level, so I want to drop all messages that are DEBUG. I also want to add a text string to the end of $record['message']. I can do this now, but it affects all my handlers, which is no good for my situation.
I thought maybe bubbling would help with this (i.e. if a message is DEBUG, let my first handlers do it, then don't let it bubble any further to get to the stackify handler) but I can't quite figure out how.
Can I add a Processor to just one Monolog handler? Or is there some other way I can alter a message that is only going out to one particular handler?
The handler I am working with (stackify-log-monolog) doesn't let me filter messages by level, so I want to drop all messages that are DEBUG. I also want to add a text string to the end of
$record['message']
. I can do this now, but it affects all my handlers, which is no good for my situation.I thought maybe bubbling would help with this (i.e. if a message is DEBUG, let my first handlers do it, then don't let it bubble any further to get to the stackify handler) but I can't quite figure out how.
Thanks.