[Log4cplus-devel] class DailyRollingFileAppender time adjust
Logging Framework for C++
Brought to you by:
wilx
From: 丘霖(trodylink) <tro...@gm...> - 2013-03-05 06:07:46
|
Every time before call DailyRollingFileAppender::calculateNextRolloverTime, Log4cplus framwork should adjust the parameter "const Time& t" like what is done in method DailyRollingFileAppender::init. Otherwise the log file will NOT be written in HOURLY( if the schedule is set to HOURLY). For example, application starting running at 9:03 AM, and writes a log "AAAA". At 10:30 AM, it writes another log "BBBB". Then nextRolloverTime will be 11:30AM. NOT 11:00AM. So I think this is a bug. |