[logback-user] logback - no applicable action - using the example from chapter 4
Nadia Kunkov
nkunkov at escholar.com
Wed Dec 21 22:48:28 CET 2011
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 at 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 at 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 at 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 at 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 at 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20111221/b1f50d2f/attachment-0001.html>
More information about the Logback-user
mailing list