>From Monolog\Formatter\LineFormatter, it looks like the first [] is %context%, and the second is %extra%. See this useful doc for how to replace the empty square brackets with a session token:
http://symfony.com/doc/current/cookbook/logging/monolog.html#adding-a-session-request-token If you want to fill in %context% in the default log line format, here's an idea (don't use this for real, though): $trace = debug_backtrace(); $record['context'] = $trace[3]['file'].':'.$trace[3]['line']; Christophe COEVOET wrote on Sun, 13 May 2012 20:13:51 +0200: > 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. -- 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
