[logback-user] rolling in logback-android
Ceki Gülcü
ceki at qos.ch
Thu Sep 22 00:47:07 CEST 2011
Hi Peter,
After studying logback-android code, in particular the PropertySetter
class, it looks like Anthony has written his own Introspector class
instead of using java.beans.Instrospector. I am guessing that properties
are not being detected correctly by Anthony's Instrospector.
I suggest you report this problem to Anthony. As a temporary measure,
writing <RollingPolicy> instead of <rollingPolicy> should/may solve the
problem.
HTH,
--
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