<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=us-ascii">
<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;}
@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: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;}
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-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
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-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Email entry typo, please ignore it, it has nothing to do with the problem.<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">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> Shaul<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"><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>Chris Pratt<br>
<b>Sent:</b> Monday, November 26, 2012 7:46 PM<br>
<b>To:</b> logback users list<br>
<b>Subject:</b> Re: [logback-user] sifting appender is not compressing the last log file<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have no idea if this is a email entry typo or an actual problem but you have <file>> which would try to name the file with an invalid character. I'm not sure what havoc that could cause.<o:p></o:p></p>
<div>
<p class="MsoNormal"> (*Chris*)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Mon, Nov 26, 2012 at 6:13 AM, Shaul Zevin <<a href="mailto:ShaulZ@perfectomobile.com" target="_blank">ShaulZ@perfectomobile.com</a>> wrote:<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hello,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Similar problem was already reported about a year ago:<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><a href="http://mailman.qos.ch/pipermail/logback-user/2011-November/002706.html" target="_blank">http://mailman.qos.ch/pipermail/logback-user/2011-November/002706.html</a><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I wonder if the problem is going to be fixed in the upcoming version.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">If not, what should be the most simple workaround?<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">The most disturbing scenario related to this bug is that each value of a sifting attribute creates just one log file.
<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">The sift appender configuration is set for compression.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">The bug causes the log file to be left uncompressed, therefore no files are eventually compressed at all.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas"> <span style="color:teal">
<</span><span style="color:#3F7F7F">appender</span> <span style="color:#7F007F">name</span>=<i><span style="color:#2A00FF">"EXECUTION-SIFT"</span></i>
<span style="color:#7F007F">class</span>=<i><span style="color:#2A00FF">"ch.qos.logback.classic.sift.SiftingAppender"</span></i><span style="color:teal">></span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas"> <span style="color:teal">
<</span><span style="color:#3F7F7F">discriminator</span><span style="color:teal">></span></span><o:p></o:p></p>
<pre><span style="font-family:Consolas"> <span style="color:teal"><</span><span style="color:#3F7F7F">key</span><span style="color:teal">></span></span><i>userid</i><span style="font-family:Consolas;color:teal"></</span><span style="font-family:Consolas;color:#3F7F7F">key</span><span style="font-family:Consolas;color:teal">></span><o:p></o:p></pre>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas"> <span style="color:teal">
<</span><span style="color:#3F7F7F">defaultValue</span><span style="color:teal">></span>noname<span style="color:teal"></</span><span style="color:#3F7F7F">defaultValue</span><span style="color:teal">></span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas"> <span style="color:teal">
</</span><span style="color:#3F7F7F">discriminator</span><span style="color:teal">></span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas"> <span style="color:teal">
<</span><span style="color:#3F7F7F">sift</span><span style="color:teal">></span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas"> <span style="color:teal">
<</span><span style="color:#3F7F7F">appender</span> <span style="color:#7F007F">name</span>=<i><span style="color:#2A00FF">"EXECUTION"</span></i>
<span style="color:#7F007F">class</span>=<i><span style="color:#2A00FF">"ch.qos.logback.core.rolling.RollingFileAppender"</span></i><span style="color:teal">></span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas"> <span style="color:teal">
<</span><span style="color:#3F7F7F">file</span><span style="color:teal">>></span></span><i>${userid}.</i><span style="font-size:10.0pt;font-family:Consolas">execution.log<span style="color:teal"></</span><span style="color:#3F7F7F">file</span><span style="color:teal">></span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas"> <span style="color:teal">
<</span><span style="color:#3F7F7F">rollingPolicy</span> <span style="color:#7F007F">
class</span>=<i><span style="color:#2A00FF">"ch.qos.logback.core.rolling.FixedWindowRollingPolicy"</span></i><span style="color:teal">></span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas">
<span style="color:#3F5FBF"><!-- daily rollover --></span></span><o:p></o:p></p>
<pre><span style="font-family:Consolas"> <span style="color:teal"><</span><span style="color:#3F7F7F">fileNamePattern</span><span style="color:teal">></span></span><i>${userid}.</i><span style="font-family:Consolas">execution.%i.log.zip<span style="color:teal"></</span><span style="color:#3F7F7F">fileNamePattern</span><span style="color:teal">></span></span><o:p></o:p></pre>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas">
<span style="color:teal"><</span><span style="color:#3F7F7F">maxIndex</span><span style="color:teal">></span>100<span style="color:teal"></</span><span style="color:#3F7F7F">maxIndex</span><span style="color:teal">></span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas"> <span style="color:teal">
</</span><span style="color:#3F7F7F">rollingPolicy</span><span style="color:teal">></span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas"> <span style="color:teal">
<</span><span style="color:#3F7F7F">triggeringPolicy</span> <span style="color:#7F007F">
class</span>=<i><span style="color:#2A00FF">"ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"</span></i><span style="color:teal">></span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas">
<span style="color:teal"><</span><span style="color:#3F7F7F">maxFileSize</span><span style="color:teal">></span>${logFile.maxSize}<span style="color:teal"></</span><span style="color:#3F7F7F">maxFileSize</span><span style="color:teal">></span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas"> <span style="color:teal">
</</span><span style="color:#3F7F7F">triggeringPolicy</span><span style="color:teal">></span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas"> <span style="color:teal">
<</span><span style="color:#3F7F7F">encoder</span><span style="color:teal">></span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas">
<span style="color:teal"><</span><span style="color:#3F7F7F">pattern</span><span style="color:teal">></span>%date{yyMMdd HH:mm:ss} %-5level %msg%n<span style="color:teal"></</span><span style="color:#3F7F7F">pattern</span><span style="color:teal">></span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas">
<span style="color:teal"><</span><span style="color:#3F7F7F">charset</span><span style="color:teal">></span>UTF-8<span style="color:teal"></</span><span style="color:#3F7F7F">charset</span><span style="color:teal">></span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas"> <span style="color:teal">
</</span><span style="color:#3F7F7F">encoder</span><span style="color:teal">></span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas"> <span style="color:teal">
</</span><span style="color:#3F7F7F">appender</span><span style="color:teal">></span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas"> <span style="color:teal">
</</span><span style="color:#3F7F7F">sift</span><span style="color:teal">></span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:Consolas">
<span style="color:teal"></</span><span style="color:#3F7F7F">appender</span><span style="color:teal">></span></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:Consolas;color:teal"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Thanks,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> Shaul<o:p></o:p></p>
</div>
<p class="MsoNormal"><br>
<br>
The information contained in this message is proprietary to the sender, protected from disclosure, and may be privileged. The information is intended to be conveyed only to the designated recipient(s) of the message. If the reader of this message is not the
intended recipient, you are hereby notified that any dissemination, use, distribution or copying of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by replying to
the message and deleting it from your computer. Thank you.<o:p></o:p></p>
</div>
<p class="MsoNormal"><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><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<br><br>
The information contained in this message is proprietary to the sender, protected from disclosure, and may be privileged. The information is intended to be conveyed only to the designated recipient(s) of the message. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, use, distribution or copying of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you.<br>
</body>
</html>