logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kannan Narayanasamy" <kanna...@cisco.com>
Subject log4j:WARN Failed to set property [maxFileSize]
Date Mon, 21 Sep 2009 08:01:22 GMT
Hi, 

I have upgraded the log4j version 1.1.x to log4j latest version. After
upgrade faced the following issue. 

log4j: Setting property [maxFileSize] to [1000KB]. log4j:WARN Failed to set
property [maxFileSize] to value "1000KB".
java.lang.IllegalArgumentException: object is not an instance of declaring
class 
.... 
log4j: Setting property [maxBackupIndex] to [6]. log4j:WARN Failed to set
property [maxBackupIndex] to value "6". java.lang.IllegalArgumentException:
object is not an instance of declaring class 
.... 
log4j: Setting property [file] to [C:/PROGRA~1/log/sa.log]. log4j:WARN
Failed to set property [file] to value "C:/PROGRA~1/log/sa.log".
java.lang.IllegalArgumentException: object is not an instance of declaring
class 
....


log4j.properties file content: 

log4j.category.com.cisco.nm.cmf.util.MailUtility=INFO, SA 
log4j.category.com.cisco.nm.cmf.util.Util=INFO, SA 
log4j.additivity.com.cisco.nm.cmf.util.MailUtility=false 
log4j.additivity.com.cisco.nm.cmf.util.Util=false 
log4j.appender.SA=org.apache.log4j.RollingFileAppender 
log4j.appender.SA.MaxFileSize=1000KB 
log4j.appender.SA.MaxBackupIndex=6 
log4j.appender.SA.layout=org.apache.log4j.PatternLayout 
log4j.appender.SA.layout.ConversionPattern=[ %d{EEE MMM dd HH:mm:ss z yyyy}
] %-5p [%C{1} : %M] %x : %m\r\n
log4j.appender.SA.File=C:/PROGRA~1/log/sa.log 

Kindly help me to solve the issue.
Thanks in Advance. 

Thanks, 
Kannan



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


Mime
View raw message