Reputation: 1397
Is it possible to state something like - "override file = /log4j.properties"
From within the log4j.properties and to link to the actual log4j config?
Thanks!
Upvotes: 0
Views: 82
Reputation: 42020
It is not possible. However, you can configure the system property log4j.configuration
specifying the path of a configuration file. Add the following parameter when you create the JVM:
java -Dlog4j.configuration=path/to/log4j-test.properties AwesomeApp
Upvotes: 1