If you do go the gzip on output route then watch out for <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4691425">http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4691425</a> . It basically means that Java can't read gzip files that it built in an append style or that someone built like this:<br>
gzip * > ~/dir_dump.gz<br><br>--Nik<br><br><div class="gmail_quote">On Wed, Jul 22, 2009 at 8:56 AM, Franck Routier <span dir="ltr"><<a href="mailto:franck.routier@axege.com">franck.routier@axege.com</a>></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;">Thanks for your quick answer.<br>
<br>
Maybe I'll rather gzip my file once the appender is closed then...<br>
<br>
Franck<br>
<br>
<br>
Le mercredi 22 juillet 2009 à 13:19 +0200, Chad La Joie a écrit :<br>
<div><div></div><div class="h5">> The file appender only offers compression support when the log files are<br>
> rotated. I think you'll have to extend the appender if you want to<br>
> compress while you write. However, this could be dangerous as the<br>
> appender may be closed out unexpectedly (e.g. if the VM is killed or<br>
> stopped) which would could leave you with a corrupted archive.<br>
><br>
> Franck Routier wrote:<br>
> > Hi all,<br>
> ><br>
> > I am programatically creating and using a FileAppender.<br>
> > I would like it to gzip on the fly the resulting File. Is there a way to<br>
> > do this, or do I have to extend and implement it by myself ?<br>
> ><br>
> > Franck<br>
> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > Logback-user mailing list<br>
> > <a href="mailto:Logback-user@qos.ch">Logback-user@qos.ch</a><br>
> > <a href="http://qos.ch/mailman/listinfo/logback-user" target="_blank">http://qos.ch/mailman/listinfo/logback-user</a><br>
><br>
<br>
<br>
<br>
_______________________________________________<br>
Logback-user mailing list<br>
<a href="mailto:Logback-user@qos.ch">Logback-user@qos.ch</a><br>
<a href="http://qos.ch/mailman/listinfo/logback-user" target="_blank">http://qos.ch/mailman/listinfo/logback-user</a><br>
</div></div></blockquote></div><br>