RE: Extending DailyRollingFileAppender

2008-07-29 Thread Moshe Matitya
I've been browsing the code, and things aren't quite clear to me. It seems to me that I'd also need to write a custom rolling policy, in order to deal with formatting the file name, no? (If the file is rolling over every 10 minutes, say, then we'd need to modify the file names accordingly.) And

Re: Extending DailyRollingFileAppender

2008-07-29 Thread Curt Arnold
Log4cxx::rolling::RollingFileAppender is designed to use an arbitrary triggering policy. Drfa is just an instance precinfigured with a specific policy. Instead of writing a new appended, you should consider writing a custom triggering policy. On Jul 29, 2008, at 6:48 AM, "Moshe Matitya" <

Extending DailyRollingFileAppender

2008-07-29 Thread Moshe Matitya
I am interested in extending DailyRollingFileAppender. The existing appender can be configured to roll over at intervals like once a month, once a week, once a day, once a half-day (AM/PM), once a minute, etc. What I need is to be able to roll over at other intervals in between, such as every ten