db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Mahler <thm...@web.de>
Subject Re: [PATCH] LoggerFactoryImpl
Date Fri, 14 Feb 2003 21:11:17 GMT
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
> 
> 



Mime
View raw message