<div dir="ltr">I didn't follow on what you hint at? Did you mean the rolling policy I have been using is incorrect? <div><br></div><div>Regards,</div><div>Amit.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 13, 2014 at 1:12 AM, Ren, Kevin <span dir="ltr"><<a href="mailto:Kevin.Ren@justice.govt.nz" target="_blank">Kevin.Ren@justice.govt.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-NZ" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi Amit,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">That's my working config file<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">   <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">            <fileNamePattern>./application.log.%d{yyyy-MM-dd}</fileNamePattern><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">            <!--<fileNamePattern>./application.csv-%d{yyyy-MM-dd'T'HH_mm}</fileNamePattern>--><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">            <timeBasedFileNamingAndTriggeringPolicy<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">                    class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">                <!-- or whenever the file size reaches 100MB --><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">                <maxFileSize>100MB</maxFileSize><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">            </timeBasedFileNamingAndTriggeringPolicy><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">            <MaxHistory>7</MaxHistory><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">        </rollingPolicy><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">good luk,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Kevin<u></u><u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Logback-user [mailto:<a href="mailto:logback-user-bounces@qos.ch" target="_blank">logback-user-bounces@qos.ch</a>]
<b>On Behalf Of </b>amit shah<br>
<b>Sent:</b> Friday, 10 October 2014 7:56 p.m.<br>
<b>To:</b> <a href="mailto:logback-user@qos.ch" target="_blank">logback-user@qos.ch</a><br>
<b>Subject:</b> [logback-user] RollingFileAppender does not roll after max size exceeds<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Hello,<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I am using using logback version 1.0.9 with slf4j 1.7.2. I see my log file not getting rolled over even after the maxFileSize exceeds. I see that the new logs are still logged to the same file and its size continuously increasing. My configuration
 is as below<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<div>
<p class="MsoNormal">  <appender name="WEB_LOG" class="ch.qos.logback.core.rolling.RollingFileAppender"><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">        <file>web.log</file><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">        <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">            <fileNamePattern>web%i.log</fileNamePattern><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">            <minIndex>1</minIndex><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">            <maxIndex>9</maxIndex><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">        </rollingPolicy><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">        <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">            <maxFileSize>20MB</maxFileSize><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">        </triggeringPolicy><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">        <encoder><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">            <pattern>%date [%thread] %-5level %logger{36} %line - %msg%n</pattern><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">        </encoder><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">    </appender><u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">The current log file size is over 55 mb. I would like to know if there is any information that I could capture while this issue is seen in the production environment since I assume this would be a rare bug being seen.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Regards,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Amit.<u></u><u></u></p>
</div>
</div>
</div></div></div>
<hr><br><strong>Confidentiality notice:</strong> <br>This email may contain information that is confidential or legally privileged. If you have received it by mistake, please:<br>(1) reply promptly to that effect, and remove this email and the reply from your system;<br>(2) do not act on this email in any other way.<br>Thank you.<br><br><hr></div>

<br>_______________________________________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch">Logback-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/logback-user" target="_blank">http://mailman.qos.ch/mailman/listinfo/logback-user</a><br></blockquote></div><br></div>