title: Need a working example of configuring log4j RollingFileAppender via properties
body: <p>I am using log4j for logging, and a property file for configuration. Currently, my log files are too big (3.5 GB is too large for a log file). So <em>think</em> I need to use RollingFileAppender - but when I do so the log file continues to grow overly large. I believe I have just misconfigured it; does anyone have a <em>working</em> example of configuring RollingFileAppender?</p>
  
  <p>For the record, my current configuration looks like this:</p>
  
  <pre><code>log4j.appender.MAIN_LOG.File=${catalina.base}/logs/webtop.log
  log4j.appender.MAIN_LOG=org.apache.log4j.RollingFileAppender
  log4j.appender.MAIN_LOG.layout=com.mycompany.util.log.Log4JSimpleLayout
  log4j.appender.MAIN_LOG.DatePattern='.'yyyy-MM-dd
  log4j.appender.MAIN_LOG.MaxFileSize=10MB
  log4j.appender.MAIN_LOG.MaxBackupIndex=99
  log4j.appender.MAIN_LOG.append=true
  log4j.rootCategory=ALL, MAIN_LOG
  </code></pre>
  
  <p>An alternative to RollingFileAppender would also be a fine solution.</p>