Hi there,
I am trying to use the time based rolling configuration for my android app.
I got my configuration from the doc (
http://logback.qos.ch/manual/appenders.html#TimeBasedRollingPolicy) but it
does not seem to work on my app.
Please find enclosed my config file.
The file does not roll and everything goes to log.log.
To try it out I changed the date on my phone. I took care of killing the
app before doing so.
I also set the time to 23h59 then launched my app and waited, but it did
not work either.
What did I do wrong?
Thanks
Jonas
<configuration>
<property name="LOG_DIR" value="/storage/sdcard0/cecil-logs" />
<appender name="logcat" class="ch.qos.logback.classic.android.LogcatAppender">
<encoder>
<pattern>%msg</pattern>
</encoder>
</appender>
<appender name="filelog" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${LOG_DIR}/log.log</file>
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover -->
<fileNamePattern>log.%d.log</fileNamePattern>
<!-- keep 30 days' worth of history -->
<maxHistory>30</maxHistory>
<cleanHistoryOnStart>true</cleanHistoryOnStart>
</rollingPolicy>
</appender>
<appender name="async" class="ch.qos.logback.classic.AsyncAppender">
<appender-ref ref="filelog" />
</appender>
<root level="DEBUG" >
<appender-ref ref="async" />
<appender-ref ref="logcat" />
</root>
</configuration>_______________________________________________
Logback-user mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/logback-user