Re: [Log4cplus-devel] Max. Age of DailyRollingFileAppender
Logging Framework for C++
Brought to you by:
wilx
From: Alexander N. <neu...@kd...> - 2011-06-28 19:34:54
|
On Tuesday 28 June 2011, Malcolm Smith wrote: > I've been looking to see if there are any requests to add a "maxAge" > type of property to DailyRollingFileAppender, but the only thing I can > find (via google) is related to log4j. > > > > I need daily logs, but I need them to be automatically deleted after 31 > days. What I am doing is I create filenames for the logfiles so that they contain the day of the week (e.g. MyLogFile-Monday.log), this way I always have the log files from one week around. Maybe this could also work for you ? Alex |