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

New Appender rotating logs with date and deleting older logs.

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.3.0
    • None
    • Code
    • Mac OSX El Capitan

    Description

      I want a new Appender for log4php rotating logs with date and deleting older logs.
      I need a log rotation like this.

      application.log
      (backup logs)
      application.log.2016-05-11.gz
      application.log.2016-05-10.gz
      application.log.2016-05-09.gz
      application.log.2016-05-08.gz
      application.log.2016-05-07.gz
      (older logs than May 6 would be deleted)

      But current appender LoggerAppenderDailyFile can't delete older logs.

      application.log.2016-05-12
      application.log.2016-05-11
      application.log.2016-05-10
      application.log.2016-05-09
      application.log.2016-05-08
      application.log.2016-05-07
      (older logs would not be deleted)

      And current appender LoggerAppenderRollingFile can't rotate date format.

      application.log
      application.log.1
      application.log.2
      application.log.3
      application.log.4
      (Logs's suffix is not date but number)

      I want new appenders like first example.

      Attachments

        Activity

          People

            Unassigned Unassigned
            shigemk2 Michihito Shigemura (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: