You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@metamodel.apache.org by "Michihito Shigemura (JIRA)" <ji...@apache.org> on 2016/05/12 16:50:18 UTC

[jira] [Created] (METAMODEL-1045) New Appender rotating logs with date and deleting older logs.

Michihito Shigemura created METAMODEL-1045:
----------------------------------------------

             Summary: New Appender rotating logs with date and deleting older logs.
                 Key: METAMODEL-1045
                 URL: https://issues.apache.org/jira/browse/METAMODEL-1045
             Project: Apache MetaModel
          Issue Type: New Feature
    Affects Versions: 4.5.2, 4.5.1
         Environment: MacOSX El Capitan PHP 5.5.30
            Reporter: Michihito Shigemura
            Priority: Minor


I want a new appender for log4php.
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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)