logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abhijat Thakur" <atha...@bdnacorp.com>
Subject Appenders MaxBackUpIndex
Date Thu, 15 Nov 2001 20:19:17 GMT

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:   <mailto:log4j-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-dev-help@jakarta.apache.org>


Mime
View raw message