title: Logback error: no applicable action for [tag-name], current ElementPath is [tag-path]
body: <p>When deploying my war in JBoss, the error is coming in logback config XML and the deployment fails</p>
  
  <p>I am using logback.xml in spring boot applications because i can't use separate logback-spring.xml as there are other application which can't use logback-spring.xml. when I include [maxHistor] or [totalSizeCap] tab i am getting error like</p>
  
  <pre><code>no applicable action for [maxHistory], current ElementPath  is [[configuration][appender][rollingPolicy][timeBasedFileNamingAndTriggeringPolicy][maxHistory]]
  </code></pre>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;configuration&gt;
      &lt;include resource="org/springframework/boot/logging/logback/base.xml" /&gt;
      &lt;property name="NIF_LOG_HOME" value="/tpv/apps/jboss/jboss-eap-7.1/app_logs/NIF"/&gt;
  
      &lt;appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"&gt;
          &lt;layout class="ch.qos.logback.classic.PatternLayout"&gt;
              &lt;Pattern&gt;%d ${APP_NAME} %-5level [%thread] %logger: %msg%n&lt;/Pattern&gt;
          &lt;/layout&gt;
      &lt;/appender&gt;
  
      &lt;appender name="NIF-AUDIT"
                class="ch.qos.logback.core.rolling.RollingFileAppender"&gt;
          &lt;file&gt;${NIF_LOG_HOME}/nif.log&lt;/file&gt;
  
          &lt;rollingPolicy
                  class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"&gt;
              &lt;!-- rollover daily --&gt;
              &lt;fileNamePattern&gt;${NIF_LOG_HOME}/archived/nif.archived.%d{yyyy-MM-dd}.%i.log.gz
              &lt;/fileNamePattern&gt;
              &lt;timeBasedFileNamingAndTriggeringPolicy
                      class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"&gt;
                  &lt;maxFileSize&gt;100MB&lt;/maxFileSize&gt;
                  &lt;maxHistory&gt;20&lt;/maxHistory&gt;
                  &lt;totalSizeCap&gt;2GB&lt;/totalSizeCap&gt;
              &lt;/timeBasedFileNamingAndTriggeringPolicy&gt;
          &lt;/rollingPolicy&gt;
  
          &lt;encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder"&gt;
              &lt;Pattern&gt;
                  %d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n
              &lt;/Pattern&gt;
          &lt;/encoder&gt;
      &lt;/appender&gt;
  
      &lt;root level="info"&gt;
          &lt;appender-ref ref="STDOUT"/&gt;
      &lt;/root&gt;
      &lt;logger name="com.tmna.toms.nif" additivity="false" level="debug"&gt;
          &lt;appender-ref ref="NIF-AUDIT"/&gt;
          &lt;appender-ref ref="STDOUT"/&gt;
      &lt;/logger&gt;
  
  &lt;/configuration&gt;
  </code></pre>
  
  <p>I expect the war to be deployed but it is not because of the below error </p>
  
  <pre><code>java.lang.IllegalStateException: Logback configuration error detected: 
  00:53:23,304 INFO  [stdout] (ServerService Thread Pool -- 170) ERROR in ch.qos.logback.core.joran.spi.Interpreter@24:29 - no applicable action for [maxHistory], current ElementPath  is [[configuration][appender][rollingPolicy][timeBasedFileNamingAndTriggeringPolicy][maxHistory]]
  00:53:23,304 INFO  [stdout] (ServerService Thread Pool -- 170)  at org.springframework.boot.logging.logback.LogbackLoggingSystem.loadConfiguration(LogbackLoggingSystem.java:161)
  </code></pre>