SyntaxFix
Write A Post
Hire A Developer
Questions
Yes, define log4j.configuration property
log4j.configuration
java -Dlog4j.configuration=file:/path/to/log4j.properties myApp
Note, that property value must be a URL.
For more read section 'Default Initialization Procedure' in Log4j manual.