[logback-user] add property for specifying logback.xml file location

Sebastien Pennec sebastien at qos.ch
Thu Feb 8 18:35:47 CET 2007


Hello Michael,

At the moment, logback can load two different files: logback.xml and 
logback-test.xml. They need to be in the classpath and can be useful to separate the 
environments, e.g. development and production.

This behavior is usually enough for many situations.

Can you precise your request with a use case that would need a java variable and 
would not be possible with the actual behavior?

Thanks,

Sébastien


Newcomb, Michael-P57487 wrote:
> e.g.:
> -Dch.qos.logback.config=foo/bar/my-logback.xml
> 
> Thanks,
> Michael
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://qos.ch/mailman/listinfo/logback-user

-- 
Sébastien Pennec
sebastien at qos.ch

Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch/



More information about the Logback-user mailing list