title: log4j create log file with timestamp in filename using ONLY log4j.xml
body: <p>I am trying to create a log file with a date appended to the filename such as <code>application.log.yyyymmdd</code>. </p>
  
  <p>This is my current log4j.xml. </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"&gt;
  &lt;log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"&gt;
  
      &lt;!-- Appenders --&gt;
      &lt;appender name="console" class="org.apache.log4j.DailyRollingFileAppender"&gt;
          &lt;param name="File" value="application.log" /&gt;
          &lt;param name="DatePattern" value=".yyyy-MM-dd" /&gt;
          &lt;layout class="org.apache.log4j.PatternLayout"&gt; 
            &lt;param name="ConversionPattern" 
                value="%d{yyyy-MMM-dd HH:mm:ss,SSS} [%t] %c %x%n  %-5p %m%n"/&gt;
          &lt;/layout&gt;
      &lt;/appender&gt;
  
  
      &lt;!-- Root Logger --&gt;
      &lt;root&gt;
          &lt;priority value="debug" /&gt;
          &lt;appender-ref ref="console" /&gt;
      &lt;/root&gt;
  
  &lt;/log4j:configuration&gt;
  </code></pre>
  
  <p>It is not creating <code>application.log.yyyymmdd</code> instead it is only generating <code>application.log</code>. </p>
  
  <p>Is there another way to <em>only use</em> log4j.xml to achieve this?</p>