You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by Ilkka Priha <ip...@surfeu.fi> on 2003/02/12 19:03:35 UTC
[PATCH] LoggerFactoryImpl
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
Re: [PATCH] LoggerFactoryImpl
Posted by Thomas Mahler <th...@web.de>.
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
>
>