title: Log4j RollingFileAppender not working as expected
body: <p>I'm just working on an application where I gotta maintain logs based on size, and I have done so as below code snippet, what I was expecting was after every 10MB, a new log roller say Mylog.1.log, Mylog.2.log and so on will be created, unfortunately its not happening.</p>
  
  <p>Though it creates Mylog.1.log, post that its removing Mylog.1.log and creating Mylog.2.log, this 
  is not expected behaviour.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  &lt;!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"&gt;
  
  &lt;log4j:configuration debug="true"
                   xmlns:log4j='http://jakarta.apache.org/log4j/'&gt;
  
     &lt;appender name="fileAppender" class="org.apache.log4j.RollingFileAppender"&gt;
  
        &lt;param name="append" value="true"/&gt;
        &lt;param name="file" value="E:/logs/Mylog.log"/&gt;
        &lt;param name="MaxFileSize" value="10MB"/&gt;
        &lt;param name="MaxBackupIndex" value="10"/&gt;
  
        &lt;layout class="org.apache.log4j.PatternLayout"&gt;
          &lt;param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/&gt;
       &lt;/layout&gt;
     &lt;/appender&gt;
  
     &lt;root&gt;
        &lt;level value="DEBUG"/&gt;
       &lt;appender-ref ref="fileAppender"/&gt;
     &lt;/root&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong><em>Environment</em></strong>
  OS                    : Windows 7
  Application Server    : IBM Websphere 8
  Programming language  : java</p>
  
  <p>Googled a lot, result doesnt seems fruitful, any help is appreciated. Thanks.</p>