You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Abhijat Thakur <at...@bdnacorp.com> on 2001/11/15 21:19:17 UTC

Appenders MaxBackUpIndex

Hi,

I am sorry to send this problem to developer mailing list but the thing is
that this is a weird problem that i am having and it might be a bug about
which i am not sure. 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
Abhijat Thakur

bDNA Corporation


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>