<div dir="ltr">does '200KB' is effective? every file part size is '200KB'?<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Joud Kassem <<a href="mailto:joud.kassem79@gmail.com">joud.kassem79@gmail.com</a>> 于2020年6月17日周三 下午7:57写道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>I have my rollingFileAppender configured as follows:</div><div><br></div><div>appender("myAppender", RollingFileAppender) {<br> file = "${logDir}/myApp.log"<br> encoder(PatternLayoutEncoder) {<br> charset = Charset.forName('UTF-8')<br> pattern = log_pattern<br> }<br> rollingPolicy(FixedWindowRollingPolicy) {<br> fileNamePattern = "${logDir}/myApp%i.log"<br> minIndex = 1<br> maxIndex = 24<br> }<br> triggeringPolicy(SizeBasedTriggeringPolicy) {<br> maxFileSize = FileSize.valueOf("200KB") <br> }<br> }<br></div><div><br></div><div>I had first the maxIndex = 20, i modified it to 24 and I'm testing. As I see the number of logs are 21 and rotating while it should be 24! I tested it a lot and still the same issue. Anybody has this issue before or knows why this is happening?</div><div><br></div><div>Thanks in advance,</div><div>Joud</div></div>
_______________________________________________<br>
logback-user mailing list<br>
<a href="mailto:logback-user@qos.ch" target="_blank">logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" rel="noreferrer" target="_blank">http://mailman.qos.ch/mailman/listinfo/logback-user</a></blockquote></div>