<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=iso-8859-1">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@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;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-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;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
p.htmlpreformatted, li.htmlpreformatted, div.htmlpreformatted
        {mso-style-name:htmlpreformatted;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.htmlpreformattedchar0
        {mso-style-name:htmlpreformattedchar;
        mso-style-priority:99;
        font-family:Consolas;}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Arial","sans-serif";
        color:navy;}
span.EmailStyle23
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle24
        {mso-style-type:personal;
        font-family:"Arial","sans-serif";
        color:navy;}
span.pun
        {mso-style-name:pun;}
span.tag
        {mso-style-name:tag;}
span.atn
        {mso-style-name:atn;}
span.atv
        {mso-style-name:atv;}
span.pln
        {mso-style-name:pln;}
span.EmailStyle30
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</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-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='color:#1F497D'>What I want  to roll back filed
based on time and to delete older files and there archives if they are older
than 2 days for example,.and iam using the latest version which is 0.9.17!!<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Here is my xml configuration  again
</span><span style='font-family:Wingdings;color:#1F497D'>J</span><span
style='color:#1F497D'>:<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:teal'>&lt;</span><span style='font-size:10.0pt;
font-family:"Courier New";color:#3F7F7F;background:silver'>configuration</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;</span><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:black'>&nbsp; </span><span style='font-size:
10.0pt;font-family:"Courier New";color:teal'>&lt;</span><span style='font-size:
10.0pt;font-family:"Courier New";color:#3F7F7F'>appender</span><span
style='font-size:10.0pt;font-family:"Courier New"'> <span style='color:#7F007F'>name</span><span
style='color:black'>=</span><i><span style='color:#2A00FF'>&quot;ROLLING&quot;</span></i>
<span style='color:#7F007F'>class</span><span style='color:black'>=</span><i><span
style='color:#2A00FF'>&quot;ch.qos.logback.core.rolling.RollingFileAppender&quot;</span></i><span
style='color:teal'>&gt;</span><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:black'>&nbsp;&nbsp; </span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>rollingPolicy</span><span
style='font-size:10.0pt;font-family:"Courier New"'> <span style='color:#7F007F'>class</span><span
style='color:black'>=</span><i><span style='color:#2A00FF'>&quot;ch.qos.logback.core.rolling.TimeBasedRollingPolicy&quot;</span></i><span
style='color:teal'>&gt;</span><span style='color:black'> </span><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:black'>&nbsp;&nbsp; </span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>FileNamePattern</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;</span><u><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>mylog</span></u><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>-%d.%i.log</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;/</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>FileNamePattern</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:black'> </span><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:black'>&nbsp;&nbsp; </span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>TimeBasedFileNamingAndTriggeringPolicy</span><span
style='font-size:10.0pt;font-family:"Courier New"'> <span style='color:#7F007F'>class</span><span
style='color:black'>=</span><i><span style='color:#2A00FF'>&quot;ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP&quot;</span></i><span
style='color:teal'>&gt;</span><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:black'>&nbsp;&nbsp; </span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>MaxFileSize</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>5MB</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;/</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>MaxFileSize</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:teal'>      </span><b><span style='font-family:
"Courier New";color:teal'>&lt;</span></b><b><span style='font-family:"Courier New";
color:#3F7F7F'>MaxHistory</span></b><b><span style='font-family:"Courier New";
color:teal'>&gt;</span></b><b><span style='font-family:"Courier New";
color:black'>2</span></b><b><span style='font-family:"Courier New";color:teal'>&lt;/</span></b><b><span
style='font-family:"Courier New";color:#3F7F7F'>MaxHistory</span></b><b><span
style='font-family:"Courier New";color:teal'>&gt;</span></b><b><span
style='font-family:"Courier New"'><o:p></o:p></span></b></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:black'>&nbsp;&nbsp; </span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;/</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>TimeBasedFileNamingAndTriggeringPolicy</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><b><span style='font-family:
"Courier New";color:teal'>&lt;</span></b><b><span style='font-family:"Courier New";
color:#3F7F7F'>MaxHistory</span></b><b><span style='font-family:"Courier New";
color:teal'>&gt;</span></b><b><span style='font-family:"Courier New";
color:black'>2</span></b><b><span style='font-family:"Courier New";color:teal'>&lt;/</span></b><b><span
style='font-family:"Courier New";color:#3F7F7F'>MaxHistory</span></b><b><span
style='font-family:"Courier New";color:teal'>&gt;</span></b><b><span
style='font-family:"Courier New"'><o:p></o:p></span></b></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:black'>&nbsp;&nbsp; </span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;/</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>rollingPolicy</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;</span><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:black'>&nbsp;&nbsp; </span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>layout</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;</span><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:black'>&nbsp;&nbsp; </span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>Pattern</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>%<u>msg</u>%n</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;/</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>Pattern</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp; </span><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp; </span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;/</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>layout</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp; </span><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:black'>&nbsp;&nbsp; </span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;/</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>appender</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp; </span><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:black'>&nbsp;&nbsp; </span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>root</span><span
style='font-size:10.0pt;font-family:"Courier New"'> <span style='color:#7F007F'>level</span><span
style='color:black'>=</span><i><span style='color:#2A00FF'>&quot;debug&quot;</span></i><span
style='color:teal'>&gt;</span><span style='color:black'>&nbsp;&nbsp;&nbsp; </span><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:black'>&nbsp;&nbsp; </span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>appender-ref</span><span
style='font-size:10.0pt;font-family:"Courier New"'> <span style='color:#7F007F'>ref</span><span
style='color:black'>=</span><i><span style='color:#2A00FF'>&quot;ROLLING&quot;</span></i>
<span style='color:teal'>/&gt;</span><span style='color:black'> </span><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:black'>&nbsp;&nbsp; </span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;/</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>root</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;</span><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>&nbsp;&nbsp; </span><span style='font-size:10.0pt;font-family:
"Courier New";color:teal'>&lt;/</span><span style='font-size:10.0pt;font-family:
"Courier New";color:#3F7F7F;background:silver'>configuration</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;</span><span
style='color:#1F497D'> <o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> logback-user-bounces@qos.ch
[mailto:logback-user-bounces@qos.ch] <b>On Behalf Of </b>Johan Bos<br>
<b>Sent:</b> Thursday, October 01, 2009 2:50 PM<br>
<b>To:</b> 'logback users list'<br>
<b>Subject:</b> Re: [logback-user] urgent explination issue<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>That is exactly my point: You set up the maxhistory for the current
file<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>It is what you intend or do you want that option only for the
archives?<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>If only for the archive, you should then relocate your option into
the &lt;</span><span style='font-size:10.0pt;font-family:"Courier New";
color:#3F7F7F'>TimeBasedFileNamingAndTriggeringPolicy&gt; node. Same level as
&lt;MaxFileSize&gt; node.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:#3F7F7F'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:#3F7F7F'>Otherwise, if only for the current log file, see which version
you have, I remember that a bug issue has been known on log file history not
being deleted.</span><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p>&nbsp;</o:p></span></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><span lang=FR
style='font-size:12.0pt;font-family:"Times New Roman","serif"'>

<hr size=2 width="100%" align=center>

</span></div>

<p class=MsoNormal><b><span lang=FR style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>De&nbsp;:</span></b><span
lang=FR style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
logback-user-bounces@qos.ch [mailto:logback-user-bounces@qos.ch] <b>De la part
de</b> Ayman Hammoudeh<br>
<b>Envoyé&nbsp;:</b> jeudi 1 octobre 2009 15:31<br>
<b>À&nbsp;:</b> logback users list<br>
<b>Objet&nbsp;:</b> Re: [logback-user] urgent explination issue</span><span
lang=FR style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

</div>

<p class=MsoNormal><span lang=FR><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>This is the way I&#8217;am doing
it but&nbsp; its not working .<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Here is my xml configuration :<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:teal'>&lt;</span><span style='font-size:10.0pt;
font-family:"Courier New";color:#3F7F7F;background:silver'>configuration</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;</span><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:black'>&nbsp; </span><span style='font-size:
10.0pt;font-family:"Courier New";color:teal'>&lt;</span><span style='font-size:
10.0pt;font-family:"Courier New";color:#3F7F7F'>appender</span><span
style='font-size:10.0pt;font-family:"Courier New"'> <span style='color:#7F007F'>name</span><span
style='color:black'>=</span><i><span style='color:#2A00FF'>&quot;ROLLING&quot;</span></i>
<span style='color:#7F007F'>class</span><span style='color:black'>=</span><i><span
style='color:#2A00FF'>&quot;ch.qos.logback.core.rolling.RollingFileAppender&quot;</span></i><span
style='color:teal'>&gt;</span><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:black'>&nbsp;&nbsp; </span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>rollingPolicy</span><span
style='font-size:10.0pt;font-family:"Courier New"'> <span style='color:#7F007F'>class</span><span
style='color:black'>=</span><i><span style='color:#2A00FF'>&quot;ch.qos.logback.core.rolling.TimeBasedRollingPolicy&quot;</span></i><span
style='color:teal'>&gt;</span><span style='color:black'> </span><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:black'>&nbsp;&nbsp; </span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>FileNamePattern</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;</span><u><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>mylog</span></u><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>-%d.%i.log</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;/</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>FileNamePattern</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:black'> </span><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:black'>&nbsp;&nbsp; </span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>TimeBasedFileNamingAndTriggeringPolicy</span><span
style='font-size:10.0pt;font-family:"Courier New"'> <span style='color:#7F007F'>class</span><span
style='color:black'>=</span><i><span style='color:#2A00FF'>&quot;ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP&quot;</span></i><span
style='color:teal'>&gt;</span><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:black'>&nbsp;&nbsp; </span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>MaxFileSize</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>5MB</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;/</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>MaxFileSize</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;</span><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:black'>&nbsp;&nbsp; </span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;/</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>TimeBasedFileNamingAndTriggeringPolicy</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;<o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><b><span style='font-family:
"Courier New";color:teal'>&lt;</span></b><b><span style='font-family:"Courier New";
color:#3F7F7F'>MaxHistory</span></b><b><span style='font-family:"Courier New";
color:teal'>&gt;</span></b><b><span style='font-family:"Courier New";
color:black'>1</span></b><b><span style='font-family:"Courier New";color:teal'>&lt;/</span></b><b><span
style='font-family:"Courier New";color:#3F7F7F'>MaxHistory</span></b><b><span
style='font-family:"Courier New";color:teal'>&gt;</span></b><b><span
style='font-family:"Courier New"'><o:p></o:p></span></b></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:black'>&nbsp;&nbsp; </span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;/</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>rollingPolicy</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;</span><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:black'>&nbsp;&nbsp; </span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>layout</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;</span><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:black'>&nbsp;&nbsp; </span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>Pattern</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>%<u>msg</u>%n</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;/</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>Pattern</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp; </span><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp; </span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;/</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>layout</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp; </span><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:black'>&nbsp;&nbsp; </span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;/</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>appender</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp; </span><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:black'>&nbsp;&nbsp; </span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>root</span><span
style='font-size:10.0pt;font-family:"Courier New"'> <span style='color:#7F007F'>level</span><span
style='color:black'>=</span><i><span style='color:#2A00FF'>&quot;debug&quot;</span></i><span
style='color:teal'>&gt;</span><span style='color:black'>&nbsp;&nbsp;&nbsp; </span><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:black'>&nbsp;&nbsp; </span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>appender-ref</span><span
style='font-size:10.0pt;font-family:"Courier New"'> <span style='color:#7F007F'>ref</span><span
style='color:black'>=</span><i><span style='color:#2A00FF'>&quot;ROLLING&quot;</span></i>
<span style='color:teal'>/&gt;</span><span style='color:black'> </span><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:black'>&nbsp;&nbsp; </span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;/</span><span
style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>root</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;</span><span
style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";
color:black'>&nbsp;&nbsp; </span><span style='font-size:10.0pt;font-family:
"Courier New";color:teal'>&lt;/</span><span style='font-size:10.0pt;font-family:
"Courier New";color:#3F7F7F;background:silver'>configuration</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;</span><span
style='color:#1F497D'> <o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Has any one tried it and
worked!!?<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
logback-user-bounces@qos.ch [mailto:logback-user-bounces@qos.ch] <b>On Behalf
Of </b>Johan Bos<br>
<b>Sent:</b> Thursday, October 01, 2009 2:28 PM<br>
<b>To:</b> 'logback users list'<br>
<b>Subject:</b> Re: [logback-user] urgent explination issue<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>You probably meant&nbsp;: &lt;rollingPolicy&gt; instead of
&lt;rollingPolisy&gt;<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;</span><span
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F;
background:silver'>rollingPolicy</span><span lang=EN-GB style='font-size:10.0pt;
font-family:"Courier New"'> <span style='color:#7F007F'>class</span><span
style='color:black'>=</span><i><span style='color:#2A00FF'>&quot;ch.qos.logback.core.rolling.TimeBasedRollingPolicy&quot;</span></i><span
style='color:teal'>&gt;</span><o:p></o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span lang=FR style='font-size:10.0pt;font-family:"Courier New";
color:teal'>&lt;</span><span lang=FR style='font-size:10.0pt;font-family:"Courier New";
color:#3F7F7F'>MaxHistory</span><span lang=FR style='font-size:10.0pt;
font-family:"Courier New";color:teal'>&gt;</span><span lang=FR
style='font-size:10.0pt;font-family:"Courier New";color:black'>5</span><span
lang=FR style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;/</span><span
lang=FR style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F'>MaxHistory</span><span
lang=FR style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;</span><span
lang=FR style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p>

<p class=MsoNormal><span lang=FR style='font-size:10.0pt;font-family:"Courier New";
color:black'>&nbsp;</span><span lang=FR style='font-size:10.0pt;font-family:
"Courier New";color:teal'>&lt;/</span><span lang=FR style='font-size:10.0pt;
font-family:"Courier New";color:#3F7F7F;background:silver'>rollingPolicy</span><span
lang=FR style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;</span><span
lang=FR style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'><o:p></o:p></span></p>

<p class=MsoNormal><span lang=FR style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>Or if desired max history only for the archive configuration:<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='text-autospace:none'><span lang=EN-GB
style='font-size:10.0pt;font-family:"Courier New";color:teal'>&lt;</span><span
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:#3F7F7F;
background:silver'>rollingPolicy</span><span lang=EN-GB style='font-size:10.0pt;
font-family:"Courier New"'> <span style='color:#7F007F'>class</span><span
style='color:black'>=</span><i>&quot;ch.qos.logback.core.rolling.TimeBasedRollingPolicy&quot;</i><span
style='color:teal'>&gt;<o:p></o:p></span></span></p>

<p class=MsoNormal style='text-indent:35.4pt;text-autospace:none'><span
class=pun><b><span lang=EN-GB>&lt;</span></b></span><span class=tag><b><span
lang=EN-GB>TimeBasedFileNamingAndTriggeringPolicy</span></b></span><span
lang=EN-GB> <span class=atn><b>class</b></span><span class=pun><b>=</b></span><span
class=atv><b>&quot;ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP&quot;</b></span><span
class=pun><b>&gt;</b></span></span><span class=pun><b><o:p></o:p></b></span></p>

<p class=MsoNormal style='margin-left:35.4pt;text-indent:35.4pt;text-autospace:
none'><span class=pun><b><span lang=EN-GB>&lt;</span></b></span><span
class=tag><b><span lang=EN-GB>MaxFileSize</span></b></span><span class=pun><b><span
lang=EN-GB>&gt;</span></b></span><span class=pln><b><span lang=EN-GB>${sizeThreshold}</span></b></span><span
class=pun><b><span lang=EN-GB>&lt;/</span></b></span><span class=tag><b><span
lang=EN-GB>MaxFileSize</span></b></span><span class=pun><b><span lang=EN-GB>&gt;</span></b></span><span
class=pun><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></span></p>

<p class=MsoNormal style='margin-left:35.4pt;text-indent:35.4pt;text-autospace:
none'><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";
color:teal'>&lt;</span><span lang=EN-GB style='font-size:10.0pt;font-family:
"Courier New"'>MaxHistory<span style='color:teal'>&gt;</span><span
style='color:black'>5</span><span style='color:teal'>&lt;/</span>MaxHistory<span
style='color:teal'>&gt;</span></span><o:p></o:p></p>

<p class=MsoNormal style='text-indent:35.4pt;text-autospace:none'><span
class=pun><b><span lang=EN-GB>&lt;/</span></b></span><span class=tag><b><span
lang=EN-GB>TimeBasedFileNamingAndTriggeringPolicy</span></b></span><span
class=pun><b><span lang=EN-GB>&gt;</span></b></span><span class=pun><b><span
lang=FR><o:p></o:p></span></b></span></p>

<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";
color:teal'>&lt;/</span><span lang=EN-GB style='font-size:10.0pt;font-family:
"Courier New";color:#3F7F7F;background:silver'>rollingPolicy</span><span
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";color:teal'>&gt;</span><span
style='font-size:10.0pt;font-family:"Arial","sans-serif";color:navy'><o:p></o:p></span></p>

<p class=MsoNormal style='margin-left:35.4pt;text-autospace:none'><span
lang=EN-GB style='font-size:10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:navy'>That the way I understood the documentation<o:p></o:p></span></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><span lang=FR
style='font-size:12.0pt;font-family:"Times New Roman","serif"'>

<hr size=2 width="100%" align=center>

</span></div>

<p class=MsoNormal><b><span lang=FR style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>De&nbsp;:</span></b><span
lang=FR style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
logback-user-bounces@qos.ch [mailto:logback-user-bounces@qos.ch] <b>De la part
de</b> Ayman Hammoudeh<br>
<b>Envoyé&nbsp;:</b> jeudi 1 octobre 2009 15:12<br>
<b>À&nbsp;:</b> logback-user@qos.ch<br>
<b>Objet&nbsp;:</b> [logback-user] urgent explination issue</span><span
lang=FR style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

</div>

<p class=MsoNormal><span lang=FR><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal>Hello,<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>I want to know how can I use max history&nbsp; in <a
name=SizeAndTimeBasedFNATP></a><a
href="http://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedFNATP">Size <b>and</b>
time based archiving</a>&nbsp; and where exactly to put the&lt;MaxHistory&gt;
tag in the xml , I have tried to put it in the &lt;RollingPolisy&gt; tag but
its not working.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Any help would be appreciated.<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Best Regards,<o:p></o:p></p>

<p class=MsoNormal>Ayman Hammoudeh <o:p></o:p></p>

</div>

</body>

</html>