logging-log4net-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LOG4NET-518) Filters don't work when use multiple.
Date Sat, 13 Aug 2016 13:13:20 GMT

    [ https://issues.apache.org/jira/browse/LOG4NET-518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15419914#comment-15419914
] 

ASF GitHub Bot commented on LOG4NET-518:
----------------------------------------

Github user bodewig commented on the issue:

    https://github.com/apache/log4net/pull/27
  
    has been rejected by Dominik Psenner in https://issues.apache.org/jira/browse/LOG4NET-518


> Filters don't work when use multiple.
> -------------------------------------
>
>                 Key: LOG4NET-518
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-518
>             Project: Log4net
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 1.2.15
>            Reporter: huiqiang yan
>            Assignee: Dominik Psenner
>
> I have an application managed multiple AppDomains, and my master application can get
messages from all appDomain, then log them separately.
> I create appenders from each appDomains and use the 'domain name’ and 'log level' to
discriminate。
> RollingFileAppender appender = new RollingFileAppender();
> appender.AddFilter(new LevelRangeFilter
> {
>     LevelMin = Level.Info,
>     LevelMax = Level.Info,
>     AcceptOnMatch = false,
>     Next = new LoggerMatchFilter
>     {
>         LoggerToMatch = name,
>         AcceptOnMatch = true                    
>     }
> });
> when name doesn't match, the If statement in filter LoggerMatchFilter file at line 140
,I think it means match or doesn't match, it should be deny in else statement.
> AcceptOnMatch only use when the match is passed ,it means if should return Accept when
matched,and when it is false then return Neutral.
> Not only LoggerMatchFilter has this problem, others too. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message