<div dir="ltr"><font face="verdana, sans-serif">Hi all, </font><div><font face="verdana, sans-serif"><br></font><div><font face="verdana, sans-serif">I have a RollingFileAppender defined as follows:<br></font></div><div><pre class="gmail-c-mrkdwn__pre" style="box-sizing:inherit;margin-top:4px;margin-bottom:4px;padding:8px;line-height:1.50001;font-variant-ligatures:none;white-space:pre-wrap;word-break:normal;border-radius:4px;color:rgb(29,28,29)"><font face="verdana, sans-serif">appender("test", RollingFileAppender) {<br style="box-sizing:inherit">            file = "${logDir}/logFile.log"        <br style="box-sizing:inherit">            encoder(PatternLayoutEncoder) {<br style="box-sizing:inherit">                pattern = log_pattern_prod<br style="box-sizing:inherit">            }<br style="box-sizing:inherit">            rollingPolicy(FixedWindowRollingPolicy) {<br style="box-sizing:inherit">                fileNamePattern = "${logDir}/logFile%i.log" <br style="box-sizing:inherit">                minIndex = 1<br style="box-sizing:inherit">                maxIndex = 3<br style="box-sizing:inherit">            }<br style="box-sizing:inherit">            triggeringPolicy(SizeBasedTriggeringPolicy) {<br style="box-sizing:inherit">                maxFileSize = FileSize.valueOf("10KB")<br style="box-sizing:inherit">            }<br style="box-sizing:inherit">        }</font><span class="gmail-c-mrkdwn__br" style="box-sizing:inherit;display:block;height:unset"></span><font face="verdana, sans-serif">      root(DEBUG, ['test'])</font></pre><pre class="gmail-c-mrkdwn__pre" style="box-sizing:inherit;margin-top:4px;margin-bottom:4px;padding:8px;line-height:1.50001;font-variant-ligatures:none;white-space:pre-wrap;word-break:normal;border-radius:4px;color:rgb(29,28,29)"><font face="verdana, sans-serif">

<span style="font-variant-ligatures:common-ligatures;background-color:rgb(248,248,248)">I'm testing it, I get 3 archived files but the size of the files is not limited to 10KB as you can see in the attachment</span></font></pre><pre class="gmail-c-mrkdwn__pre" style="box-sizing:inherit;margin-top:4px;margin-bottom:4px;padding:8px;line-height:1.50001;white-space:pre-wrap;word-break:normal;border-radius:4px;color:rgb(29,28,29)"><font face="verdana, sans-serif">
<span style="font-variant-ligatures:common-ligatures;background-color:rgb(248,248,248)">Why is this happening? The size of the files shouldn't exceed 10KB, how rolling is working in this case?</span></font></pre><pre class="gmail-c-mrkdwn__pre" style="box-sizing:inherit;margin-top:4px;margin-bottom:4px;padding:8px;line-height:1.50001;white-space:pre-wrap;word-break:normal;border-radius:4px;color:rgb(29,28,29)"><font face="verdana, sans-serif">Thanks in advance,</font></pre><pre class="gmail-c-mrkdwn__pre" style="box-sizing:inherit;margin-top:4px;margin-bottom:4px;padding:8px;line-height:1.50001;white-space:pre-wrap;word-break:normal;border-radius:4px;color:rgb(29,28,29)"><font face="verdana, sans-serif">Mhd

</font>
</pre></div></div></div>