title: log4j relative path to create log file
body: <p>Here is my log4j.properties file</p>
  
  <pre><code># Define the root logger with appender file
  log = D:/workspaces/Abhishek/Automation/MOPS/logs
  log4j.rootLogger = DEBUG, FILE
  
  # Define the file appender
  log4j.appender.FILE=org.apache.log4j.DailyRollingFileAppender
  log4j.appender.FILE.File=${log}/log.out
  
  # Define the layout for file appender
  log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
  log4j.appender.FILE.layout.conversionPattern=%d{ABSOLUTE} %5p  - %m%n
  </code></pre>
  
  <p>This does job for me only problem is the absolute path i have used. I want to use relative path now.</p>
  
  <p>Below is my folder structure</p>
  
  <pre><code>--src
        --com
        --log4j.properties
  --logs
       --log.out file
  </code></pre>
  
  <p>So my logs folder is outside the src folder where log4j.properties is situated?</p>
  
  <p>How can i define relative path in such case. In case of jsp's we do it like <code>../webpages/page.jsp</code>.
  How can it be achieved here ??</p>