> I'd like to have a FileAppender that automatically rolls over at 
> midnight each day and appends the date (preferably in a specified
> format, see example below) and labels its file with the date it
> was created.  Is such a thing available already in log4j, or would
> it be a welcome addition if someone were to write it?

It's available from the Developers mailing list archive - search for a
post from me with the subject including DatedFileAppender. Then pester
Ceki to have a look at it and put it in CVS ;)

Note that it doesn't append the date at roll time, it appends it at
creation time. Rollover just means creating a different file and
starting to write to that. That makes it more reliable than the
DailyRollingFileAppender, which only rolls if the process is running at
midnight.

Jon

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

Reply via email to