Le 13/05/2012 20:02, Tyler Sommer a écrit :
Out of curiosity, how does it make shell scripting easier? It seems
like monolog is not the only logger that uses this format, but I've
never known what those last brackets are for. Just a known "log line
ending"?
It has nothing to do with making shell scripting easier. It is simply
that Monolog support adding a context in log messages (and the Sf2
LoggerInterface does too) and extra data (through processors). When
these arrays are empty, they are dumped as [] (which is the JSON
representation of empty arrays). If you want to get rid of them, you can
register your own formatter in the monolog handlers configured with your
own format instead of relying on Monolog creating a default formatter.
--
Christophe | Stof
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en