Thanks for your quick answer Curt, but after reading the thread, it kinds of seems an overkill compared to (1) my knowledge of log4j and (2) the time I can spend on it... (plus I'm using log4j 1.2.14 , not 1.3... ).
I was more wandering if such an Appender already existed or if a quick hack could do... For my perculiar case, it seems to me that the required file processing just have to occur once on startup (check if file exist, if so, back it up (optionnaly check number of backups and clear a couple... )). So as a quick hack, I subclassed the FileAppender and overrid the activateOptions() to check for backups. I does the job for me, backs up the files from xxx.log to xxx.log.1 up to a certain number of backups, then deletes the older ones. The code is far from beautiful (then again, I've seen worse ;D ), but should anyone be interrested, just drop me an email... Cheers Chris --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]