Hello Curt,

[Offer to provide TimedDailyRollingFileAppender or CronExpressionFileAppender]
Thanks a lot for your answers and four your Pointing to the companions.

I do not think that this is the right place for such a functionality, though.
I have searched the archives and found *quite a lot* questions for a
DailyRollingFileAppender which does rollover daily (as the name suggests)
and not only after the first log statement. I have added some links at the end
of this message [1].

I think it would be better to avoid adding a dependency to pick up the CronExpression since that would likely force the Policy off into a yet another companion since we would not want to force everyone who uses extras to pick up quartz.
The CronExpressionFileAppender is probably more difficult to get in.
Since I would prefer a solution added to log4j itself (if possible) I
will concentrate on the other option.

I guess you could provide a SimpleDateFormat pattern and matching value string that could be used for the trigger whenever it went over.

We want to guarantee that log rotation (rollover) does occur at the specified 
time even
if no log statement is appended, therefore our code uses the Java 
Timer/TimerTask facility.
This is Java 1.3. Could this be a problem for incorporation?

also want to have some logic to prevent erroneous multiple rollovers if the timestamps were out of sequence (can occur in multi-threaded apps).
Thanks for the hint, I will think about this.


[1] List:
http://marc.info/?l=log4j-user&m=115315336421856&w=2
http://marc.info/?l=log4j-user&m=106520773706709&w=2
http://marc.info/?l=log4j-user&m=103910376123465&w=2
http://marc.info/?l=log4j-user&m=100342542116466&w=2
http://marc.info/?l=log4j-user&m=116411356628222&w=2
http://marc.info/?l=log4j-user&m=114537247822135&w=2
http://marc.info/?l=log4j-user&m=114120046200928&w=2
http://marc.info/?l=log4j-user&m=103596803411306&w=2
http://marc.info/?l=log4j-user&m=103529410624402&w=2
http://marc.info/?l=log4j-user&m=100342542116466&w=2

Greetings,
Stefan Fleiter

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to