[logback-user] alternate configuration files on the classpath

Steve Cohen scohen at javactivity.org
Wed Oct 31 19:04:38 CET 2012


This (the classpath without preceding slash - in my case, the name of 
the config file in the jar since it lived at the root of the jar) was 
what I assumed and it was not working.  Will have to look deeper.
On 10/29/2012 06:20 PM, Abraham Lin wrote:
> Classpath paths look like "com/example/resource.xml" (no leading slash).
> This works for logback as well (tried it on my machine). Alternatively, you
> could use a JAR URL like
> "jar:file:/path/to/file.jar!/com/example/resource.xml".
> -Abraham
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/logback-user

More information about the Logback-user mailing list