title: log4j.RollingFileAppender not compressing files
body: <p>How to zip backup file in log4j <code>RollingFileAppender</code></p>
  
  <p>I have following <strong>log4j.properties</strong> file , while exceeding size limit it is creating backup file but not zipping it.</p>
  
  <pre><code>log4j.appender.request=org.apache.log4j.RollingFileAppender
  log4j.appender.request.File=${catalina.home}/webapps/Sample/WEB-INF/logs/FAW_l4j.log
  log4j.appender.request.MaxFileSize=10KB
  log4j.appender.request.MaxBackupIndex=3
  log4j.appender.request.RollingPolicy.ActiveFileName =${catalina.home}/webapps/Sample/WEB-INF/logs/FAW_l4j.log-%d.log.
  log4j.appender.request.RollingPolicy.FileNamePattern=${catalina.home}/webapps/Sample/WEB-INF/logs/FAW_l4j.log-%d.log.zip
  log4j.appender.request.layout = org.apache.log4j.PatternLayout
  log4j.appender.request.layout.ConversionPattern=%d %p [%c{3}] - [%t] - %X{ip}: %m%n
  </code></pre>