[logback-user] FileAppender gzip

Franck Routier franck.routier at axege.com
Wed Jul 22 14:56:26 CEST 2009


Thanks for your quick answer.

Maybe I'll rather gzip my file once the appender is closed then...

Franck


Le mercredi 22 juillet 2009 à 13:19 +0200, Chad La Joie a écrit :
> The file appender only offers compression support when the log files are 
> rotated.  I think you'll have to extend the appender if you want to 
> compress while you write.  However, this could be dangerous as the 
> appender may be closed out unexpectedly (e.g. if the VM is killed or 
> stopped) which would could leave you with a corrupted archive.
> 
> Franck Routier wrote:
> > Hi all,
> > 
> > I am programatically creating and using a FileAppender.
> > I would like it to gzip on the fly the resulting File. Is there a way to
> > do this, or do I have to extend and implement it by myself ?
> > 
> > Franck
> > 
> > 
> > 
> > _______________________________________________
> > Logback-user mailing list
> > Logback-user at qos.ch
> > http://qos.ch/mailman/listinfo/logback-user
> 





More information about the Logback-user mailing list