[logback-user] logback.xml not working inside Ant task
cowwoc
cowwoc at bbs.darktech.org
Thu Aug 28 03:50:18 CEST 2008
Ceki, I wanted to discuss this with you on IRC but I see that #logback is
now empty. Do you have any ideas on how I can begin to debug this problem?
I'm at a loss.
Thanks,
Gili
cowwoc wrote:
>
> Hi,
>
> I've got a library that uses Logback through slf4j. When I invoke methods
> directly logging works just fine, but when I invoke Ant tasks that, in
> turn, invoke those methods logback.xml isn't being found and the default
> configuration is being used.
>
> I am at a loss as to what is different between the two configurations.
> When I run under Ant
>
> getClass().getResourceAsStream("/logback.xml")
>
> finds the file just fine, yet
>
> LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();
> StatusPrinter.print(lc);
>
> prints out:
>
> 05:08:51,098 |-INFO in
> ch.qos.logback.classic.BasicConfigurator at 5b8ff6b8 - Setting up default
> configuration.
>
> How do I debug this problem further in order to figure out what is going
> wrong?
>
> Thank you,
> Gili
>
--
View this message in context: http://www.nabble.com/logback.xml-not-working-inside-Ant-task-tp19158480p19192953.html
Sent from the Logback User mailing list archive at Nabble.com.
More information about the Logback-user
mailing list