
Thank you for your answer. As things stand currently, you can't do that using logback except by modifying the class path. As in java -cp ../resources1/;otherClasspathEntries -jar mytool.jar java -cp ../resources2/;otherClasspathEntries -jar mytool.jar java -cp ../resources3/;otherClasspathEntries -jar mytool.jar In addition, you would need to place customN.xml in resourceN/logback.xml, where N is in {1, 2, 3}. Would that work for you? thebugslayer wrote:
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@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@qos.ch http://qos.ch/mailman/listinfo/logback-user
-- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch