commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1089076 - in /commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/log: DiscoveryLogFactory.java SimpleLog.java
Date Tue, 05 Apr 2011 15:20:09 GMT
Author: simonetripodi
Date: Tue Apr  5 15:20:08 2011
New Revision: 1089076

URL: http://svn.apache.org/viewvc?rev=1089076&view=rev
Log:
minor code format

Modified:
    commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/log/DiscoveryLogFactory.java
    commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/log/SimpleLog.java

Modified: commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/log/DiscoveryLogFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/log/DiscoveryLogFactory.java?rev=1089076&r1=1089075&r2=1089076&view=diff
==============================================================================
--- commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/log/DiscoveryLogFactory.java
(original)
+++ commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/log/DiscoveryLogFactory.java
Tue Apr  5 15:20:08 2011
@@ -25,7 +25,6 @@ import org.apache.commons.discovery.tool
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
-
 /**
  * <p>Simple implementation of Log that sends all enabled log messages,
  * for all defined loggers, to System.err.
@@ -45,8 +44,11 @@ import org.apache.commons.logging.LogFac
  */
 @Deprecated
 public class DiscoveryLogFactory {
+
     private static LogFactory logFactory = null;
+
     private static final Map<Class<?>, Class<?>>  classRegistry = new Hashtable<Class<?>,
Class<?>>();
+
     private static final Class<?>[] setLogParamClasses = new Class<?>[] { Log.class
};
 
     /**
@@ -136,4 +138,5 @@ public class DiscoveryLogFactory {
             }
         }
     }
+
 }

Modified: commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/log/SimpleLog.java
URL: http://svn.apache.org/viewvc/commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/log/SimpleLog.java?rev=1089076&r1=1089075&r2=1089076&view=diff
==============================================================================
--- commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/log/SimpleLog.java
(original)
+++ commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/log/SimpleLog.java
Tue Apr  5 15:20:08 2011
@@ -23,17 +23,16 @@ import java.util.Date;
 
 import org.apache.commons.logging.Log;
 
-
 /**
  * <p>Simple implementation of Log that sends all enabled log messages,
  * for all defined loggers, to System.err.
  * </p>
- * 
+ *
  * <p>Hacked from commons-logging SimpleLog for use in discovery.
  * This is intended to be enough of a Log implementation to bootstrap
  * Discovery.
  * </p>
- * 
+ *
  * <p>One property: <code>org.apache.commons.discovery.log.level</code>.
  * valid values: all, trace, debug, info, warn, error, fatal, off.
  * </p>
@@ -47,14 +46,19 @@ public class SimpleLog implements Log {
 
     /** "Trace" level logging. */
     public static final int LOG_LEVEL_TRACE  = 1;
+
     /** "Debug" level logging. */
     public static final int LOG_LEVEL_DEBUG  = 2;
+
     /** "Info" level logging. */
     public static final int LOG_LEVEL_INFO   = 3;
+
     /** "Warn" level logging. */
     public static final int LOG_LEVEL_WARN   = 4;
+
     /** "Error" level logging. */
     public static final int LOG_LEVEL_ERROR  = 5;
+
     /** "Fatal" level logging. */
     public static final int LOG_LEVEL_FATAL  = 6;
 
@@ -87,7 +91,6 @@ public class SimpleLog implements Log {
     /** The current log level */
     static protected int logLevel = LOG_LEVEL_INFO;
 
-
     /**
      * Use 'out' instead of 'err' for logging
      * to keep in-sync with test messages.
@@ -161,8 +164,6 @@ public class SimpleLog implements Log {
         return (level >= getLevel());
     }
 
-
-
     // ------------------------------------------------------------- Attributes
 
     /** The name of this simple log instance */
@@ -170,7 +171,6 @@ public class SimpleLog implements Log {
 
     private String prefix=null;
 
-
     // ------------------------------------------------------------ Constructor
 
     /**
@@ -182,10 +182,8 @@ public class SimpleLog implements Log {
         logName = name;
     }
 
-
     // -------------------------------------------------------- Logging Methods
 
-
     /**
      * <p> Do the actual logging.
      * This method assembles the message
@@ -240,10 +238,8 @@ public class SimpleLog implements Log {
             t.printStackTrace(System.err);
     }
 
-
     // -------------------------------------------------------- Log Implementation
 
-
     /**
      * <p> Log a message with debug log level.</p>
      */
@@ -253,7 +249,6 @@ public class SimpleLog implements Log {
         }
     }
 
-
     /**
      * <p> Log an error with debug log level.</p>
      */
@@ -263,7 +258,6 @@ public class SimpleLog implements Log {
         }
     }
 
-
     /**
      * <p> Log a message with debug log level.</p>
      */
@@ -273,7 +267,6 @@ public class SimpleLog implements Log {
         }
     }
 
-
     /**
      * <p> Log an error with debug log level.</p>
      */
@@ -283,7 +276,6 @@ public class SimpleLog implements Log {
         }
     }
 
-
     /**
      * <p> Log a message with info log level.</p>
      */
@@ -293,7 +285,6 @@ public class SimpleLog implements Log {
         }
     }
 
-
     /**
      * <p> Log an error with info log level.</p>
      */
@@ -303,7 +294,6 @@ public class SimpleLog implements Log {
         }
     }
 
-
     /**
      * <p> Log a message with warn log level.</p>
      */
@@ -313,7 +303,6 @@ public class SimpleLog implements Log {
         }
     }
 
-
     /**
      * <p> Log an error with warn log level.</p>
      */
@@ -323,7 +312,6 @@ public class SimpleLog implements Log {
         }
     }
 
-
     /**
      * <p> Log a message with error log level.</p>
      */
@@ -333,7 +321,6 @@ public class SimpleLog implements Log {
         }
     }
 
-
     /**
      * <p> Log an error with error log level.</p>
      */
@@ -343,7 +330,6 @@ public class SimpleLog implements Log {
         }
     }
 
-
     /**
      * <p> Log a message with fatal log level.</p>
      */
@@ -353,7 +339,6 @@ public class SimpleLog implements Log {
         }
     }
 
-
     /**
      * <p> Log an error with fatal log level.</p>
      */
@@ -363,7 +348,6 @@ public class SimpleLog implements Log {
         }
     }
 
-
     /**
      * <p> Are debug messages currently enabled? </p>
      *
@@ -375,7 +359,6 @@ public class SimpleLog implements Log {
         return isLevelEnabled(SimpleLog.LOG_LEVEL_DEBUG);
     }
 
-
     /**
      * <p> Are error messages currently enabled? </p>
      *
@@ -387,7 +370,6 @@ public class SimpleLog implements Log {
         return isLevelEnabled(SimpleLog.LOG_LEVEL_ERROR);
     }
 
-
     /**
      * <p> Are fatal messages currently enabled? </p>
      *
@@ -399,7 +381,6 @@ public class SimpleLog implements Log {
         return isLevelEnabled(SimpleLog.LOG_LEVEL_FATAL);
     }
 
-
     /**
      * <p> Are info messages currently enabled? </p>
      *
@@ -411,7 +392,6 @@ public class SimpleLog implements Log {
         return isLevelEnabled(SimpleLog.LOG_LEVEL_INFO);
     }
 
-
     /**
      * <p> Are trace messages currently enabled? </p>
      *
@@ -423,7 +403,6 @@ public class SimpleLog implements Log {
         return isLevelEnabled(SimpleLog.LOG_LEVEL_TRACE);
     }
 
-
     /**
      * <p> Are warn messages currently enabled? </p>
      *
@@ -434,4 +413,5 @@ public class SimpleLog implements Log {
     public final boolean isWarnEnabled() {
         return isLevelEnabled(SimpleLog.LOG_LEVEL_WARN);
     }
+
 }



Mime
View raw message