title: Log4j file name
body: <p>I wanted to have the log file name in this format:</p>
  
  <blockquote>
    <p>function_YYYYMMDDH24MI-record.log </p>
  </blockquote>
  
  <p>This is my log4j.xml configuration. Is there a way to name the log file this name</p>
  
  <pre><code> &lt;appender name="function" class="org.apache.log4j.DailyRollingFileAppender"&gt;
      &lt;param name="File" value="${catalina.base}/logs/function-" /&gt;
      &lt;param name="DatePattern" value="yyyyMMddHHmm" /&gt;
        &lt;layout class="org.apache.log4j.PatternLayout"&gt;       
          &lt;param name="ConversionPattern" value="%-d{yyyy-MM-dd HH:mm:ss.SSS} %-5p [%t]-[%C:%M()] %m%n" /&gt;
        &lt;/layout&gt;
  &lt;/appender&gt;
  </code></pre>