jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1464581 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/old/mk/wrapper/LogWrapper.java
Date Thu, 04 Apr 2013 14:51:42 GMT
Author: thomasm
Date: Thu Apr  4 14:51:42 2013
New Revision: 1464581

URL: http://svn.apache.org/r1464581
Log:
OAK-71 Logging

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/old/mk/wrapper/LogWrapper.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/old/mk/wrapper/LogWrapper.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/old/mk/wrapper/LogWrapper.java?rev=1464581&r1=1464580&r2=1464581&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/old/mk/wrapper/LogWrapper.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/old/mk/wrapper/LogWrapper.java
Thu Apr  4 14:51:42 2013
@@ -22,11 +22,15 @@ import java.util.concurrent.atomic.Atomi
 import org.apache.jackrabbit.mk.api.MicroKernel;
 import org.apache.jackrabbit.mk.json.JsopBuilder;
 import org.apache.jackrabbit.oak.plugins.index.old.mk.ExceptionFactory;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 /**
  * A logging microkernel implementation.
  */
 public class LogWrapper implements MicroKernel {
+    
+    private static final Logger LOG = LoggerFactory.getLogger(LogWrapper.class);
 
     private static final boolean DEBUG = Boolean.parseBoolean(System.getProperty("mk.debug",
"true"));
     private static final AtomicInteger NEXT_ID = new AtomicInteger();
@@ -282,6 +286,7 @@ public class LogWrapper implements Micro
         if (DEBUG) {
             System.out.println(message);
         }
+        LOG.info(message);
     }
 
 }



Mime
View raw message