Philippe,
Do you mean like a cyclic buffer?
I do not think that is technically feasible with any derived class of FileAppender, including RollingFileAppender. You would need to introduce the notion of an index to the log file. It can be done but
not with any existing off-the-shelf appender.
HTATQ
At 04:14 PM 8/10/2004, you wrote:
Good day,
Perhaps someone can help? We're looking for an appender that would roll files on themselves. We've tried to use to rolling file appender and this is the behavior we saw. When setting MaxBackupIndex to 1, once the max size has been reached the file is renamed myfile.log.1 and a new myfile.log is created to log new statements. When setting MaxBackupIndex to 0, once the max size has been also reached, the file is flushed and new statements are logged from the beginning.
Here's what we're looking for. Whe would need to use only 1 file (client's reqs). Once the maximum size of the file would be reached it would keep the file as is and start logging new statements from the beggining of the file thus replacing the oldest log statements.
Is there any setting to the RollingFileAppender that could do it or is there any other kind of appender that would be more suitable for our implementation?
TIA,
Philippe
-- Ceki G�lc�
For log4j documentation consider "The complete log4j manual"
ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
