Hi,<br><br>I am new to logback. I am trying to configure the time and rolling policy for a rolling file  appender.<br><br>Here&#39;s what I need:<br><br>a) Every &quot;x&quot; minutes, I want it to roll the file regardless of how small the size of the live file is.(low logging rate)<br>

b) If within those &quot;x&quot; minutes, the live log file size exceeds &quot;y&quot; KBs, i want it to use indices like ${date_time}.0.log and ${date_time}.1.log and so on. ( high logging rate)<br><br>I&#39;d like &quot;x&quot; to be 15 mins, but if that&#39;s not doable, I can live with &quot;x = 1 minute&quot;.<br>

<br>Here&#39;s my config, which doesn&#39;t seem to do exactly what I&#39;ve described:<br><br>&lt;appender name=&quot;FILE&quot; class=&quot;ch.qos.logback.core.rolling.RollingFileAppender&quot;&gt;<br>  &lt;file&gt;${user.home}/impression_logs/impressions.log&lt;/file&gt;<br>

  &lt;rollingPolicy class=&quot;ch.qos.logback.core.rolling.TimeBasedRollingPolicy&quot;&gt;<br>      &lt;fileNamePattern&gt;${user.home}/impression_log_archives/${HOSTNAME}/impressions.%d{yyyy-MM-dd-hh-mm}.%i.log&lt;/fileNamePattern&gt;<br>

      &lt;timeBasedFileNamingAndTriggeringPolicy class=&quot;ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP&quot;&gt;<br>          &lt;maxFileSize&gt;1MB&lt;/maxFileSize&gt;<br>        &lt;/timeBasedFileNamingAndTriggeringPolicy&gt;<br>

  &lt;/rollingPolicy&gt;<br><br>  &lt;encoder&gt;<br>    &lt;pattern&gt;%msg%n&lt;/pattern&gt;<br>  &lt;/encoder&gt;<br>&lt;/appender&gt;<br><br>Can some one help me with this ?<br><br>-- Manoj M<br>