Heya,

For Monolog's InsightHandler (FirePHP/Firebug logging), and eventually
for other handlers as well, having a way to pass extra information along
with log messages can be pretty useful.

This would be easily possible by just adding a second "$context = null"
parameter to all the LoggerInterface methods, to which you could pass
arrays, objects, anything. Then the handlers (or rather formatters in
Monolog) can serialize that, if needed, or just discard it.

It's perfectly BC except for the fact that it changes the interface, so
custom logger implementations would have to add the extra argument as
well, and just ignore it if they want.

That's the first step, and I'd like to know if anyone has anything
against it.

As a second step, we would add context data in some places in Symfony2
to allow devs to see more details in firebug. I don't have an exact plan
for this yet, but it's an incremental process that can happen at a later
time.

Cheers

-- 
Jordi Boggiano
@seldaek - http://nelm.io/jordi

-- 
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 symfony-devs@googlegroups.com
To unsubscribe from this group, send email to
symfony-devs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to