[Log4cplus-devel] DailyRollingFileAppender does not honor maxBackupIndex
Logging Framework for C++
Brought to you by:
wilx
From: Deepak M. <dee...@hd...> - 2012-02-24 23:35:01
|
Hello All, I am using DailyRollingFileAppender with PatternLayout , with maxBackupIndex as 10 and with schedule as DAILY. It was observed that Log4cplus does not delete the backup files after 10 days. It keeps creating more. For quick debugging I enabled log4cplu internal logging with schedule set as MINUTELY and found that here also it does not create files with .1...n which inturn (per code) won't be found when it comes to deleting them after reaching maxBackupIndex. Is this a bug and if anybody else has any solution? Here's the output from log4cplus logging: log4cplus: Just opened file: E:\testlogs\TestLog_p360.log log4cplus: Renaming file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-07-49 log4cplus: Renamed file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-07-49 log4cplus: Renaming file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-07-50 log4cplus: Renamed file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-07-50 log4cplus: Renaming file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-07-51 log4cplus: Renamed file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-07-51 log4cplus: Renaming file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-07-52 log4cplus: Renamed file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-07-52 log4cplus: Renaming file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-07-53 log4cplus: Renamed file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-07-53 log4cplus: Renaming file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-07-54 log4cplus: Renamed file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-07-54 log4cplus: Renaming file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-07-55 log4cplus: Renamed file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-07-55 log4cplus: Renaming file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-07-56 log4cplus: Renamed file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-07-56 log4cplus: Renaming file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-07-57 log4cplus: Renamed file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-07-57 log4cplus: Renaming file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-07-58 log4cplus: Renamed file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-07-58 log4cplus: Renaming file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-07-59 log4cplus: Renamed file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-07-59 log4cplus: Renaming file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-08-00 log4cplus: Renamed file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-08-00 log4cplus: Renaming file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-08-01 log4cplus: Renamed file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-08-01 log4cplus: Renaming file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-08-02 log4cplus: Renamed file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-08-02 log4cplus: Renaming file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-08-03 log4cplus: Renamed file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-08-03 log4cplus: Renaming file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-08-04 log4cplus: Renamed file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-08-04 log4cplus: Renaming file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-08-05 log4cplus: Renamed file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-08-05 log4cplus: Renaming file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-08-06 log4cplus: Renamed file E:\testlogs\TestLog_p360.log to E:\testlogs\TestLog_p360.log.2012-02-24-08-06 Thanks. |