Coming from Yii2 at the end of each request when something is logged, Yii2 adds additional data to your log, for example the $_POST
data so you know what paramaters caused the issue.
Is there a way to add these information in Monolog too?
I don't want to use a Processor as it includes all those parameters to each and every record. I would just like to add an additional string in case something is logged at the end of the log after all messages are included/send (for example via BufferHandler
when sending Mails via SwiftMailerHandler
)