]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.browsing.ui.common/src/org/simantics/browsing/ui/common/internal/GENodeQueryManager.java
Replace System.err and System.out with SLF4J Logging
[simantics/platform.git] / bundles / org.simantics.browsing.ui.common / src / org / simantics / browsing / ui / common / internal / GENodeQueryManager.java
index 43b9d3bb253df135ceacc51c67e1ecb81a2d42f0..6921a3b2fab092a171ade1b348b65614ec5f987c 100644 (file)
@@ -28,9 +28,11 @@ import org.simantics.browsing.ui.PrimitiveQueryUpdater;
 import org.simantics.browsing.ui.common.internal.IGECache.IGECacheEntry;
 import org.simantics.browsing.ui.exception.NoDataSourceException;
 import org.simantics.browsing.ui.exception.NoQueryProcessorException;
+import org.slf4j.LoggerFactory;
 
 public class GENodeQueryManager implements NodeQueryManager, PrimitiveQueryUpdater {
 
+    private static final org.slf4j.Logger LOGGER = LoggerFactory.getLogger(GENodeQueryManager.class);
     private static final boolean DEBUG = false;
 
     protected IGraphExplorerContext ge;
@@ -50,8 +52,8 @@ public class GENodeQueryManager implements NodeQueryManager, PrimitiveQueryUpdat
 
     void queryDebug(String s) {
         for (int i = 0; i < ge.queryIndent(); ++i)
-            System.err.append("   ");
-        System.err.println(s);
+            LOGGER.info("   ");
+        LOGGER.info(s);
     }
 
     String toString(UIElementReference ref) {