On 07.01.2013 23:00, Antony Stubbs wrote:

Thanks, that doesn't appear to do anything. Nothing is printed to std out.
Even without trying to point logback at any config files.

I've successfully tested the following command:

java \
-Dlogback.statusListenerClass=ch.qos.logback.core.status.OnConsoleStatusListener\
chapters.introduction.HelloWorld1

Here is the output:

23:36:42,042 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy] 23:36:42,054 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml] 23:36:42,054 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.xml] 23:36:42,055 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Setting up default configuration.
23:36:42.091 [main] DEBUG chapters.introduction.HelloWorld1 - Hello world.

The HelloWorld1 application [1] simply invokes the SLF4J API.

Which version of logback are you using? Is logback being picked up by SLF4J?

[1] http://logback.qos.ch/xref/chapters/introduction/HelloWorld1.html
--
Ceki
65% of statistics are made up on the spot
_______________________________________________
Logback-user mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/logback-user

Reply via email to