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"><listid@qos.ch></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>
> Hi Guys,<br>
> I'm using the RollingOverAppender with the TimeBasedRollingPolicy that<br>
> also automatically zips the file.<br>
> However when running it for, say, 24 hours with rolling policy of one<br>
> hour only 23 files get zipped.<br>
> The same applies if rolling policy is set to a minute; the last file<br>
> never gets zipped.<br>
> Anyway I just want to find out if there is a way to tell the<br>
> RollingoverAppender that the very last file<br>
> also needs to be zipped even if the full hour hasn't passed yet.<br>
> Thanks for any info.<br>
> Greg.<br>
><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>