Return-Path: Mailing-List: contact ojb-dev-help@db.apache.org; run by ezmlm Delivered-To: mailing list ojb-dev@db.apache.org Received: (qmail 89634 invoked from network); 12 Feb 2003 18:11:12 -0000 Received: from hank-fep6-0.inet.fi (HELO fep06.tmt.tele.fi) (194.251.242.201) by daedalus.apache.org with SMTP; 12 Feb 2003 18:11:12 -0000 Received: from proxyplus.universe ([80.222.51.55]) by fep06.tmt.tele.fi (InterMail vM.5.01.03.13 201-253-122-118-113-20010918) with ESMTP id <20030212181114.WKSU18921.fep06.tmt.tele.fi@proxyplus.universe> for ; Wed, 12 Feb 2003 20:11:14 +0200 Received: from surfeu.fi [192.168.0.111] by Proxy+; Wed, 12 Feb 2003 20:03:35 +0200 for Message-ID: <3E4A8C77.2070307@surfeu.fi> Date: Wed, 12 Feb 2003 20:03:35 +0200 From: Ilkka Priha User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 X-Accept-Language: en-us, en MIME-Version: 1.0 To: ojb-dev@db.apache.org Subject: [PATCH] LoggerFactoryImpl Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, Below is a patch allowing custom implementations of the org.apache.ojb.broker.util.logging.Logger interface. Regards, Ilkka Priha --- org.apache.ojb.broker.util.logging.LoggerFactoryImpl.orig Sat Feb 8 00:07:56 2003 +++ org.apache.ojb.broker.util.logging.LoggerFactoryImpl.java Wed Feb 12 18:46:24 2003 @@ -211,7 +211,15 @@ } else { - throw new IllegalArgumentException("Don't know how to initialize : "+logger); + try + { + getBootLogger().debug("Initializing Custom logger instance " + loggerName); + logger.configure(lc); + } + catch (Exception x) + { + throw new IllegalArgumentException("Don't know how to initialize : "+logger); + } } //cache it so we can get it faster the next time