Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 37994 invoked from network); 27 Feb 2007 03:03:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Feb 2007 03:03:16 -0000 Received: (qmail 89886 invoked by uid 500); 27 Feb 2007 03:03:22 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 89831 invoked by uid 500); 27 Feb 2007 03:03:22 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 89820 invoked by uid 99); 27 Feb 2007 03:03:22 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Feb 2007 19:03:22 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of jason.dillon@gmail.com designates 64.233.162.229 as permitted sender) Received: from [64.233.162.229] (HELO nz-out-0506.google.com) (64.233.162.229) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Feb 2007 19:03:10 -0800 Received: by nz-out-0506.google.com with SMTP id j2so1573416nzf for ; Mon, 26 Feb 2007 19:02:49 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer:sender; b=ZHBB1aLQT9ACpUzrBWeZhURUU1RCb4boi/faGh9iOoxsI3NyXyLVs49gCiA3E/nq7S7j+LTCQJ7tlbVW2d/f7cvSjPvhHtLg4nD/OEpviNbqI9DEo0D/mqFOIfPVMMJLqumWHDu/EM8EPJFN4NtxNd4dCd86nVn/dTzhLNs56sk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer:sender; b=iG8HcMoFreJSkctfhqSS2LsiK7MKZ+T8Xi/qmllZWZgVlmkSxbr+7djVknrR6ORscPevPRkqaMP65iqdpXpPO3hsdCbrStMJBcPj2Zlj5XL4qhMK1keW6IQWgKW6+EbIKhF775kQeZ6mh2RqWetoNoSQKzlKbYNM1qfAzDAy5Rg= Received: by 10.65.239.13 with SMTP id q13mr9557825qbr.1172545369525; Mon, 26 Feb 2007 19:02:49 -0800 (PST) Received: from ?10.0.1.2? ( [24.7.69.241]) by mx.google.com with ESMTP id 24sm6723651nzn.2007.02.26.19.02.48; Mon, 26 Feb 2007 19:02:49 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v752.3) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: dev@geronimo.apache.org From: Jason Dillon Subject: mx4j logging init Date: Mon, 26 Feb 2007 19:02:47 -0800 X-Mailer: Apple Mail (2.752.3) Sender: Jason Dillon X-Virus-Checked: Checked by ClamAV on apache.org Anyone know if we can replace these bits in GeronimoLogging.initialize() try { Class clazz = Class.forName("mx4j.log.Log"); Class paramClazz = Class.forName("mx4j.log.Logger"); Method method = clazz.getDeclaredMethod("redirectTo", new Class [] {paramClazz}); paramClazz = Class.forName("mx4j.log.CommonsLogger"); method.invoke(null, new Object[] {paramClazz.newInstance()}); } catch (ClassNotFoundException e) { // MX4J is not present. } catch (Exception e) { throw (AssertionError) new AssertionError("Cannot force MX4J to use commons logging.").initCause(e); } With: System.setProperty("mx4j.log.prototype", "mx4j.log.CommonsLogger"); --jason