db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: jakarta-ojb/src/java/org/apache/ojb/broker/util/logging LoggerFactoryImpl.java
Date Tue, 24 Dec 2002 13:23:47 GMT
arminw      2002/12/24 05:23:47

  Modified:    src/java/org/apache/ojb/broker/util/logging
                        LoggerFactoryImpl.java
  Log:
  add more logging info
  
  Revision  Changes    Path
  1.8       +3 -4      jakarta-ojb/src/java/org/apache/ojb/broker/util/logging/LoggerFactoryImpl.java
  
  Index: LoggerFactoryImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ojb/src/java/org/apache/ojb/broker/util/logging/LoggerFactoryImpl.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- LoggerFactoryImpl.java	24 Sep 2002 20:15:39 -0000	1.7
  +++ LoggerFactoryImpl.java	24 Dec 2002 13:23:46 -0000	1.8
  @@ -121,7 +121,7 @@
           {
               bootLogger = new PoorMansLoggerImpl("BOOT");
               // allow user to set boot log level via system property
  -            String level = System.getProperty("OJB.bootLogLevel","WARN");           
  +            String level = System.getProperty("OJB.bootLogLevel","WARN");
               ((PoorMansLoggerImpl) bootLogger).setLevel(level);
           }
           return bootLogger;
  @@ -184,7 +184,6 @@
               // get the configuration
               LoggingConfiguration lc = (LoggingConfiguration) configurator.getConfigurationFor(null);
   
  -
               loggerClass = lc.getLoggerClass();
               getBootLogger().debug("Using logger class : "+loggerClass+" for:"+loggerName);
               Class[] aType = {String.class};
  @@ -221,7 +220,7 @@
           catch (Throwable t)
           {
               logger = getBootLogger();
  -            logger.error("could not instantiate " + loggerClass, t);
  +            logger.error("["+this.getClass().getName()+"]   Could not set logger for class
" + loggerClass, t);
           }
           return logger;
       }
  
  
  

Mime
View raw message