<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-NZ" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi Amit,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">That's my working config file<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></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"><o:p></o:p></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><o:p></o:p></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>--><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> <timeBasedFileNamingAndTriggeringPolicy<o:p></o:p></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"><o:p></o:p></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 --><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> <maxFileSize>100MB</maxFileSize><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </timeBasedFileNamingAndTriggeringPolicy><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> <MaxHistory>7</MaxHistory><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </rollingPolicy><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">good luk,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Kevin<o:p></o:p></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:logback-user-bounces@qos.ch]
<b>On Behalf Of </b>amit shah<br>
<b>Sent:</b> Friday, 10 October 2014 7:56 p.m.<br>
<b>To:</b> logback-user@qos.ch<br>
<b>Subject:</b> [logback-user] RollingFileAppender does not roll after max size exceeds<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Hello,<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></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<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"> <appender name="WEB_LOG" class="ch.qos.logback.core.rolling.RollingFileAppender"><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <file>web.log</file><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <fileNamePattern>web%i.log</fileNamePattern><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <minIndex>1</minIndex><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <maxIndex>9</maxIndex><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> </rollingPolicy><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <maxFileSize>20MB</maxFileSize><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> </triggeringPolicy><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <encoder><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <pattern>%date [%thread] %-5level %logger{36} %line - %msg%n</pattern><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> </encoder><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> </appender><o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></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.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Regards,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Amit.<o:p></o:p></p>
</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></body>
</html>