[slf4j-dev] svn commit: r517 - slf4j/trunk/src/java/org/slf4j/impl

ceki at slf4j.org ceki at slf4j.org
Wed Jan 25 20:02:50 CET 2006


Author: ceki
Date: Wed Jan 25 20:02:49 2006
New Revision: 517

Modified:
   slf4j/trunk/src/java/org/slf4j/impl/SimpleLoggerFactory.java
Log:

Added a default INSTANCE to SimpleLoggerFactory to serve as a last-resort fallback mechanism.

Modified: slf4j/trunk/src/java/org/slf4j/impl/SimpleLoggerFactory.java
==============================================================================
--- slf4j/trunk/src/java/org/slf4j/impl/SimpleLoggerFactory.java	(original)
+++ slf4j/trunk/src/java/org/slf4j/impl/SimpleLoggerFactory.java	Wed Jan 25 20:02:49 2006
@@ -48,6 +48,13 @@
  */
 public class SimpleLoggerFactory implements ILoggerFactory {
 
+
+  /**
+   * A default instance of SimpleLoggerFactory. This default instance may be used
+   * to retrieve a simple logger as a last-resort fallback logger. 
+   */
+  public final static SimpleLoggerFactory INSTANCE = new SimpleLoggerFactory();
+  
   Map map;
   
   public SimpleLoggerFactory() {



More information about the slf4j-dev mailing list