Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 39972 invoked from network); 31 Aug 2010 13:38:44 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 31 Aug 2010 13:38:44 -0000 Received: (qmail 38156 invoked by uid 500); 31 Aug 2010 13:38:44 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 37863 invoked by uid 500); 31 Aug 2010 13:38:41 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 37833 invoked by uid 99); 31 Aug 2010 13:38:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Aug 2010 13:38:40 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kevan.miller@gmail.com designates 209.85.212.54 as permitted sender) Received: from [209.85.212.54] (HELO mail-vw0-f54.google.com) (209.85.212.54) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Aug 2010 13:38:33 +0000 Received: by vws7 with SMTP id 7so6268633vws.13 for ; Tue, 31 Aug 2010 06:38:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=7fhTD+ZgXh0GZBJwxaWqbCUNx9D5cLIlMmL+/k4KKCU=; b=dudaoj4kGo4opcormrQ4wr6AsQVoOYoomHBZyrpDqe95h4+6rG9nFO4k0KDsqX38j6 /MInyI6uzqJPsedzQPQnXBQoiA143P+b+VMuFPyhCPh7x9DL/1Qft3h4xPGQi7wHH13u 14ESYmNE+s3U7e4cuVkMHz5RhmAR4FiRdIV6A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=jrwWlYT6bj3r+LoYRrBfp+myaM4w/khckDeNCjDPXstAFgsFnRdSlYbtepAOuYT2Vi eMSDW+49I0qlg0IGtIhloxtZt1TKS71osRLZ/btD1BhMjpsJi1ByCwj4w7sem5PYodyd pt7Zwp7vYE0CJsy7pfjOxr7su13WUP+FxYmE8= Received: by 10.220.161.201 with SMTP id s9mr3906795vcx.137.1283261892154; Tue, 31 Aug 2010 06:38:12 -0700 (PDT) Received: from dyn9027039008.raleigh.ibm.com (bi01p1.nc.us.ibm.com [129.33.49.251]) by mx.google.com with ESMTPS id v11sm4972274vbb.12.2010.08.31.06.38.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 31 Aug 2010 06:38:03 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1081) Subject: Re: XML Log4j configuration From: Kevan Miller In-Reply-To: <1283257657821-1393987.post@n3.nabble.com> Date: Tue, 31 Aug 2010 09:37:59 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <63047D5E-9500-45C5-80E1-8C5B4818DB82@gmail.com> References: <1283168825592-1388271.post@n3.nabble.com> <1283190705611-1389968.post@n3.nabble.com> <1283257657821-1393987.post@n3.nabble.com> To: user@geronimo.apache.org X-Mailer: Apple Mail (2.1081) On Aug 31, 2010, at 8:27 AM, Mik wrote: >=20 > Hi Kevan >=20 > Thanks for your reply. Looking through the code in Log4jService.java = made > the difference.. >=20 > // Allow users to override the configurationFile which is hardcoded > // in config.ser and cannot be updated by config.xml, as the > // AttrbiuteManager comes up after this GBean > String cfgFile =3D System > .getProperty(LOG4JSERVICE_CONFIG_PROPERTY); > if ((cfgFile !=3D null) && (!cfgFile.equals(""))) { > this .configurationFile =3D cfgFile; > } >=20 > So the config file value can be overridden at server startup by using > org.apache.geronimo.log4jservice.configuration system property, and it = also > seems to accept the xml format :-) Hi Mik, Great. Good work digging through the source!. Forgot that this GBean = attribute couldn't be overridden... Normally, the config.xml override = would work. As indicated by above comment, this is an edge case due to = order of server startup... --kevan