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 ar...@apache.org on 2005/12/07 16:19:04 UTC

cvs commit: db-ojb/src/java/org/apache/ojb/broker/util/logging LoggerFactoryImpl.java

arminw      2005/12/07 07:19:04

  Modified:    src/java/org/apache/ojb/broker/util/logging Tag:
                        OJB_1_0_RELEASE LoggerFactoryImpl.java
  Log:
  fix typo, restrict intern used constants to protected
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.18.2.5  +7 -8      db-ojb/src/java/org/apache/ojb/broker/util/logging/LoggerFactoryImpl.java
  
  Index: LoggerFactoryImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/logging/LoggerFactoryImpl.java,v
  retrieving revision 1.18.2.4
  retrieving revision 1.18.2.5
  diff -u -r1.18.2.4 -r1.18.2.5
  --- LoggerFactoryImpl.java	17 Nov 2005 01:34:19 -0000	1.18.2.4
  +++ LoggerFactoryImpl.java	7 Dec 2005 15:19:04 -0000	1.18.2.5
  @@ -35,10 +35,10 @@
    */
   public class LoggerFactoryImpl
   {
  -    public static final String BOOT_LOG_LEVERL_STR = "OJB.bootLogLevel";
  -    public static final String BOOT_STR = "BOOT";
  -    public static final String DEFAULT_STR = "BOOT";
  -    public static final LoggerFactoryImpl INSTANCE = new LoggerFactoryImpl();
  +    public static final String BOOT_LOG_LEVEL_STR = "OJB.bootLogLevel";
  +    protected static final String BOOT_STR = "BOOT";
  +    protected static final String DEFAULT_STR = "DEFAULT";
  +    protected static final LoggerFactoryImpl INSTANCE = new LoggerFactoryImpl();
   
       private Logger defaultLogger = null;
   
  @@ -54,7 +54,6 @@
       // yes. it's a singleton !
       private LoggerFactoryImpl()
       {
  -
       }
   
       public static LoggerFactoryImpl getInstance()
  @@ -224,7 +223,7 @@
       {
           Logger bootLogger = new PoorMansLoggerImpl(BOOT_STR);
           // allow user to set boot log level via system property
  -        String level = System.getProperty(BOOT_LOG_LEVERL_STR, LoggingConfiguration.OJB_DEFAULT_BOOT_LOG_LEVEL);
  +        String level = System.getProperty(BOOT_LOG_LEVEL_STR, LoggingConfiguration.OJB_DEFAULT_BOOT_LOG_LEVEL);
           ((PoorMansLoggerImpl) bootLogger).setLevel(level);
           return bootLogger;
       }
  @@ -233,7 +232,7 @@
       {
           Logger bootLogger = new StringBufferLoggerImpl(BOOT_STR);
           // allow user to set boot log level via system property
  -        String level = System.getProperty(BOOT_LOG_LEVERL_STR, LoggingConfiguration.OJB_DEFAULT_BOOT_LOG_LEVEL);
  +        String level = System.getProperty(BOOT_LOG_LEVEL_STR, LoggingConfiguration.OJB_DEFAULT_BOOT_LOG_LEVEL);
           ((PoorMansLoggerImpl) bootLogger).setLevel(level);
           return bootLogger;
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org