logback - no applicable action - using the example from chapter 4

Hello, Trying the logback file appender and all went well until I created the Rolling and Triggering policies. I'm following the examples in Chapter 4, so not sure how can this be wrong. The errors and the logback.xml are below: 16:13:23,158 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@25:78 - no applicable action for [rollingPolicy], current pattern is [[configuration][appender][rollingPolicy]] 16:13:23,158 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@26:24 - no applicable action for [fileNamePattern], current pattern is [[configuration][appender][rollingPolicy][fileNamePattern]] 16:13:23,159 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@27:17 - no applicable action for [minIndex], current pattern is [[configuration][appender][rollingPolicy][minIndex]] 16:13:23,159 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@28:17 - no applicable action for [maxIndex], current pattern is [[configuration][appender][rollingPolicy][maxIndex]] 16:13:23,159 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@31:85 - no applicable action for [triggeringPolicy], current pattern is [[configuration][appender][triggeringPolicy]] 16:13:23,160 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@32:20 - no applicable action for [maxFileSize], current pattern is [[configuration][appender][triggeringPolicy][maxFileSize]] <configuration> <contextName>Test</contextName> <appender name="FILE" class="ch.qos.logback.core.FileAppender"> <file>${JBOSS_HOME}/server/default/log/myApp.log</file> <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <fileNamePattern>myApp.%i.log</fileNamePattern> <minIndex>1</minIndex> <maxIndex>5</maxIndex> </rollingPolicy> <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> <maxFileSize>1KB</maxFileSize> </triggeringPolicy> <encoder> <pattern>%date %contextName %level [%thread] %logger{36} [%file:%line] %msg%n</pattern> </encoder> </appender> <logger name="com.test.logback" level="DEBUG" /> <root level="debug"> <appender-ref ref="FILE" /> <appender-ref ref="STDOUT" /> </root> </configuration> Nadia
participants (1)
-
Nadia Kunkov