title: how to define a path to save a log file in log4j
body: <p>I created a simple java web application with tomcat as a server. I want to log all the error messages. I am using log4j.</p>
  
  <p>In log4j.properties I stated </p>
  
  <pre><code>log4j.appender.file.File=C:\\messages.log 
  </code></pre>
  
  <p>I might be moving my war file to linux / mac. So I want to store it in my project/logs folder. how can I set that path ?</p>