title: how to configure log file path to current working target directory in log4j2 xml format
body: <p>Iam migrating my project from log4j 1.2.17 to 2.10.0.</p>
  
  <p>I have following file appender configuartion in 1.2.17 properties format.</p>
  
  <pre><code>log4j.appender.example=org.apache.log4j.FileAppender
  log4j.appender.example.file=./target/test-classes/example.log
  log4j.appender.example.layout=org.apache.log4j.PatternLayout
  log4j.appender.example.layout.ConversionPattern=%m%n
  </code></pre>
  
  <p>how to configure the above target folder file configuration in log4j2 xml format.</p>
  
  <p>Thanks in advance.</p>