[slf4j-dev] svn commit: r584 - in slf4j/trunk: . src/java/org/slf4j/impl

ceki at slf4j.org ceki at slf4j.org
Mon May 1 21:41:28 CEST 2006


Author: ceki
Date: Mon May  1 21:41:27 2006
New Revision: 584

Modified:
   slf4j/trunk/build.properties
   slf4j/trunk/src/java/org/slf4j/impl/JDK14LoggerAdapter.java
Log:

- Preparing release 1.0.1

Modified: slf4j/trunk/build.properties
==============================================================================
--- slf4j/trunk/build.properties	(original)
+++ slf4j/trunk/build.properties	Mon May  1 21:41:27 2006
@@ -2,7 +2,7 @@
 # This properties file hold properties shared among several Ant
 # scripts
 
-version=1.0
+version=1.0.1
 
 jcl-version=104
 jcl.jar=jcl${jcl-version}-over-slf4j.jar
\ No newline at end of file

Modified: slf4j/trunk/src/java/org/slf4j/impl/JDK14LoggerAdapter.java
==============================================================================
--- slf4j/trunk/src/java/org/slf4j/impl/JDK14LoggerAdapter.java	(original)
+++ slf4j/trunk/src/java/org/slf4j/impl/JDK14LoggerAdapter.java	Mon May  1 21:41:27 2006
@@ -460,6 +460,7 @@
    * @param t
    */
   private void log(Level level, String msg, Throwable t) {
+    // millis and thread are filled by the constructor
     LogRecord record = new LogRecord(level, msg);
     record.setLoggerName(getName());
     record.setThrown(t);
@@ -499,6 +500,8 @@
 
     if (found != -1) {
       StackTraceElement ste = steArray[found];
+      // setting the class name has the side effect of setting
+      // the needToInferCaller variable to false.
       record.setSourceClassName(ste.getClassName());
       record.setSourceMethodName(ste.getMethodName());
     }



More information about the slf4j-dev mailing list