Closed (fixed)
Project:
Monolog
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
11 Dec 2018 at 15:26 UTC
Updated:
11 Jun 2019 at 14:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
legovaerComment #3
lussolucaGreat idea! but with this implementation we can only have the same formatter for every handler.
Could we change the configuration to allow a different formatter for different handlers? Maybe something like:
Comment #4
lussolucaComment #5
lussolucaComment #6
legovaerThis is way much better. Just tested it and it works perfect for me.
Comment #8
lussolucaGreat!
Committed and pushed to 8.x-1.x!
Comment #9
lussolucaComment #10
dragonwize commentedThis breaks the existing functionality of the monolog library that uses the default formatter specified in the Handler's getDefaultFormatter().
https://github.com/Seldaek/monolog/search?q=getDefaultFormatter&type=Code
The default should not be line but instead nothing to let monolog set it. As it is now all handler's are using the line formatter that do not have the above yaml config set which is a BC break in a minor release.
Comment #11
lussolucaYou are absolutely right. My fault.
If you agree with the attached patch I'll merge it and release a new version of the module
Comment #12
eiriksmHad the same problem as #10. The patch fixes the problem, and I totally agree with the approach. Thanks for the quick fix. Would be nice to get a new stable release with this too.
Comment #14
lussolucaCommitted and pushed to 8.x-1.x.
A new version is on the way
Comment #15
dragonwize commentedAlso confirmed working as intended. Thanks for the fast turn around.