logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fang Yang" <fy...@mitra.com>
Subject How to configure Filter
Date Thu, 13 Jun 2002 20:57:27 GMT
Hi, all,

I'm using Log4J 1.2. Could anybody tell me how to use filter? I tried to configure it in property
file like:

log4j.appender.FILE.filter=org.apache.log4j.varia.LevelMatchFilter
log4j.appender.FILE.filter.LevelToMatch=AUDIT#com.mycompany.MyLevel
log4j.appender.FILE.filter.AcceptOnMatch=true

but got an error message:
log4j:WARN Failed to set property [filter] to value "org.apache.log4j.varia.LevelMatchFilter".
No setter for property [filter].

I checked the doc and source and yes, filter is not a property. So how to do this? Thanks
a lot.

FY

--
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