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 C6FE4200BE4 for ; Wed, 7 Dec 2016 00:38:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id C5C07160B29; Tue, 6 Dec 2016 23:38:00 +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 1ADF1160B1B for ; Wed, 7 Dec 2016 00:37:59 +0100 (CET) Received: (qmail 39701 invoked by uid 500); 6 Dec 2016 23:37:59 -0000 Mailing-List: contact log4j-user-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@logging.apache.org Received: (qmail 39685 invoked by uid 99); 6 Dec 2016 23:37:59 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Dec 2016 23:37:59 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id A7493D3C1C for ; Tue, 6 Dec 2016 23:37:58 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.102 X-Spam-Level: X-Spam-Status: No, score=-0.102 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Rrd3I81W9XJV for ; Tue, 6 Dec 2016 23:37:57 +0000 (UTC) Received: from mail-pf0-f180.google.com (mail-pf0-f180.google.com [209.85.192.180]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 124EF5FB6A for ; Tue, 6 Dec 2016 23:37:57 +0000 (UTC) Received: by mail-pf0-f180.google.com with SMTP id d2so72933368pfd.0 for ; Tue, 06 Dec 2016 15:37:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-transfer-encoding:mime-version:date:subject:message-id :references:in-reply-to:to; bh=WKVr3r+NFu2RYixuDRwQn+67YcTO+yiPz4xrj4mOoHk=; b=Zcl1BzCKYyUZJs0j/aNshf3crAFOuGgzeypMAxVoI1f0nSjgw/EEuxoNBfy+TmjRiI lIhn6OtIOebs+pIAX2DCWyFAOZn2RgQr6IOoNsDOn42cIqqReqZ2uGA4++SUQNVpCMJL 1MtoPVLckWO2gTYk/5kZj5I1343YA2xSPwd0r/SSsYRdLnKUXnmBPJdX7AEgtkF9A1Uc 1uX1xMgbV8Lo+tgGKhQxcWfBruKjjYsFk72+tVuo16re8Cy9iIy5Rg4tbnvDEzxxFIO/ MBFR4gskIbc6BrJSx5MiTGVqFkzo5NlKAyMcniBi6wBb82590eQyo+J10YE99vJ+qoTK JA9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-transfer-encoding:mime-version:date :subject:message-id:references:in-reply-to:to; bh=WKVr3r+NFu2RYixuDRwQn+67YcTO+yiPz4xrj4mOoHk=; b=k5iDQyMXZGq6N/c6q0BpBZWDHd4ShnRFM8otFyiS7W+UDMJTcB9JJFLCjeChSfRbj0 PcXjL/lHqgeGDrjKHFavTGYmm60knidVj+QolLhODmdMQ4zkqC4Sjy9h7mxUUQ+9Ku77 J9VhzduvPLGBud+8dwFLXAMwUlVHYNyUKWAN6IYllmqSFiHkxGPaddKZ1/kxEr5Bd8b4 CCqQwoCpcIwzhch9zPfpmU3peBRgB3+SV2aS4jkdnIdRmAOB51M55mS9zIIgzTk+HpdG DX/y1XpqbOjO/ad0VHBKKp+iE0nBMS3ovX/bAuvNE8iESDKmcyjEw9BF7XqZKRjcBOpg 9t6w== X-Gm-Message-State: AKaTC01MkMgxva8pN3/tCbrHxywzGoWg+f19c7LfHwhYM4FA3vP/eXTvWKWUNyH4T8Uryg== X-Received: by 10.84.174.129 with SMTP id r1mr141415914plb.19.1481067458732; Tue, 06 Dec 2016 15:37:38 -0800 (PST) Received: from [192.168.1.10] (115-179-87-3.tokyo.ap.gmo-isp.jp. [115.179.87.3]) by smtp.gmail.com with ESMTPSA id o68sm37228432pfb.42.2016.12.06.15.37.37 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Dec 2016 15:37:38 -0800 (PST) From: Remko Popma Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) Date: Wed, 7 Dec 2016 08:37:34 +0900 Subject: Re: Context-wide filter not working for me Message-Id: <769A0E69-E5A6-45A5-8EDB-1C4CC6899596@gmail.com> References: In-Reply-To: To: Log4J Users List X-Mailer: iPhone Mail (14B100) archived-at: Tue, 06 Dec 2016 23:38:01 -0000 The Filter interface has several methods, which can get called at different t= imes.=20 For context-wide filters, the methods _without_ LogEvent will be called.=20 Sent from my iPhone > On 7 Dec 2016, at 5:18, Matt Sicker wrote: >=20 > Can you set status=3D"debug" in your element? Also, did y= ou > remember to add all the necessary annotations on your plugin along with > enabling annotation processing if needed? >=20 >> On 6 December 2016 at 13:59, Guy Marom wrote: >>=20 >> Hello everyone, >>=20 >> I have a problem with activating a context-wide filter. I created my own >> filter, made it inherit from *AbstractFilter* and then overridden the >> method >>=20 >> public Result filter(LogEvent event) >>=20 >> This method was never called so I decided to try with an existing filter,= >> here's my config file: >>=20 >> >> >> >>=20 >> >> >> >> >> >>=20 >> >> >> >> >> >> >> >> >>=20 >>=20 >> The filter works but when I put a breakpoint inside the ThresholdFilter >> class I see it doesn't stop in the method I mentioned earlier: >> [image: Inline image 1] >>=20 >> Am I missing something here? >>=20 >> Thanks, >> Guy Marom >>=20 >=20 >=20 >=20 > --=20 > Matt Sicker --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org