It would be nice if the date appending behaved similarly to the log4j's DailyRollingFileAppender class in that the date of the log file is not appended to the file until the rollover operation happens. Since the current day's logging info is written to a file appended with the date it explicitly breaks programs that monitor a static log file name (i.e. Hyperic HQ). The following is an example of the requested behavior when using the following options:
Example wrapper.conf:
-------------------------------------------------------------------
wrapper.logfile=wrapper.log.YYYYMMDD
wrapper.logfile.maxfiles=5
wrapper.logfile.rollmode=DATE
Example Directory (Current Day):
-------------------------------------------------------------------
wrapper.log <--- Current Day
wrapper.log.20090124 <-- Previous Day
wrapper.log.20090123 <-- Previous Day+1
wrapper.log.20090122 <-- Previous Day+2
wrapper.log.20090121 <-- Previous Day+3
Example Directory (Next Day):
-------------------------------------------------------------------
After day rollover (i.e. when the first message of a new day is written)
wrapper.log <--- Current Day
wrapper.log.20090125 <--- Old Current Day
wrapper.log.20090124 <-- Old Previous Day
wrapper.log.20090123 <-- Old Previous Day+1
wrapper.log.20090122 <-- Old Previous Day+2
wrapper.log.20090122 <-- Old Previous Day+3 (file should be deleted)