[logback-user] rolling in logback-android

Ceki Gülcü ceki at qos.ch
Wed Sep 21 10:46:42 CEST 2011


Hi Peter,

By logback-android you mean the project hosted at 
https://github.com/tony19/logback-android ?

--
Ceki
http://twitter.com/ceki

On 21/09/2011 3:17 AM, Peter Chmiel wrote:
> 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>
>
>


More information about the Logback-user mailing list