Perhaps by overriding logback.xml from the jar file by the file in the file system. Instead of runnnig jar should be called the main class.
Suppose we have a jar file with a manifest:
META-INF/MANIFEST.MF
...
Main-Class: a.b.c.jetty.MyMainClass
Call MyMainClass:
java -cp path2logbackXml:path2jarfile a.b.c.MyMainClass
instead
java -jar path2jarfile
source
share