https://issues.apache.org/bugzilla/show_bug.cgi?id=46049





--- Comment #1 from Curt Arnold <[email protected]>  2009-01-12 12:45:25 PST 
---
There has been some discussion in implementing logback TurboFilter's (basically
filter evaluation prior to LoggingEvent construction) which would suggest being
able to add filters to the hierarchy (like the hierarchy threshold).  If that
moves forward, I think it would suggest a different approach for
PropertyConfiguration of filters.  What I was thinking (but haven't
implemented) was to construct filters along the same manner as appenders, so
the configuration would look like:

my.StringToMatch=SOMEPATTERN
my.LevelToMatch=INFO
log4j.filter.string=org.apache.log4j.varia.StringMatchFilter
log4j.filter.string.StringToMatch=${my.StringToMatch}
log4j.filter.level=org.apache.log4j.varia.LevelMatchFilter
log4j.filter.level.LevelToMatch=${my.LevelToMatch}
log4j.filter.deny=org.apache.log4j.varia.DenyAllFilter
log4j.appender.CONSOLE.filters=string,level,deny


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to