Pass variable/parameter to logback.xml


The way to pass variables or parameters to configuration file, logback.xml, is to use Java system properties.

Java system properties can be set on the command line as follows: java -DUSER_HOME="/home/sebastien" MyApp2

Here is how you called it within the configuration file, logback.xml:

Subscribe to RSS - logback