Ok, it's fixed now.<div><br></div><div>-Tony</div><div><br><br><div class="gmail_quote">On Wed, Sep 21, 2011 at 10:05 PM, Tony Trinh <span dir="ltr"><<a href="mailto:tony19@gmail.com">tony19@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Peter/Ceki,<div><br></div><div>Android doesn't support java.beans.Introspector, so I had to roll my own.</div>
<div>
<br></div><div>I managed to reproduce the problem. Changing the tag to "RollingPolicy" unfortunately did not help. The logcat output is:</div>
<div><br></div><div><br></div><div><div><div>I/System.out( 855): 22:03:12,832 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]</div>
<div>I/System.out( 855): 22:03:12,834 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILE]</div><div><span style="background-color:rgb(255, 255, 153)">I/System.out( 855): 22:03:12,849 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@5:8 - no applicable action for [rollingPolicy], current pattern is [[configuration][appender][rollingPolicy]]</span></div>
<div>I/System.out( 855): 22:03:12,857 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@6:12 - no applicable action for [FileNamePattern], current pattern is [[configuration][appender][rollingPolicy][FileNamePattern]]</div>
<div>I/System.out( 855): 22:03:12,864 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property</div><div>I/System.out( 855): 22:03:12,877 |-WARN in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - No TriggeringPolicy was set for the RollingFileAppender named FILE</div>
<div>I/System.out( 855): 22:03:12,877 |-WARN in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - For more information, please visit <a href="http://logback.qos.ch/codes.html#rfa_no_tp" target="_blank">http://logback.qos.ch/codes.html#rfa_no_tp</a></div>
<div>I/System.out( 855): 22:03:12,877 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to DEBUG</div><div>I/System.out( 855): 22:03:12,878 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [FILE] to Logger[ROOT]</div>
<div>I/System.out( 855): 22:03:12,878 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.</div><div>I/System.out( 855): 22:03:12,652 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]</div>
<div>I/System.out( 855): 22:03:12,652 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]</div><div>I/System.out( 855): 22:03:12,652 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.xml]</div>
<div>I/System.out( 855): 22:03:12,662 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Setting up default configuration.</div><div>I/System.out( 855): 22:03:12,832 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]</div>
<div>I/System.out( 855): 22:03:12,834 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILE]</div><div>I/System.out( 855): 22:03:12,849 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@5:8 - no applicable action for [rollingPolicy], current pattern is [[configuration][appender][rollingPolicy]]</div>
<div>I/System.out( 855): 22:03:12,857 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@6:12 - no applicable action for [FileNamePattern], current pattern is [[configuration][appender][rollingPolicy][FileNamePattern]]</div>
<div>I/System.out( 855): 22:03:12,864 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property</div><div>I/System.out( 855): 22:03:12,877 |-WARN in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - No TriggeringPolicy was set for the RollingFileAppender named FILE</div>
<div>I/System.out( 855): 22:03:12,877 |-WARN in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - For more information, please visit <a href="http://logback.qos.ch/codes.html#rfa_no_tp" target="_blank">http://logback.qos.ch/codes.html#rfa_no_tp</a></div>
<div>I/System.out( 855): 22:03:12,877 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to DEBUG</div><div>I/System.out( 855): 22:03:12,878 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [FILE] to Logger[ROOT]</div>
<div>I/System.out( 855): 22:03:12,878 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.</div><div>I/System.out( 855): 22:03:12,920 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@4053ad60 - Registering current configuration as safe fallback point</div>
</div></div><div><br></div><div><br></div><div><br></div><div>I will look into the problem this weekend when I get a chance.</div><div><br></div><div>Thanks,</div><div>Tony</div><div><div></div><div class="h5"><div><br><br>
<div class="gmail_quote">On Wed, Sep 21, 2011 at 6:47 PM, Ceki Gülcü <span dir="ltr"><<a href="mailto:ceki@qos.ch" target="_blank">ceki@qos.ch</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Peter,<br>
<br>
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.<br>
<br>
I suggest you report this problem to Anthony. As a temporary measure, writing <RollingPolicy> instead of <rollingPolicy> should/may solve the problem.<br>
<br>
HTH,<br><font color="#888888">
<br>
-- <br></font><div>
Ceki<br>
<a href="http://twitter.com/ceki" target="_blank">http://twitter.com/ceki</a><br>
<br>
On 21/09/2011 3:17 AM, Peter Chmiel wrote:<br>
</div><div><div></div><div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
Does logback-android support rolling?<br>
<br>
When I try using the configuration file below in an android app I get an<br>
error - No applicable action for [rollingPolicy]. But the same config<br>
works in a java project that uses logback.<br>
<br>
Thanks,<br>
Pete<br>
<br>
<configuration><br>
<appender<br>
name="FILE"class="ch.qos.<u></u>logback.core.rolling.<u></u>RollingFileAppender"><br>
<br>
<rollingPolicy class="ch.qos.logback.core.<u></u>rolling.<u></u>TimeBasedRollingPolicy"><br>
<FileNamePattern>logFile.%d{<u></u>yyyy/MM/dd}.log</<u></u>FileNamePattern><br>
</rollingPolicy><br>
<br>
<layout class="ch.qos.logback.classic.<u></u>PatternLayout"><br>
<Pattern>%-4relative [%thread] %-5level %logger{35} - %msg%n</Pattern><br>
</layout><br>
</appender><br>
<br>
<root level="debug"><br>
<appender-ref ref="FILE" /><br>
</root><br>
</configuration><br>
<br>
</blockquote></div></div><div><div></div><div>
______________________________<u></u>_________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch" target="_blank">Logback-user@qos.ch</a><br>
<a href="http://qos.ch/mailman/listinfo/logback-user" target="_blank">http://qos.ch/mailman/<u></u>listinfo/logback-user</a><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>