db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ilkka Priha <ipr...@surfeu.fi>
Subject [PATCH] LoggerFactoryImpl
Date Wed, 12 Feb 2003 18:03:35 GMT
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








Mime
View raw message