Return-Path: X-Original-To: apmail-logging-log4j-user-archive@www.apache.org Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9389276F3 for ; Mon, 18 Jul 2011 14:19:48 +0000 (UTC) Received: (qmail 48697 invoked by uid 500); 18 Jul 2011 14:19:48 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 48416 invoked by uid 500); 18 Jul 2011 14:19:47 -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 48404 invoked by uid 99); 18 Jul 2011 14:19:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jul 2011 14:19:46 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [151.193.220.19] (HELO sgtulmg02-out.sabre.com) (151.193.220.19) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jul 2011 14:19:39 +0000 X-ExtLoop1: From 10.12.97.31 X-IronPort-AV: E=Sophos;i="4.67,222,1309755600"; d="scan'208";a="994566734" Received: from unknown (HELO SGTULMHP002.Global.ad.sabre.com) ([10.12.97.31]) by sgtulmg02-out.sabre.com with ESMTP/TLS/AES128-SHA; 18 Jul 2011 09:19:12 -0500 Received: from SGTULMMP002.Global.ad.sabre.com ([fe80::456b:7b08:b0ac:de3]) by SGTULMHP002.Global.ad.sabre.com ([fe80::5194:b56a:738c:a15a%26]) with mapi; Mon, 18 Jul 2011 09:18:56 -0500 From: "Turner, Jay" To: Log4J Users List Date: Mon, 18 Jul 2011 09:18:48 -0500 Subject: RE: I need to handle log4j:WARN Unrecognized element param Thread-Topic: I need to handle log4j:WARN Unrecognized element param Thread-Index: AcxDbosdrf4DxGugRbiPE3BZrqd8zwB5uAsw Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org I had to add super(this) in a required constructor, but that seems to work,= thank you. Thank you, Jay Turner -----Original Message----- From: Scott Deboy [mailto:scott.deboy@gmail.com]=20 Sent: Friday, July 15, 2011 11:12 PM To: Log4J Users List Subject: Re: I need to handle log4j:WARN Unrecognized element param Good point :) Try this: public class MyLoggerRepository extends Hierarchy implements UnrecognizedElementHandler{ ... add your unrecognized element handler here, should be all you need } public class MyRepositorySelector implements RepositorySelector { private final LoggerRepository repository =3D new MyLoggerRepository(); public LoggerRepository getLoggerRepository(){ return repository; } Hopefully that's it? Scott On Fri, Jul 15, 2011 at 7:51 PM, Turner, Jay wrote: > I had already looked at LoggerRepositoryExImpl. The documentation says it > is part of org.apache.log4j but IntelliJ doesn't see it. I tried > org.apache.log4j.spi but it wasn't there either. I grep'd log4j-1.2.15.ja= r > and it has four "LoggerRepository"s but not even any "LoggerRepositoryEx"= s. > Besides, it's a final class. I found the 698 lines of the > LoggerRepositoryExImpl java source from Apache, but copying it just to pa= rse > some extra elements seems - like using a chainsaw to trim my nails. > > Thank you, > Jay Turner > > -----Original Message----- > From: Scott Deboy [mailto:scott.deboy@gmail.com] > Sent: Friday, July 15, 2011 8:26 PM > To: Log4J Users List > Subject: Re: I need to handle log4j:WARN Unrecognized element param > > Look at LoggerRepositoryExImpl..you may be able to use it. > > Scott > > On Jul 15, 2011, at 6:20 PM, "Turner, Jay" > wrote: > > > LoggerRepositoryExImpl > > --------------------------------------------------------------------- > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org > For additional commands, e-mail: log4j-user-help@logging.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org