Hi all

The new logging library developped by Jordi has still been presented on the mailing-list. I now propose to add MonologBundle in the core. The bundle is available in https://github.com/symfony/symfony/pull/111

Monolog provides a useful handler for logging in prod by logging all the request messages when an error occurs without logging all requests. This is possible with the FingersCrossedHandler. It is directly inspired from the handler of the python LogBook library: http://packages.python.org/Logbook/api/handlers.html#logbook.FingersCrossedHandler

MonologBundle adds a great feature allowing to use a different logging channel by adding a tag on the service where the logger is injected. This makes it easier to know which part of the application logged the message. But this feature is only useful if the core services are tagged as most log messages come from them. this is why we propose to put the bundle as a core bundle instead of a third-party bundle. This is shown in http://pastie.org/private/cyf6gcapzgvm9vlpkuf5q where the logging channel is printed before the level (the formatting can of course be improved).

What do you think about that ?

--
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

Reply via email to