Return-Path: Delivered-To: apmail-jakarta-log4j-user-archive@apache.org Received: (qmail 68652 invoked from network); 13 Aug 2003 13:19:07 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 13 Aug 2003 13:19:07 -0000 Received: (qmail 29705 invoked by uid 97); 13 Aug 2003 13:21:48 -0000 Delivered-To: qmlist-jakarta-archive-log4j-user@nagoya.betaversion.org Received: (qmail 29698 invoked from network); 13 Aug 2003 13:21:47 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 13 Aug 2003 13:21:47 -0000 Received: (qmail 65839 invoked by uid 500); 13 Aug 2003 13:18:11 -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 65751 invoked from network); 13 Aug 2003 13:18:10 -0000 Received: from unknown (HELO warhawk.mpi.com) (63.244.250.133) by daedalus.apache.org with SMTP; 13 Aug 2003 13:18:10 -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 h7DDH9n10576 for ; Wed, 13 Aug 2003 09:17:09 -0400 (EDT) Received: from SF-VS1.corp.mpi.com (sf-be1.mpi.com [10.10.100.56]) by lightning.mpi.com (Switch-3.0.4/Switch-3.0.0) with ESMTP id h7DDHwGa001168 for ; Wed, 13 Aug 2003 09:18:04 -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:17:53 -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:17:52 -0400 Message-ID: <9C5166762F311146951505C6790A9CF8346486@US-VS1.corp.mpi.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: calling DOMConfigurator.configureAndWatch() 2 times Thread-Index: AcNha0Z0RyBRaG8oRPyAcJqQy62P2gAMTZQw From: "Shapira, Yoav" To: "Log4J Users List" X-OriginalArrivalTime: 13 Aug 2003 13:17:53.0912 (UTC) FILETIME=[4DC67F80:01C3619D] 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, >What should happen if the configureAndWatch() function is called twic= e? >Are the previous settings erased? Are they accumulated ? It wouldn't be that hard to simply test this and see what happens ;) But looking at the code, you see: - configureAndWatch always creates a new XMLWatchdog, so you will have= two XMLWatchdogs watching over the file. - Each XMLWatchdog would call DOMConfigurator#doConfigure(filename, repository) when the file changes, so this method will get called twic= e. So this is extra overhead that should be avoided if possible. - The configuration file will get parsed again with a new parser - Parsing will replace where found and add where not found. So if there's already a logger for class, for example, it will be retrieved = if it exists and reconfigured, or a new one will be created if one doesn'= t exist. You can walk through the rest of DOMConfigurator if you feel like it ;= ) This is one issue where the test is easy so I wouldn't even spend time= looking at the code ;) 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