title: Logging configurations for xml in log4j.xml (jboss-log4j.xml)
body: <p>I want to use RollingFileAppender with size and time restriction. Therefore I wrote the following appender for my xml-configuration. </p>
  
  <pre><code>&lt;appender name="MyLogger" class="org.jboss.logging.appender.RollingFileAppender"&gt;
        &lt;errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/&gt; 
        &lt;param name="File" value="${jboss.server.log.dir}/mylog_01.log"/&gt;  
        &lt;param name="Append" value="true"/&gt; 
        &lt;param name="MaxFileSize" value="100KB"/&gt; 
        &lt;param name="MaxBackupIndex" value="10"/&gt; 
        &lt;rollingPolicy class="org.apache.log4j.rolling.TimeBasedRollingPolicy"&gt;
          &lt;param name="FileNamePattern" value="mylog_01_%d{yyyy-MM-dd_HH-mm}.log" /&gt;
        &lt;/rollingPolicy&gt;
        &lt;layout class="org.apache.log4j.PatternLayout"&gt;
           &lt;param name="ConversionPattern" value="%d %5p %t (%F[%M]\:%L) - %m%n"/&gt;
        &lt;/layout&gt;
  &lt;/appender&gt;
  </code></pre>
  
  <p>Although I have compared my appender with lots of recent examples, I couldn't find my mistake(s). My apperder produces the first log-data with the name "mylog_01.log". I'm expecting to have the log-datas with following respectively, such as</p>
  
  <pre><code>mylog_01_2013-09-09_12-33.log
  mylog_01_2013-09-09_12-34.log
  mylog_01_2013-09-09_12-35.log
  mylog_01_2013-09-09_12-36.log ... 
  </code></pre>
  
  <p>But the appender produces them with default pattern, such as <code>ylog_01.log.1</code>, <code>mylog_01.log.2</code>, <code>mylog_01.log.3</code> ...</p>
  
  <p>Could you help me please to solve this problem? </p>