[jboss-jira] [JBoss JIRA] Moved: (LOGMGR-30) Support automatic log file compression in FileHandler (for compressing all files in real time) and PeriodicRotatingFileHandler (for compressing upon rotation)

David Lloyd (JIRA) jira-events at lists.jboss.org
Tue Sep 6 14:22:26 EDT 2011


     [ https://issues.jboss.org/browse/LOGMGR-30?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Lloyd moved JBLOGGING-45 to LOGMGR-30:
--------------------------------------------

          Project: JBoss Log Manager  (was: JBoss Logging)
              Key: LOGMGR-30  (was: JBLOGGING-45)
    Fix Version/s: 1.3.0.Beta1
                       (was: 3.1.0.Beta1)


> Support automatic log file compression in FileHandler (for compressing all files in real time) and PeriodicRotatingFileHandler (for compressing upon rotation)
> --------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: LOGMGR-30
>                 URL: https://issues.jboss.org/browse/LOGMGR-30
>             Project: JBoss Log Manager
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>            Reporter: Aleksander Adamowski
>            Assignee: David Lloyd
>             Fix For: 1.3.0.Beta1
>
>
> This is a follow up to JBAS-6917.
> It would be nice to have an automatic compression of log files similar to the one implemented in Log4j extras:
> http://logging.apache.org/log4j/companions/extras/apidocs/org/apache/log4j/rolling/TimeBasedRollingPolicy.html
> "TimeBasedRollingPolicy supports automatic file compression. This feature is enabled if the value of the FileNamePattern option ends with .gz or .zip." 
> In JBoss Logging, I suppose this could be implemented on 2 levels:
> 1) In the FileHandler (http://anonsvn.jboss.org/repos/common/jboss-logmanager/trunk/src/main/java/org/jboss/logmanager/handlers/FileHandler.java) so that, with proper configuration, each log file is compressed in real time, and it exists only in compressed form from the moment of its creation.
> 2) In the PeriodicRotatingFileHandler (http://anonsvn.jboss.org/repos/common/jboss-logmanager/trunk/src/main/java/org/jboss/logmanager/handlers/PeriodicRotatingFileHandler.java) so that with proper configuration, archival log files can be compressed the moment they are rotated (e.g. server.log.2010-05-06.gz is created instead of server.log.2010-05-06), but the current log file should be plain text.
> In PeriodicRotatingFileHandler, the implementation must take into account that compression of rotated log files may take considerable time and should be performed in the background - the handler should be able to process log records at any time, particularly during rotation, without losing any. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list