I am using log4j 1.2.17 and deploying my application using Jboss EAP 6.2 GA. My log4j is configured using a log4j.properties file that I configured. I wanted output of a DailyRollingFileAppender to go to a directory based on a system variable. So I have it set up like this:
log4j.appender.MAIN.File=${EAP_HOME}/standalone/log/system.log
In the VM Arguments of the server configuration I have:
-DEAP_HOME=${EAP_HOME}
Where EAP_HOME is an Environment Variable I set up.
My Problem is that whenever I try and log, my output goes to EAP_HOME/bin/standalone/log/system.log
I am not sure why it is going to the bin directory when that is not specified anywhere in my settings.
I want it to be in EAP_HOME/standalone/log/system.log