<meta http-equiv="Content-Type" content="text/html; charset=GB18030"><div><span style="font-family: "lucida Grande", Verdana;"><br></span></div><div><span style="font-family: "lucida Grande", Verdana;">The max index can not greater than 20, hardcode, in </span><font face="lucida Grande, Verdana">FixedWindowRollingPolicy.java</font></div><div><div><br></div><font face="lucida Grande, Verdana"></font></div><div><div><font face="lucida Grande, Verdana"> /**</font></div><div><font face="lucida Grande, Verdana"> * It's almost always a bad idea to have a large window size, say over 20.</font></div><div><font face="lucida Grande, Verdana"> */</font></div><div><font face="lucida Grande, Verdana"> private static int MAX_WINDOW_SIZE = 20;</font></div></div><div><font face="lucida Grande, Verdana"><br></font></div><div><br></div><div><hr align="left" style="margin: 0 0 10px 0;border: 0;border-bottom:1px solid #E4E5E6;height:0;line-height:0;font-size:0;padding: 20px 0 0 0;width: 50px;"><div style="font-size:14px;font-family:Verdana;color:#000;"><div><span style="line-height: 1.5;">BR,</span></div><div>Mike(Yu, Chong-Chao)</div></div></div><div> </div><div><div><br></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ 原始邮件 ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>发件人:</b> "haobo liu"<lhbazazazv@gmail.com>;</div><div><b>发送时间:</b> 2020年6月18日(星期四) 上午9:12</div><div><b>收件人:</b> "logback users list"<logback-user@qos.ch>;<wbr></div><div></div><div><b>主题:</b> Re: [logback-user] maxIndex issue</div></div><div><br></div><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></div>