Hi, I have a requirement to delete logfiles older than a certain number of days when using a DailyRollingFileAppender. Rather than extend DailyRollingFileAppender I've decided to execute a task from time to time that given the name of the Appender, looks for old logfiles that match the file and datePattern properties and deletes those that appear to be too old. So far I have the file property matching fine and I'm still working on the datePattern and wrestling with SimpleDateFormat (which ain't simple!).
I imagine this is a pretty typical requirement so I was wondering if this has been done elsewhere (probably better!). Kind Regards Michael Erskine --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
