<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>Does logback-android support rolling?</div><div><br></div><div>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.</div><div><br></div><div>Thanks,</div><div>Pete </div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(187, 45, 157); "><configuration><span style="color: rgb(0, 0, 0); "> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(209, 44, 38); "><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(187, 45, 157); "><appender </span><span style="color: rgb(149, 126, 65); ">name</span><span style="color: rgb(187, 45, 157); ">=</span>"FILE"<span style="color: rgb(187, 45, 157); "> </span><span style="color: rgb(149, 126, 65); ">class</span><span style="color: rgb(187, 45, 157); ">=</span>"ch.qos.logback.core.rolling.RollingFileAppender"<span style="color: rgb(187, 45, 157); ">></span><span style="color: rgb(0, 0, 0); "> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; "> <br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(209, 44, 38); "><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(187, 45, 157); "><rollingPolicy </span><span style="color: rgb(149, 126, 65); ">class</span><span style="color: rgb(187, 45, 157); ">=</span>"ch.qos.logback.core.rolling.TimeBasedRollingPolicy"<span style="color: rgb(187, 45, 157); ">></span><span style="color: rgb(0, 0, 0); "> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "> <span style="color: rgb(187, 45, 157); "><FileNamePattern></span>logFile.%d{yyyy/MM/dd}.log<span style="color: rgb(187, 45, 157); "></FileNamePattern></span> </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(187, 45, 157); "><span style="color: rgb(0, 0, 0); "> </span></rollingPolicy><span style="color: rgb(0, 0, 0); "> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; "> <br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(209, 44, 38); "><span style="color: rgb(0, 0, 0); "> </span><span style="color: rgb(187, 45, 157); "><layout </span><span style="color: rgb(149, 126, 65); ">class</span><span style="color: rgb(187, 45, 157); ">=</span>"ch.qos.logback.classic.PatternLayout"<span style="color: rgb(187, 45, 157); ">></span><span style="color: rgb(0, 0, 0); "> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "> <span style="color: rgb(187, 45, 157); "><Pattern></span>%-4relative [%thread] %-5level %logger{35} - %msg%n<span style="color: rgb(187, 45, 157); "></Pattern></span> </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; "> <span style="color: rgb(187, 45, 157); "></layout></span> </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(187, 45, 157); "><span style="color: rgb(0, 0, 0); "> </span></appender><span style="color: rgb(0, 0, 0); "> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; "> <br class="webkit-block-placeholder"></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(187, 45, 157); "><span style="color: rgb(0, 0, 0); "> </span><root <span style="color: rgb(149, 126, 65); ">level</span>=<span style="color: rgb(209, 44, 38); ">"debug"</span>><span style="color: rgb(0, 0, 0); "> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(187, 45, 157); "><span style="color: rgb(0, 0, 0); "> </span><appender-ref <span style="color: rgb(149, 126, 65); ">ref</span>=<span style="color: rgb(209, 44, 38); ">"FILE"</span> /><span style="color: rgb(0, 0, 0); "> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(187, 45, 157); "><span style="color: rgb(0, 0, 0); "> </span></root><span style="color: rgb(0, 0, 0); "> </span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(187, 45, 157); "></configuration><span style="color: rgb(0, 0, 0); "> </span></div></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(187, 45, 157); "><span style="color: rgb(0, 0, 0); "><br></span></div></body></html>