logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From satya obillaneni <obillaneni_...@yahoo.com>
Subject Problem in rollover functionality.. need help
Date Tue, 07 Feb 2006 07:53:19 GMT
Hi

We have a problem in maxfilesize. We set the
MaxFileSize 50MB. But it is writing to the file even
after the file reaches 80MB. Moreover the log4j is
writing to one of the rolled over file. 

The configuration is 

log4j.rootCategory=, A1

log4j.appender.A1=org.apache.log4j.RollingFileAppender
log4j.appender.A1.File=/home/aiprd/log/main_comptel01/main_comptel01.lo
g
log4j.appender.A1.MaxFileSize=51200KB
log4j.appender.A1.MaxBackupIndex=9
 
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
 
log4j.appender.A1.layout.ConversionPattern=%d %-5p
[%t] %-20c %3x - %m%n

The ls -ltr of the log files are

-rw-rw-r--   1 aiprd    mqm      52429018 Jan 18 
09:00
/home/aiprd/log/main_comptel01/main_comptel01.log.2
-rw-rw-r--   1 aiprd    mqm      59300842 Jan 19 
10:43
/home/aiprd/log/main_comptel01/main_comptel01.log.4
-rw-rw-r--   1 aiprd    mqm      46799047 Jan 19 
10:43
/home/aiprd/log/main_comptel01/main_comptel01.log.3
-rw-rw-r--   1 aiprd    mqm      88136756 Jan 25 
23:34
/home/aiprd/log/main_comptel01/main_comptel01.log.1
-rw-rw-r--   1 aiprd    mqm      45654866 Jan 30 
11:33
/home/aiprd/log/main_comptel01/main_comptel01.log

Does any one has any clue?

Thanks in advance....

Bye

Sai babu

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message