title: Log4j, how to put log file into dynamic directory location
body: <p>can anyone show me how can I put my log file with Log4j in my project location?
  I want to put my log file into src/main/resources every time.
  I don't want to care about me location on disk of my project, for sample: if I have my project in D:/project and after that I change my location project in C:/project I want to put my log file on every time on src/main/resources with out change this line to this </p>
  
  <pre><code>log4j.appender.file.File=C:\\project
  </code></pre>
  
  <p>with this</p>
  
  <pre><code>log4j.appender.file.File=D:\\project
  </code></pre>
  
  <p>Have anyone any idea? 
  Thx in advance for help :)</p>