Return-Path: X-Original-To: apmail-logging-log4j-dev-archive@www.apache.org Delivered-To: apmail-logging-log4j-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9988B18125 for ; Tue, 7 Jul 2015 15:36:05 +0000 (UTC) Received: (qmail 68004 invoked by uid 500); 7 Jul 2015 15:36:05 -0000 Delivered-To: apmail-logging-log4j-dev-archive@logging.apache.org Received: (qmail 67896 invoked by uid 500); 7 Jul 2015 15:36:05 -0000 Mailing-List: contact log4j-dev-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Developers List" Reply-To: "Log4J Developers List" Delivered-To: mailing list log4j-dev@logging.apache.org Received: (qmail 67788 invoked by uid 99); 7 Jul 2015 15:36:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jul 2015 15:36:05 +0000 Date: Tue, 7 Jul 2015 15:36:05 +0000 (UTC) From: "Remko Popma (JIRA)" To: log4j-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LOG4J2-1075) Support bzip2 compression format for rollover MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LOG4J2-1075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14616871#comment-14616871 ] Remko Popma commented on LOG4J2-1075: ------------------------------------- Yes that is what I meant. For now I only need bz2 but we can easily add other formats now. > 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