logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William Burns (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LOG4J2-148) Enhance Composite Filter to allow for and type operation
Date Fri, 25 Jan 2013 02:25:12 GMT

    [ https://issues.apache.org/jira/browse/LOG4J2-148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13562288#comment-13562288

William Burns commented on LOG4J2-148:

Sorry I didn't get back to you, was away for a while there.

I agree that there could be an onMatch and onMismatch.  Should there be something like onNeutral
as well then possibly?
> Enhance Composite Filter to allow for and type operation
> --------------------------------------------------------
>                 Key: LOG4J2-148
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-148
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Filters
>            Reporter: William Burns
>         Attachments: CompositeFilter.java, diff
> Currently the CompositeFilter only really allows for an or type of operation where it
returns the first result that isn't a NEUTRAL.  I found the need to desire something where
I want it to only return ACCEPT or DENY if all of the filters say the same thing.
> The way I have it implemented it returns NEUTRAL if all of the filters cannot agree,
however I can see having this configurable to say DENY in the case where they don't all agree.
> Let me know if you think this seems reasonable or not.
> I will attach the diff and current file I had modified.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

View raw message