<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<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 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: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;}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle20
{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.EmailStyle26
{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'>This is the way I’am doing it
but its not working .<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </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> </o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;
font-family:"Courier New";color:teal'><</span><span style='font-size:10.0pt;
font-family:"Courier New";color:#3F7F7F;background:silver;mso-highlight:silver'>configuration</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>></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'> </span><span style='font-size:10.0pt;
font-family:"Courier New";color:teal'><</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'>"ROLLING"</span></i>
<span style='color:#7F007F'>class</span><span style='color:black'>=</span><i><span
style='color:#2A00FF'>"ch.qos.logback.core.rolling.RollingFileAppender"</span></i><span
style='color:teal'>></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'> </span><span style='font-size:10.0pt;
font-family:"Courier New";color:teal'><</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'>"ch.qos.logback.core.rolling.TimeBasedRollingPolicy"</span></i><span
style='color:teal'>></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'> </span><span style='font-size:10.0pt;
font-family:"Courier New";color:teal'><</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'>></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'></</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'>></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'> </span><span style='font-size:10.0pt;
font-family:"Courier New";color:teal'><</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'>"ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"</span></i><span
style='color:teal'>></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'> </span><span style='font-size:10.0pt;
font-family:"Courier New";color:teal'><</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'>></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'></</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'>></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'> </span><span style='font-size:10.0pt;
font-family:"Courier New";color:teal'></</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'>><o:p></o:p></span></p>
<p class=MsoNormal style='text-autospace:none'><b><span style='font-family:
"Courier New";color:teal'><</span></b><b><span style='font-family:"Courier New";
color:#3F7F7F'>MaxHistory</span></b><b><span style='font-family:"Courier New";
color:teal'>></span></b><b><span style='font-family:"Courier New";
color:black'>1</span></b><b><span style='font-family:"Courier New";color:teal'></</span></b><b><span
style='font-family:"Courier New";color:#3F7F7F'>MaxHistory</span></b><b><span
style='font-family:"Courier New";color:teal'>></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'> </span><span style='font-size:10.0pt;
font-family:"Courier New";color:teal'></</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'>></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'> </span><span style='font-size:10.0pt;
font-family:"Courier New";color:teal'><</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'>></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'> </span><span style='font-size:10.0pt;
font-family:"Courier New";color:teal'><</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'>></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'></</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'>></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'> </span><span style='font-size:10.0pt;
font-family:"Courier New";color:teal'></</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'>></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'> </span><span style='font-size:10.0pt;
font-family:"Courier New";color:teal'></</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'>></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'> </span><span style='font-size:10.0pt;
font-family:"Courier New";color:teal'><</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'>"debug"</span></i><span
style='color:teal'>></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'> </span><span style='font-size:10.0pt;
font-family:"Courier New";color:teal'><</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'>"ROLLING"</span></i>
<span style='color:teal'>/></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'> </span><span style='font-size:10.0pt;
font-family:"Courier New";color:teal'></</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'>></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'> </span><span style='font-size:10.0pt;font-family:"Courier New";
color:teal'></</span><span style='font-size:10.0pt;font-family:"Courier New";
color:#3F7F7F;background:silver;mso-highlight:silver'>configuration</span><span
style='font-size:10.0pt;font-family:"Courier New";color:teal'>></span><span
style='color:#1F497D'> <o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </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> </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> </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 : <rollingPolicy> instead of
<rollingPolisy><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> </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'><</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'>"ch.qos.logback.core.rolling.TimeBasedRollingPolicy"</span></i><span
style='color:teal'>></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'>
</span><span lang=FR style='font-size:10.0pt;font-family:"Courier New";
color:teal'><</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'>></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'></</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'>></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'> </span><span lang=FR style='font-size:10.0pt;font-family:
"Courier New";color:teal'></</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'>></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> </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> </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'><</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>"ch.qos.logback.core.rolling.TimeBasedRollingPolicy"</i><span
style='color:teal'>><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><</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>"ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"</b></span><span
class=pun><b>></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><</span></b></span><span
class=tag><b><span lang=EN-GB>MaxFileSize</span></b></span><span class=pun><b><span
lang=EN-GB>></span></b></span><span class=pln><b><span lang=EN-GB>${sizeThreshold}</span></b></span><span
class=pun><b><span lang=EN-GB></</span></b></span><span class=tag><b><span
lang=EN-GB>MaxFileSize</span></b></span><span class=pun><b><span lang=EN-GB>></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'><</span><span lang=EN-GB style='font-size:10.0pt;font-family:
"Courier New"'>MaxHistory<span style='color:teal'>></span><span
style='color:black'>5</span><span style='color:teal'></</span>MaxHistory<span
style='color:teal'>></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></</span></b></span><span class=tag><b><span
lang=EN-GB>TimeBasedFileNamingAndTriggeringPolicy</span></b></span><span
class=pun><b><span lang=EN-GB>></span><o:p></o:p></b></span></p>
<p class=MsoNormal><span lang=EN-GB style='font-size:10.0pt;font-family:"Courier New";
color:teal'></</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'>></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> </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 :</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é :</b> jeudi 1 octobre 2009 15:12<br>
<b>À :</b> logback-user@qos.ch<br>
<b>Objet :</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> </o:p></span></p>
<p class=MsoNormal>Hello,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I want to know how can I use max history in <a
name=SizeAndTimeBasedFNATP></a><a
href="http://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedFNATP">Size <b>and</b>
time based archiving</a> and where exactly to put the<MaxHistory>
tag in the xml , I have tried to put it in the <RollingPolisy> tag but
its not working.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Any help would be appreciated.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><o:p> </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>