I have an application for which log4j logging is configured in a log4j.properties file. Currently, this application runs on UNIX and creates a log file in /tmp. This application needs to run on Windows, and on that platform I would like for it to select the correct temporary directory, which I believe is C:\temp.
How can I change my log4j.properties file to make this happen? Do I need to switch to using an XML configuration file?
I think you would just use
${java.io.tmpdir}in place of a hard-coded path.