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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

JIRA jira@apache.org
Michihito Shigemura created LOG4PHP-228:
-------------------------------------------

             Summary: New Appender rotating logs with date and deleting older logs.
                 Key: LOG4PHP-228
                 URL: https://issues.apache.org/jira/browse/LOG4PHP-228
             Project: Log4php
          Issue Type: New Feature
          Components: Code
    Affects Versions: 2.3.0
         Environment: Mac OSX El Capitan
            Reporter: Michihito Shigemura
            Priority: Minor


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.



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