Specify log location using Log4j
Posted on 2013-05-10
I have a war file which uses log4j for logging.
Log4j.properties has the following for log file creation -
The problem is that this war file is going to be deployed in Windows and Linux, so I don't want to hard code it to c:/temp.
Is there a way to provide this path in a generic way, say using some environment variables, java home, user directory etc.