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 10A4B18D94 for ; Sat, 6 Jun 2015 04:22:35 +0000 (UTC) Received: (qmail 75314 invoked by uid 500); 6 Jun 2015 04:22:34 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 75260 invoked by uid 500); 6 Jun 2015 04:22:34 -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 75248 invoked by uid 99); 6 Jun 2015 04:22:34 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Jun 2015 04:22:34 +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 E61FDCBD6E for ; Sat, 6 Jun 2015 04:22:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=6.31 tests=[none] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id DhHXgymUG4H0 for ; Sat, 6 Jun 2015 04:22:28 +0000 (UTC) Received: from smtp473.redcondor.net (smtp473.redcondor.net [208.80.204.73]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 31A63275EB for ; Sat, 6 Jun 2015 04:22:28 +0000 (UTC) Received: from mailproxy13.neonova.net ([137.118.22.78]) by smtp473.redcondor.net ({6a37e3c6-627a-4a3f-9b85-f53a5f9acd7a}) via TCP (outbound) with ESMTP id 20150606042217022_0473 for ; Sat, 06 Jun 2015 04:22:17 +0000 X-RC-FROM: X-RC-RCPT: Received: from [192.168.1.12] (ip72-201-82-25.ph.ph.cox.net [72.201.82.25]) (Authenticated sender: ralph.goers@dslextreme.com) by mailproxy13.neonova.net (Postfix) with ESMTPA id EB89536024F for ; Sat, 6 Jun 2015 00:21:51 -0400 (EDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Subject: Re: how to reinitialize log4j2 configuration? From: Ralph Goers In-Reply-To: Date: Fri, 5 Jun 2015 21:22:11 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <847955C9-D165-4CB6-A5E7-4080FAF3F833@dslextreme.com> References: To: Log4J Users List X-Mailer: Apple Mail (2.2098) X-DLP-ENABLED: 137.118.22.64/27 X-MAG-OUTBOUND: greymail.redcondor.net@137.118.22.64/27 Once you have a LoggerContext you can call = context.setConfigLocation(configLocation) where configLocation is a URI. = That will force a reconfiguration. Ralph > On Jun 5, 2015, at 4:33 PM, Benjamin Jaton = wrote: >=20 > Hello >=20 > After an initial configuration of log4j2 with: >=20 > Configurator.initialize(null, configLocation); >=20 > I would like to reinitialize it with a different URL >=20 > Configurator.initialize(null, configLocation2); >=20 > The problem is that the second call is ignored. I believe that once = the > LoggerContext is STARTED it will ignore reconfigurations. >=20 > Is there a way to do this? >=20 > Thanks! > Ben --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org