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

Diego Louzán (JIRA) noreply-jira at qos.ch
Tue Jul 15 09:26:36 CEST 2008

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

Diego Louzán commented on LBCLASSIC-58:

This setting would ease it for first-time users (me being that for the last couple of days). The only way of getting configuration errors information is to poll the StatusManager object, and even that isn't very well documented in the manual / faq. I had to dive through the user/dev lists until finding some advice on how to get full error stack traces.

I know the configuration "debug" attribute is documented in the manual and it should log everything to the console but this did not do the trick for me. I ended having code like this in the initialization of my app:

 * Log logback status, so it gets printed in case there is a
 * configuration error for the logging system.
LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();

This was the way I used for debugging logback configuration errors in my app.

> 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