[logback-user] logback.xml not working inside Ant task
Ceki Gulcu
listid at qos.ch
Thu Aug 28 11:20:11 CEST 2008
The "/" prefix in "/logback.xml" also looks suspicious...
Try,
getClass().getClassLoader().getResource("logback.xml");
or alternatively
Thread.currentThread().getContextClassLoader().getResource("logback.xml");
HTH,
Thorbjørn Ravn Andersen wrote:
> cowwoc skrev den 26-08-2008 11:14:
>> getClass().getResourceAsStream("/logback.xml")
>>
>>
> So the file must be in the classpath. How do you ensure that it is?
>
--
Ceki Gülcü
More information about the Logback-user
mailing list