You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4php-dev@logging.apache.org by "Ivan Habunek (JIRA)" <ji...@apache.org> on 2012/08/19 18:18:38 UTC

[jira] [Commented] (LOG4PHP-164) Compress rotated files with Gzip/Zip

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

Ivan Habunek commented on LOG4PHP-164:
--------------------------------------

I have modified the compression procedure to work in chunks of 100KB. This should keep memory consumption under control. Still, it takes some time to compress larger files, but this is not easily fixable.
                
> Compress rotated files with Gzip/Zip
> ------------------------------------
>
>                 Key: LOG4PHP-164
>                 URL: https://issues.apache.org/jira/browse/LOG4PHP-164
>             Project: Log4php
>          Issue Type: New Feature
>          Components: Code
>    Affects Versions: 2.1.0
>            Reporter: Florian Semm
>            Priority: Minor
>             Fix For: 2.3.0
>
>         Attachments: log4php.patch
>
>
> rotated files at the moment look like this: file.log.1
> with compression: file.log.1.zip / file.log.1.gz
> php has a simple api for that: http://php.net/manual/de/book.zip.php

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira