title: Logback-Android : "no applicable action" error when using FixedWindowRollingPolicy with a SizeBasedTriggeringPolicy
body: <p>I'm using <a href="http://tony19.github.com/logback-android/" rel="nofollow noreferrer">logback-android</a> in my android application to log messages to a file, whenever logging is enabled (configuration in app).
  It seems to be working fine, but when I have the following scenario</p>
  
  <ul>
  <li>Rotate log when its size reaches 50MB</li>
  <li>Create backup files for when the log rotation takes place. eg. testFile.1.log.zip  </li>
  </ul>
  
  <p>I have the following <em>logback.xml</em> file for this purpose:  </p>
  
  <pre><code>&lt;configuration&gt;
  &lt;appender name="FILE" class="ch.qos.logback.core.FileAppender"&gt;
      &lt;file&gt;/sdcard/dappLog.log&lt;/file&gt;
      &lt;append&gt;true&lt;/append&gt;
      &lt;encoder&gt;
          &lt;pattern&gt;%-4relative [%thread] %-5level %logger{35} - %msg%n&lt;/pattern&gt;
      &lt;/encoder&gt;
      &lt;rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"&gt;
          &lt;fileNamePattern&gt;/sdcard/dappLog.%i.log.zip&lt;/fileNamePattern&gt;
          &lt;minIndex&gt;1&lt;/minIndex&gt;
          &lt;maxIndex&gt;2&lt;/maxIndex&gt;
      &lt;/rollingPolicy&gt;
  
      &lt;triggeringPolicy class="com.dapp.utilities.SizeBasedTriggeringPolicy"&gt;
          &lt;maxFileSize&gt;50MB&lt;/maxFileSize&gt;
      &lt;/triggeringPolicy&gt;
  &lt;/appender&gt;
  
  &lt;root level="INFO"&gt;
      &lt;appender-ref ref="FILE" /&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p></p>
  
  <p>As per <a href="https://stackoverflow.com/questions/6842806/how-can-i-set-log-file-max-size-on-android/8721176#8721176">this</a> answer as there is a <a href="http://jira.qos.ch/browse/LBCORE-123" rel="nofollow noreferrer">bug</a>(<a href="https://github.com/tony19/logback-android/blob/master/logback-core/src/main/java/ch/qos/logback/core/rolling/SizeBasedTriggeringPolicy.java#L57" rel="nofollow noreferrer">src</a>) in SizeBasedTriggerPolicy, so I have the following implementation:<br>
    `</p>
  
  <pre><code>package com.dapp.utilities;  
  import java.io.File;  
  import ch.qos.logback.core.util.FileSize;  
  public class SizeBasedTriggeringPolicy&lt;E&gt; extends ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy&lt;E&gt; {  
      @Override  
      public boolean isTriggeringEvent(final File activeFile, final E event) {  
          return (activeFile.length() &gt;= FileSize.valueOf(getMaxFileSize()).getSize());  
      }  
  }
  </code></pre>
  
  <p>`</p>
  
  <p>However, when I'm running this, I'm getting the following error:  </p>
  
  <pre><code>I/System.out( 2346): 16:14:20,750 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@8:85 - no applicable action for [rollingPolicy], current pattern is [[configuration][appender][rollingPolicy]]  
  I/System.out( 2346): 16:14:20,757 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@9:30 - no applicable action for [fileNamePattern], current pattern is [[configuration][appender][rollingPolicy][fileNamePattern]]  
  I/System.out( 2346): 16:14:20,763 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@10:23 - no applicable action for [minIndex], current pattern is [[configuration][appender][rollingPolicy][minIndex]]  
  I/System.out( 2346): 16:14:20,770 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@11:23 - no applicable action for [maxIndex], current pattern is [[configuration][appender][rollingPolicy][maxIndex]]  
  I/System.out( 2346): 16:14:20,777 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@14:90 - no applicable action for [triggeringPolicy], current pattern is [[configuration][appender][triggeringPolicy]]  
  I/System.out( 2346): 16:14:20,820 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@15:26 - no applicable action for [maxFileSize], current pattern is [[configuration][appender][triggeringPolicy][maxFileSize]]  
  </code></pre>
  
  <p>PS : I'm new to logback.</p>