logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dhavaleswari" <dhr...@cmcltd.com>
Subject any limitation on xml files?
Date Tue, 18 Nov 2008 09:13:50 GMT
Hello...
Here I am facing one problem. I want to create 21 log files.
So I have created 21 .xml configuration files.
But I am getting this error while running my application.

log4cxx: Could not find value for key log4j.appender.A211
log4cxx: Could not instantiate appender named "A211".

I configured my 21st .xml file as,

log4j.rootLogger=INFO, A211,A21

log4j.appender.A21=org.apache.log4j.RollingFileAppender
log4j.appender.A21.File=log21.log
log4j.appender.A21.Append=true
log4j.appender.A21.Threshold=ERROR
log4j.appender.A21.MaxBackUpIndex=5
log4j.appender.A21.MaxFileSize=1MB
log4j.appender.A21.layout = org.apache.log4j.PatternLayout
log4j.appender.A21.layout.ConversionPattern=%d{[dd MMM yyyy HH:mm:ss]}
[%-5p]  %c   - %m%n

log4j.appender.A211=org.apache.log4j.ConsoleAppender
log4j.appender.A211.Threshold=INFO
log4j.appender.A211.layout=org.apache.log4j.PatternLayout
log4j.appender.A211.layout.ConversionPattern=%m%n


so, can anyone suggest what went wrong?



Mime
View raw message