Make sense. <br>Thanks Ceki.<br>Greg.<br><br><div class="gmail_quote">On Wed, Nov 12, 2008 at 9:32 AM, Ceki Gulcu <span dir="ltr">&lt;listid@qos.ch&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hello Greg,<br>
<br>
The last file is the active log file. It cannot be compressed, at least not with<br>
the current RollingFileAppender. If we changed the policy to compress the active<br>
upon exit, i.e closing of the RollingFileAppender, then when and if the<br>
application was restarted and time came to compress the log file there would be<br>
a collision, the archive file would not created because it already existed,<br>
leading to loss of data.<br>
<br>
I am afraid you have to compress the last file on your own.<br>
<div><div></div><div class="Wj3C7c"><br>
Greg Flex wrote:<br>
&gt; Hi Guys,<br>
&gt; I&#39;m using the RollingOverAppender with the TimeBasedRollingPolicy that<br>
&gt; also automatically zips the file.<br>
&gt; However when running it for, say, 24 hours with rolling policy of one<br>
&gt; hour only 23 files get zipped.<br>
&gt; The same applies if rolling policy is set to a minute; the last file<br>
&gt; never gets zipped.<br>
&gt; Anyway I just want to find out if there is a way to tell the<br>
&gt; RollingoverAppender that the very last file<br>
&gt; also needs to be zipped even if the full hour hasn&#39;t passed yet.<br>
&gt; Thanks for any info.<br>
&gt; Greg.<br>
&gt;<br>
<br>
</div></div><font color="#888888">--<br>
Ceki Gülcü<br>
Logback: The reliable, generic, fast and flexible logging framework for Java.<br>
<a href="http://logback.qos.ch" target="_blank">http://logback.qos.ch</a><br>
_______________________________________________<br>
Logback-user mailing list<br>
Logback-user@qos.ch<br>
<a href="http://qos.ch/mailman/listinfo/logback-user" target="_blank">http://qos.ch/mailman/listinfo/logback-user</a><br>
</font></blockquote></div><br>