Hi,

I have a logging.properties file that looks something like whats shown
below. What happens is that when it makes 20 back up files of agenda.log in
the next run (i.e 21st) it wipes out all the 20 back up files of agenda.log
and after that it dumps all messages in one file and keeps overwriting that
file after it has reached the MaxFileSize. So now in the second run it does
not even create a back up of agenda.log

Is there a property that i can set so that this does not happen or i can
somehow control how back ups get created and stuff. Its a big problem for us
as of now since we are putting a lot of things in the log files and we need
to see the history.

log4j.appender.AGENDA_Appender=org.apache.log4j.RollingFileAppender
log4j.appender.AGENDA_Appender.File=agenda.log
log4j.appender.AGENDA_Appender.Append=true
log4j.appender.AGENDA_Appender.MaxFileSize=1000kb
log4j.appender.AGENDA_Appender.MaxBackupIndex=20

Thanks in advance.


Abhijat Thakur

bDNA Corporation



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

Reply via email to