You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2015/07/07 17:23:05 UTC

[jira] [Commented] (LOG4J2-1075) Support bzip2 compression format for rollover

    [ https://issues.apache.org/jira/browse/LOG4J2-1075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14616853#comment-14616853 ] 

Gary Gregory commented on LOG4J2-1075:
--------------------------------------

I hope you are talking  about depending on commons compress since there are other formats we'd get for free.

> Support bzip2 compression format for rollover
> ---------------------------------------------
>
>                 Key: LOG4J2-1075
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1075
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Appenders
>    Affects Versions: 2.3
>            Reporter: Remko Popma
>            Assignee: Remko Popma
>             Fix For: 2.4
>
>
> RollingFileAppender and RollingRandomAccessFileAppender currently support two compression formats: gzip and zip. Java has built-in support for these formats so these are guaranteed to work without external dependencies.
> However, there are formats that give much better compression, for example bzip2 results in 40% smaller files.
> At work, we have a requirement to store large log files in smaller format for long term storage. I would like to be able to do this at rollover. Currently we gzip at rollover and have a separate script unzip and bzip2 these files. It would be convenient to be able to use bzip2 directly from log4j at rollover.
> We can leverage the work done here: https://commons.apache.org/proper/commons-compress/



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org