title: log4j.ConfigurationFile configuration in ant build for jetty
body: <p>We trigger jetty through ant target as below</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;target name=&quot;jettysh&quot; depends=&quot;init&quot;&gt;
    &lt;exec executable=&quot;${JETTY_HOME}/bin/jetty.sh&quot; failonerror=&quot;true&quot;&gt;
      &lt;env key=&quot;JAVA_OPTIONS&quot;
           value=&quot;-server -d64 ${x} ${y} ${z} ${l} -Dsettings.path=${p.path} -Dlog4j.configuration=file:///${dpath}/conf/sample.xml -Djetty.secure.port=${JETTY_SECURE_PORT} -Dapp.dir=${app.dir}&quot;/&gt;
    &lt;/exec&gt;
  &lt;/target&gt; 
  </code></pre>
  <p>In this we pass <strong>-Dlog4j.configuration</strong> path in the older log4j 1.X version as we are migrating to newer version we are passing the new configuration  <strong>-Dlog4j2.configurationFile</strong>  but the logs are not getting generated .</p>
  <p>And also we are not seeing any log files getting generated that means that log configuration itself is not picked
  Help is very much appreciated as it is a time bound one.</p>