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 34381 invoked from network); 14 Feb 2003 21:11:06 -0000 Received: from smtp03.web.de (HELO smtp.web.de) (217.72.192.158) by daedalus.apache.org with SMTP; 14 Feb 2003 21:11:06 -0000 Received: from dialin-145-254-090-041.arcor-ip.net ([145.254.90.41] helo=web.de) by smtp.web.de with asmtp (WEB.DE(Exim) 4.95 #31) id 18jn70-0005sa-00 for ojb-dev@db.apache.org; Fri, 14 Feb 2003 22:11:11 +0100 Message-ID: <3E4D5B75.6000106@web.de> Date: Fri, 14 Feb 2003 22:11:17 +0100 From: Thomas Mahler Reply-To: thma@apache.org Organization: Apache Foundation User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020903 X-Accept-Language: en-us, en MIME-Version: 1.0 To: OJB Developers List Subject: Re: [PATCH] LoggerFactoryImpl References: <3E4A8C77.2070307@surfeu.fi> X-Enigmail-Version: 0.63.3.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: thma32@web.de X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N done! thanks for your contribution, Thomas Ilkka Priha wrote: > 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 > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org > For additional commands, e-mail: ojb-dev-help@db.apache.org > >