Rolling log files is pretty generic, eg see "man logrotate" on most unix
systems. It would be nice if such functionality were not tied to log4j too
tightly. Perhaps it could be part of the Avalon framework, and use the type
of service in the "cron" JSR I saw mentioned once..
--Jeff
On Fri, 2 Feb 2001 02:44, Cakalic, James P. wrote:
> > Actually, what I think we need is someone to sit down and design a
> RollingFileAppender which can be flexibly customized to handle the various
> options that seem to be recurring enhancement requests.
>
> Possiblities:
> - roll based on size
> - roll based on schedule
> - roll if target file exists on appender instantiation
> - roll on external notification
> - roll on each X number of events logged
> - flexible combinations of the above
> - multiple strategies for naming rolled files
>
> Having seventeen different RollingFileAppenders in the package that each
> implement some rollover algorithm implemented to address someone's specific
> project needs is not an optimal solution IMHO.
>
> Jim
>
> > -----Original Message-----
> > From: Ceki Gülcü [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, February 01, 2001 3:48 AM
> > To: LOG4J Developers Mailing List
> > Subject: Re: New class for log4j
> >
> > At 16:17 31.01.2001 -0700, you wrote:
> > >Hi there,
> > >
> > >I have created a new Appender which rolls the log file at a
> > >given date and time and time-stamps the old log file. How
> > >should I submit it?
> >
> > There are two options.
> >
> > Option 1) (recommended)
> >
> > We need:
> >
> > - At least 3 recommendation letters.
> > - A letter of motivation for contributing to this project.
> > - A picture of your pet(s). You have to have at least one
> > pet! Teddy bears do not qualify.
> > - Social Security number to perform *casual* background checks.
> > - 499.99$ in cash to cover our expenses. For faster
> > processing send me the cash by postal mail.
> >
> > Option 2) (not recommended)
> >
> > - Send the code to this mailing list. :-)
> >
> >
> > Seriously, this would be the fourth time that someone has
> > implemented a date rolling appender. We really to have this
> > added for 1.1. Cheers, Ceki
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
----------------------------------------
Content-Type: text/html; charset="iso-8859-1"; name="Attachment: 1"
Content-Transfer-Encoding: quoted-printable
Content-Description:
----------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]