title: Log4j: DailyRollingFileAppender with MaxFileSize Option
body: <p>I am using this log4j.properties </p>
  
  <pre><code>log4j.rootCategory=Info, A1
  # A1 is a DailyRollingFileAppender
  log4j.appender.A1=org.apache.log4j.DailyRollingFileAppender
  log4j.appender.A1.file=D:/MyWeb.log
  log4j.appender.A1.datePattern='.'yyyy-MM-dd
  log4j.appender.A1.append=true
  log4j.appender.A1.layout=org.apache.log4j.PatternLayout
  log4j.appender.A1.layout.ConversionPattern=%-22d{dd/MMM/yyyy HH:mm:ss} - %m%n
  </code></pre>
  
  <p>I want to display logs in the Date Wise Order , so I am using <code>DailyRollingFileAppender</code>.
  But the issue is that this log file currently cannot hold much data (meaning when lot of requests are made on that day) it looses the previous log data </p>
  
  <p>I tried to use the option <code>MaxFileSize</code>: </p>
  
  <pre><code>log4j.appender.A1.MaxFileSize=10MB
  </code></pre>
  
  <p>But on to the server console its giving error that property <code>MaxFileSize</code> isn't supported .</p>
  
  <p>Please tell me if there is any other way that the log appears date wise and it can hold as much data as specified.</p>