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 that looks like it might require changing
FormattingInfo and/or PatternConverter, no?  Or can that be left alone?

Is there some sample code anywhere for doing something similar that can
be used as an example of the things that need to be changed?

Thanks,

Moshe


On Tuesday, July 29, 2008 3:02 PM, Curt Arnold wrote:
> 
> 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"
> <[EMAIL PROTECTED]> wrote:
> 
> > 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 minutes.  Does anyone know of an already-written
> > appender that supports this?  Alternatively, where can I find
> > documentation of what I need to do to write a new appender (for
> > log4cxx
> > of course, as opposed to log4j), and what I'd need to change from
> > DailyRollingFileAppender to support the added functionality?
> >
> > Thanks,
> >
> > Moshe
> >

Reply via email to