title: Logback RollingFileAppender maxHistory
body: <p>I have config:</p>
  
  <pre><code> &lt;appender name="file" class="ch.qos.logback.core.rolling.RollingFileAppender"&gt;
      &lt;file&gt;/logs/logFile.log&lt;/file&gt;
      &lt;encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"&gt;
          &lt;pattern&gt;${PATTERN}&lt;/pattern&gt;
      &lt;/encoder&gt;
  
      &lt;rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"&gt;
  
          &lt;fileNamePattern&gt;/logs/logFile.%d{yyyy-MM-dd}.%i.log&lt;/fileNamePattern&gt;
          &lt;timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"&gt;
              &lt;maxFileSize&gt;1MB&lt;/maxFileSize&gt;
          &lt;/timeBasedFileNamingAndTriggeringPolicy&gt;
          &lt;maxHistory&gt;2&lt;/maxHistory&gt;
      &lt;/rollingPolicy&gt;
  &lt;/appender&gt;
  </code></pre>
  
  <p>But,logs are not deleted after two days, in what could be the problem?
  Maybe problem in:</p>
  
  <pre><code>&lt;fileNamePattern&gt;/logs/logFile.%d{yyyy-MM-dd}.%i.log&lt;/fileNamePattern&gt;
  </code></pre>
  
  <p>But I need save all logs</p>