You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-user@logging.apache.org by Spammed TooMuch <sp...@yahoo.com> on 2006/07/12 21:01:12 UTC

What is RolingFileAppender supposed to do when the MaxBackupIndex file is filled?

Hi,
   
I’m new to log4cxx so please excuse if this is a known bug – I didn’t see anything like it on the bug list.
   
I am setting up a RolingFileAppender with a MaxBackupIndex of 15. When I fill up all 15 files and reach my MaxFileSize on the 15th file (i.e. the one without a number on it), that 15th file is deleted and a new log #15 is created and used. So after a few days I’ll have old files 1-14 and one very up to date file 15, but will have lost all my logs from the time the 14th was filled to the latest 15th was started.
   
I’m assuming this is not expected behavior! File MaxBackupIndex  should be deleted and files 0 - MaxBackupIndex -1 should be renamed 1-MaxBackupIndex , right? We are using 0.9.7 if it matters.

thanks,
Chuck
   
 		
---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates starting at 1¢/min.