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...@norther.org> on 2005/12/07 09:47:19 UTC

LoggerFactoryImpl typo?

Hi

Minor typo in the recent logger patch?

-- Ilkka


Index: LoggerFactoryImpl.java
===================================================================
RCS file: 
/home/cvspublic/db-ojb/src/java/org/apache/ojb/broker/util/logging/LoggerFactoryImpl.java,v
retrieving revision 1.18.2.4
diff -u -r1.18.2.4 LoggerFactoryImpl.java
--- LoggerFactoryImpl.java	17 Nov 2005 01:34:19 -0000	1.18.2.4
+++ LoggerFactoryImpl.java	7 Dec 2005 08:36:22 -0000
@@ -35,7 +35,7 @@
   */
  public class LoggerFactoryImpl
  {
-    public static final String BOOT_LOG_LEVERL_STR = "OJB.bootLogLevel";
+    public static final String BOOT_LOG_LEVEL_STR = "OJB.bootLogLevel";
      public static final String BOOT_STR = "BOOT";
      public static final String DEFAULT_STR = "BOOT";
      public static final LoggerFactoryImpl INSTANCE = new 
LoggerFactoryImpl();
@@ -224,7 +224,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 +233,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


Re: LoggerFactoryImpl typo?

Posted by Armin Waibel <ar...@apache.org>.
Ilkka Priha wrote:
> Hi
> 
> Minor typo in the recent logger patch?
>

Thanks for the hint.
Fixed in branch and trunk.

Armin

> -- Ilkka
> 
> 
> Index: LoggerFactoryImpl.java
> ===================================================================
> RCS file: 
> /home/cvspublic/db-ojb/src/java/org/apache/ojb/broker/util/logging/LoggerFactoryImpl.java,v 
> 
> retrieving revision 1.18.2.4
> diff -u -r1.18.2.4 LoggerFactoryImpl.java
> --- LoggerFactoryImpl.java    17 Nov 2005 01:34:19 -0000    1.18.2.4
> +++ LoggerFactoryImpl.java    7 Dec 2005 08:36:22 -0000
> @@ -35,7 +35,7 @@
>   */
>  public class LoggerFactoryImpl
>  {
> -    public static final String BOOT_LOG_LEVERL_STR = "OJB.bootLogLevel";
> +    public static final String BOOT_LOG_LEVEL_STR = "OJB.bootLogLevel";
>      public static final String BOOT_STR = "BOOT";
>      public static final String DEFAULT_STR = "BOOT";
>      public static final LoggerFactoryImpl INSTANCE = new 
> LoggerFactoryImpl();
> @@ -224,7 +224,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 +233,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
> 
> 

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