[logback-user] Is there System properties configuration?

thebugslayer thebugslayer at gmail.com
Sat Oct 13 17:38:09 CEST 2007


Hi Ceki,

This feature was in log4j, and it allow me  to publish tool that allow
end user do this:

java -Dlog4jconfiguration=custom1.xml -jar mytool.jar
java -Dlog4jconfiguration=custom2.xml -jar mytool.jar
java -Dlog4jconfiguration=custom3.xml -jar mytool.jar

how would I do this in logback?
-Z


On 10/13/07, Ceki Gulcu <ceki at qos.ch> wrote:
> Hello,
>
> No, it is not currently possible to specify the name of the configuration file
> through a system property. Could you please describe your use case?
>
> Cheers,
>
> thebugslayer wrote:
> > Hi,
> >
> > I read http://logback.qos.ch/manual/joran.html, it's only checking
> > classpath for config logback.xml file. Is there a way to specify file
> > location by System properties?
> >
> > Thanks,
>
> --
> Ceki Gülcü
> Logback: The reliable, generic, fast and flexible logging framework for Java.
> http://logback.qos.ch
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://qos.ch/mailman/listinfo/logback-user
>


-- 
theBUGslayer



More information about the Logback-user mailing list