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 "Remko Popma (JIRA)" <ji...@apache.org> on 2015/07/07 11:03:04 UTC

[jira] [Updated] (LOG4J2-1075) Support additional compression formats for rollover

     [ https://issues.apache.org/jira/browse/LOG4J2-1075?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Remko Popma updated LOG4J2-1075:
--------------------------------
    Description: 
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/

  was:
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.

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/


> Support additional compression formats 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