logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luc_B...@circuitcity.com
Subject Writing a filter
Date Mon, 05 Aug 2002 16:29:38 GMT

Anyone have an example of a "working" StringMatchFilter implemented through
a 1.1.3 log4j.properties (syntax) file?

I have tried the below and it is giving the subsequest error.


log4j.appender.bmc=org.apache.log4j.DailyRollingFileAppender
log4j.appender.bmc.filter=org.apache.log4j.StringMatchFilter
log4j.appender.bmc.filter.StringToMatch=car
log4j.appender.bmc.filter.AcceptOnMatch=true
log4j.appender.bmc.File=\\\\c:\\java\\logs\\notification.log
log4j.appender.bmc.layout=org.apache.log4j.PatternLayout
log4j.appender.bmc.layout.ConversionPattern=%5p [%t] (%F:%M:%L) %x - %m%n
log4j.appender.bmc.DatePattern='.'yyyy-MM-dd


I get....

log4j:WARN Failed to set property filter to value
"org.apache.log4j.StringMatchFilter". No setter for property
log4j:WARN Failed to set property filter to value
"org.apache.log4j.StringMatchFilter". No setter for property
log4j:WARN Failed to set property filter to value
"org.apache.log4j.StringMatchFilter". No setter for property

Thanks,
Luc Bell



--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>


Mime
View raw message