[logback-dev] [JIRA] Commented: (LBCLASSIC-58) Print Logback own erros to System.out if debug is enabled?

Ceki Gulcu (JIRA) noreply-jira at qos.ch
Fri Aug 8 17:22:25 CEST 2008

    [ http://jira.qos.ch/browse/LBCLASSIC-58?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=10638#action_10638 ] 

Ceki Gulcu commented on LBCLASSIC-58:

Hello Diego,

Your remark about joran (logback's configuration system) failing silently in case of an exception thrown during configuration is surprising but true. It looks like joran will stop processing if it encounters an unchecked exceptions. In particular, it will not print its internal status when configuration debugging is set to true.

Your other observation about debug="true" is incorrect. Setting <configuration debug="true"> instructs joran to print its internal status when its done configuring. It has nothing to do with logging statements. Thus, you can leave <configuration debug="true">  in production.

As for setting a listener via jndi env-entries, it's an extension of the current problem. I'd like to nail the initial problem before tackling extensions.

> Anyway, this still feels "overkill" to me, I mean, it should be default behaviour to log logback 
> status if any problem occurs while initializating.

That's quite reasonable. However, there is a downside to this approach. If the user decides to print out the internal status messages as you have done, they will be printed twice. One can probably come up with other scenarios leading to duplicate output. 

> Print Logback own erros to System.out if debug is enabled?
> ----------------------------------------------------------
>                 Key: LBCLASSIC-58
>                 URL: http://jira.qos.ch/browse/LBCLASSIC-58
>             Project: logback-classic
>          Issue Type: Improvement
>            Reporter: Anton Tagunov
>            Assignee: Logback dev list
>            Priority: Minor
> Hello Ceki, when debug is enabled lots of messages to to System.out anyway.
> Do you think it would be a good idea to also print messages going to StatusManager to System.out?
> Apparently there is huge demand for this feature.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the logback-dev mailing list