logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53791] New: Unable to enable compression of backups using the log4j.properties file in Hadoop & HBase.
Date Tue, 28 Aug 2012 19:44:41 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53791

          Priority: P2
            Bug ID: 53791
          Assignee: log4j-dev@logging.apache.org
           Summary: Unable to enable compression of backups using the
                    log4j.properties file in Hadoop & HBase.
          Severity: enhancement
    Classification: Unclassified
                OS: Linux
          Reporter: jlewis@gcefederal.com
          Hardware: Other
            Status: NEW
           Version: 1.2.17
         Component: Appender
           Product: Log4j

Created attachment 29293
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=29293&action=edit
Patch using the `diff -crB original_dir/ modified_dir/ > log4j.patch` command.

When using Hadoop and HBase, we tend to get massive log files which waste space
when using the RollingLogAppender class. From the Google search, many sites
inform that Log4J supports the compression of the rotated backups but only when
using the log4j.xml file. Currently Apache Hadoop and HBase only support the
use of the log4j.properties file.

To avoid trying to translate the log4j.properties file in xml format, we simply
modified the RollingLogAppender class to allow for the GZ compression of backup
files by simply adding the ".compressBackups=true" to the properties file.

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


Mime
View raw message