Return-Path: Delivered-To: apmail-jakarta-log4j-user-archive@apache.org Received: (qmail 61399 invoked from network); 13 Aug 2003 13:53:03 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 13 Aug 2003 13:53:03 -0000 Received: (qmail 979 invoked by uid 97); 13 Aug 2003 13:55:44 -0000 Delivered-To: qmlist-jakarta-archive-log4j-user@nagoya.betaversion.org Received: (qmail 972 invoked from network); 13 Aug 2003 13:55:44 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 13 Aug 2003 13:55:44 -0000 Received: (qmail 60598 invoked by uid 500); 13 Aug 2003 13:52:52 -0000 Mailing-List: contact log4j-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@jakarta.apache.org Received: (qmail 60584 invoked from network); 13 Aug 2003 13:52:52 -0000 Received: from unknown (HELO warhawk.mpi.com) (63.244.250.133) by daedalus.apache.org with SMTP; 13 Aug 2003 13:52:52 -0000 Received: from lightning.mpi.com (lightning.mpi.com [63.244.252.11]) by warhawk.mpi.com (Switch-2.2.6/Switch-2.2.6) with ESMTP id h7DDpqn15696 for ; Wed, 13 Aug 2003 09:51:52 -0400 (EDT) Received: from SF-VS1.corp.mpi.com (sf-be1.corp.mpi.com [10.10.100.56]) by lightning.mpi.com (Switch-3.0.4/Switch-3.0.0) with ESMTP id h7DDqcGc005479 for ; Wed, 13 Aug 2003 09:52:46 -0400 (EDT) Received: from US-VS1.corp.mpi.com ([63.244.252.32]) by SF-VS1.corp.mpi.com with Microsoft SMTPSVC(5.0.2195.5329); Wed, 13 Aug 2003 06:52:43 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: calling DOMConfigurator.configureAndWatch() 2 times Date: Wed, 13 Aug 2003 09:52:41 -0400 Message-ID: <9C5166762F311146951505C6790A9CF8A6E9EB@US-VS1.corp.mpi.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: calling DOMConfigurator.configureAndWatch() 2 times Thread-Index: AcNhod+rV/lJxt4KT8q338v7uItpPgAAB7Yg From: "Shapira, Yoav" To: "Log4J Users List" X-OriginalArrivalTime: 13 Aug 2003 13:52:43.0468 (UTC) FILETIME=[2B3F70C0:01C361A2] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Howdy, >Also, it is programmatically possible to check if Log4j has been configured >previously, thus avoiding the problem (which may or may not help in this >particular case). My development team creates components used throughout >our enterprise, and if an application has configured Log4j, we want t= o >avoid >configuring it ourselves and instead piggy-back off their configuration. This is a good habit: we do the same thing. >The code to check if Log4j has been configured follows: > >public static boolean isConfigured() { This code is also on the log4j wiki pages as it's a FAQ. Note that it= 's not guaranteed to be 100% effective, i.e. it might return false positives or negatives. I haven't run across such a case yet, but it'= s a CYA statement. Yoav Shapira This e-mail, including any attachments, is a confidential business com= munication, and may contain information that is confidential, propriet= ary and/or privileged. This e-mail is intended only for the individua= l(s) to whom it is addressed, and may not be saved, copied, printed, d= isclosed or used by anyone else. If you are not the(an) intended reci= pient, please immediately delete this e-mail from your computer system= and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: log4j-user-help@jakarta.apache.org