Uploaded image for project: 'Log4php'
  1. Log4php
  2. LOG4PHP-239

Compress parameter doesn't seem to activate compression

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.3.0
    • None
    • Code
    • None
    • PHP 5.4, CentOS 5.11

    Description

      I have been using log4php for a long while now (ver 2.3.0) in a simple web application running on PHP 5.4.

      I've recently changed my log4php.xml config file to add compression and increased max file size, like so:

      <appender name="MyFileAppender" class="LoggerAppenderRollingFile">
          <layout class="LoggerLayoutTTCC" />
          <param name="file" value="/path/to/my_log_file.log" />
          <param name="maxFileSize" value="2000MB" />
          <param name="compress" value="true" />
          <param name="maxBackupIndex" value="10" />
      </appender>
      

      What seems to happen is that the files are rotated, after 2GB as intended, however the files are not archived (and of course no .gz extension is added). Furthermore, the output of php -r "print(extension_loaded('zlib'));" is 1

      Am I missing something in the configuration? Can I provide further information to debug the issue?

      Attachments

        Activity

          People

            Unassigned Unassigned
            asfaltboy Pavel Savchenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified