logback and lz4 compression

Hi All, I know that logback can be used in java application and can support rotating log files with gzip compression. How about i want to compress the files with other compression algorithm say lz4. Is there any way I can achieve this? Thanks.

Feroz, Have a look at changing ch.qos.logback.core.rolling.helper.Compressor::compress() to support your additional codecs. Why are you looking to use lz4? Because of less CPU overhead than gzip? Which library are you going to use? I guess the library could be an optional dependency, and people have to include it if they want to use lz4? Or perhaps the API needs to be more open to extension of arbitrary compression strategies? Thanks David On 15 Jul 2014, at 03:22, Feroz Raihan <fraihan2002@yahoo.com> wrote:
Hi All, I know that logback can be used in java application and can support rotating log files with gzip compression. How about i want to compress the files with other compression algorithm say lz4. Is there any way I can achieve this?
Thanks.
_______________________________________________ Logback-user mailing list Logback-user@qos.ch http://mailman.qos.ch/mailman/listinfo/logback-user

Hi David, Thanks for your reply. I am planning to use https://github.com/jpountz/lz4-java and was expecting that the logback API will allow me to hook up any external compression library such as lz4 or anything i want. Like both Gzip and Lz4 provides their outputstream that I could have hooked up with logback library? So that the logback library itself is independent of the compression algorithm implementation. Thanks. On Monday, July 14, 2014 7:22 PM, Feroz Raihan <fraihan2002@yahoo.com> wrote: Hi All, I know that logback can be used in java application and can support rotating log files with gzip compression. How about i want to compress the files with other compression algorithm say lz4. Is there any way I can achieve this? Thanks.
participants (2)
-
David Roussel
-
Feroz Raihan