Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C08A4200B50 for ; Sat, 13 Aug 2016 15:13:24 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 97F28160A8B; Sat, 13 Aug 2016 13:13:24 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E18FF160A8A for ; Sat, 13 Aug 2016 15:13:23 +0200 (CEST) Received: (qmail 80596 invoked by uid 500); 13 Aug 2016 13:13:23 -0000 Mailing-List: contact log4net-dev-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Log4NET Dev" List-Id: Delivered-To: mailing list log4net-dev@logging.apache.org Received: (qmail 80584 invoked by uid 99); 13 Aug 2016 13:13:23 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Aug 2016 13:13:23 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7FB0B2C029E for ; Sat, 13 Aug 2016 13:13:22 +0000 (UTC) Date: Sat, 13 Aug 2016 13:13:20 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: log4net-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LOG4NET-518) Filters don't work when use multiple. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 13 Aug 2016 13:13:24 -0000 [ https://issues.apache.org/jira/browse/LOG4NET-518?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D154= 19914#comment-15419914 ]=20 ASF GitHub Bot commented on LOG4NET-518: ---------------------------------------- Github user bodewig commented on the issue: https://github.com/apache/log4net/pull/27 =20 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 applicat= ion can get messages from all appDomain, then log them separately. > I create appenders from each appDomains and use the 'domain name=E2=80=99= and 'log level' to discriminate=E3=80=82 > RollingFileAppender appender =3D new RollingFileAppender(); > appender.AddFilter(new LevelRangeFilter > { > LevelMin =3D Level.Info, > LevelMax =3D Level.Info, > AcceptOnMatch =3D false, > Next =3D new LoggerMatchFilter > { > LoggerToMatch =3D name, > AcceptOnMatch =3D true =20 > } > }); > when name doesn't match, the If statement in filter LoggerMatchFilter fil= e at line 140 ,I think it means match or doesn't match, it should be deny i= n else statement. > AcceptOnMatch only use when the match is passed ,it means if should retur= n Accept when matched,and when it is false then return Neutral. > Not only LoggerMatchFilter has this problem, others too.=20 -- This message was sent by Atlassian JIRA (v6.3.4#6332)