Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 6527 invoked from network); 7 Feb 2006 21:03:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Feb 2006 21:03:48 -0000 Received: (qmail 2951 invoked by uid 500); 7 Feb 2006 21:03:21 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 2467 invoked by uid 500); 7 Feb 2006 21:03:18 -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 2455 invoked by uid 99); 7 Feb 2006 21:03:18 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Feb 2006 13:03:18 -0800 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [128.170.207.35] (HELO mail2.L-3com.com) (128.170.207.35) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Feb 2006 13:03:17 -0800 Received: from isDNS2.is.l-3com.com (isdns2.is.l-3com.com [148.104.4.19]) by mail2.L-3com.com (8.12.10+Sun/8.12.10) with ESMTP id k17L2m3N018049 for ; Tue, 7 Feb 2006 16:02:49 -0500 (EST) Received: from gvlmailhub.gvl.l-3com.com (gvlmailhub.gvl.is.l-3com.com [138.254.134.153]) by isDNS2.is.l-3com.com (8.12.8/8.12.8) with ESMTP id k17KxLCE024178 for ; Tue, 7 Feb 2006 14:59:25 -0600 Received: from gvlexch01.gvl.is.l-3com.com (gvlexch01.gvl.is.l-3com.com [138.254.134.121]) by gvlmailhub.gvl.l-3com.com (8.11.6/8.11.6) with ESMTP id k17L2de32248 for ; Tue, 7 Feb 2006 15:02:39 -0600 Received: by gvlexch01.gvl.is.l-3com.com with Internet Mail Service (5.5.2657.72) id ; Tue, 7 Feb 2006 15:02:39 -0600 Message-ID: <7736DD1D5D6EDD4081B590872B56DCCC09A56499@gvlexch01.gvl.is.l-3com.com> From: "DeSantis, MJ Mark @ IS (7179)" To: "'Log4J Users List'" Subject: JoranConfigurator configuration of log4j Date: Tue, 7 Feb 2006 15:02:38 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C62C29.D3CEE577" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C62C29.D3CEE577 Content-Type: text/plain This is more of a "just out of curiousity" type question. When I configure log4j in the code (using the JoranConfigurator) with an xml file. I get what you would expect - all my appenders and such defined in the xml file are instanciated. If I decide to reconfigure log4j using the same xml config file, while log4j is still running, I find something that I wouldn't really expect - the reconfigure puts duplicates of all the appenders and such. So if my config file defined a SocketAppender and a JmsAppender attached to the root logger, and I configure log4j with that file, when I do a reconfigure with the same file I get two SocketAppenders and two JmsAppenders on the root logger. I was just wondering if this was intended behaviour. I just ask because I know the JoranConfigurator is new, and behaviour can obviously change from alpha to beta to final release. If this is behaviour is intended, then is there a conveinent way of "unconfiguring" log4j so in memory it is "primed" to be configured by the same configuration file? (am I making sense? let me know if I'm not). Mark ------_=_NextPart_001_01C62C29.D3CEE577--