Strange. I just tried with logback 1.0.12 and logback 2.0.0-SNAPSHOT and if there is no logback.xml found, then then DEBUG logging is enabled, and all my logging statements are printed to the console.
Why is this not working for you guys?
I also tried with no logback.xml and with -Dlogback.statusListenerClass=ch.qos.logback.core.status.OnConsoleStatusListener
And I get this:
11:27:23,893 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
11:27:23,908 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
11:27:23,908 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.xml]
11:27:23,908 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Setting up default configuration.
11:27:23.971 [main] INFO o.s.web.context.ContextLoader - Root WebApplicationContext: initialization started
11:27:24,049 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
11:27:24,049 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
11:27:24,049 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.xml]
11:27:24,049 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Setting up default configuration.
So if you think this is not working for you, have a look at the code in logback that does the "Setting up default configuration" and see why it's not working.
Otherwise this is "cannot reproduce"
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Strange. I just tried with logback 1.0.12 and logback 2.0.0-SNAPSHOT and if there is no logback.xml found, then then DEBUG logging is enabled, and all my logging statements are printed to the console.
Why is this not working for you guys?
I also tried with no logback.xml and with -Dlogback.statusListenerClass=ch.qos.logback.core.status.OnConsoleStatusListener
And I get this:
11:27:23,893 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
11:27:23,908 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
11:27:23,908 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.xml]
11:27:23,908 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Setting up default configuration.
11:27:23.971 [main] INFO o.s.web.context.ContextLoader - Root WebApplicationContext: initialization started
11:27:24,049 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
11:27:24,049 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
11:27:24,049 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.xml]
11:27:24,049 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Setting up default configuration.
So if you think this is not working for you, have a look at the code in logback that does the "Setting up default configuration" and see why it's not working.
Otherwise this is "cannot reproduce"