logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bansemir, Carsten" <Carsten.Banse...@huk-coburg.de>
Subject AW: DailyRollingFileAppender with filesize option
Date Thu, 25 Sep 2003 16:04:25 GMT
Since this is almost a FAQ but an (real good) Answer is nowhere to find in the list-archive
(yes, I searched it more than 1 times), i want to specify the question so that it's really
an unanswered question:

First some things to say:

- there is an Implementation of a combined DailyRollingFileAppender and RollingFileAppender,
called      CompositeRollingAppender, and with this Appender you can choose the Rolling Behavior
(1=by size, 2=by date, and 3=both I think)

- BUT there is a Problem with the DailyRollingFileAppender running under windows, because
the java method renameTo() doesn't work fine with Threads logging to a file, when the rollover
happens (after midnight some Threads are still logging to yesterdays logfile (see mailing

- this Problem is fixed by an Appender called DailyRollingFileAppenderExt (see mailing list)

- the CompositeRollingAppender has the same Problem than the DailyRollingFileAppender, so
I can't use it.

- I also know that there gonna be big changes in Rolling Strategys in the next Ant release,
which fixes this Problem.

- but for now there is no (i found none) working Implementation of a Combined Appender wich
rolls by size and by date.

Now, here comes the question:

So, I want to know if there's a combination of DailyRollingFileAppenderExt and RollingFileAppender,
or some complete new designed Appender with the same functionality ?

-----Urspr√ľngliche Nachricht-----
Von: Shapira, Yoav [mailto:Yoav.Shapira@mpi.com]
Gesendet: Donnerstag, 25. September 2003 17:10
An: Log4J Users List
Betreff: RE: DailyRollingFileAppender with filesize option

Here's a pointer: http://marc.theaimsgroup.com/?l=log4j-user&r=1&w=2

Yoav Shapira
Millennium ChemInformatics

>-----Original Message-----
>From: shmittal@checkfree.com [mailto:shmittal@checkfree.com]
>Sent: Thursday, September 25, 2003 11:07 AM
>To: Log4J Users List
>Subject: DailyRollingFileAppender with filesize option
>Has anyone already already created a RollingFileAppender which rolls at
>midnight and also if the filesize limit is exceeded ?
>Thanks for any pointers.

This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.

To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org

To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org

View raw message