title: Log4j, configuring a Web App to use a relative path
body: <p>I have a java webapp that has to be deployed on either Win or Linux machines. I now want to add log4j for logging and I'd like to use a relative path for the log file as I don't want to change the file path on every deployment. The container will most likely be Tomcat but not necessarily.</p>
  
  <p>What's the best way of doing this?</p>