[logback-user] rolling in logback-android
Peter Chmiel
PChmiel at exclaim.com
Wed Sep 21 03:17:26 CEST 2011
Hi,
Does logback-android support rolling?
When I try using the configuration file below in an android app I get an error - No applicable action for [rollingPolicy]. But the same config works in a java project that uses logback.
Thanks,
Pete
<configuration>
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<FileNamePattern>logFile.%d{yyyy/MM/dd}.log</FileNamePattern>
</rollingPolicy>
<layout class="ch.qos.logback.classic.PatternLayout">
<Pattern>%-4relative [%thread] %-5level %logger{35} - %msg%n</Pattern>
</layout>
</appender>
<root level="debug">
<appender-ref ref="FILE" />
</root>
</configuration>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://qos.ch/pipermail/logback-user/attachments/20110920/2a1b29c1/attachment.html>
More information about the Logback-user
mailing list