aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2015-03-23 20:44:42 +0100
committerSven Gothel <[email protected]>2015-03-23 20:44:42 +0100
commitde373ebf98385dae3fcbd191c77b9b62b3466403 (patch)
tree742a23d32ee51d390cd6ff4b702b4720990ce241 /src/main
parenta6cf018b30b197ed84f0a0d9ca81fbb9320782c2 (diff)
Utilize com.jogamp.gluegen.Logging.LoggerIf instead of org.slf4j.Logger
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/anarres/cpp/DefaultPreprocessorListener.java7
-rw-r--r--src/main/java/org/anarres/cpp/Preprocessor.java11
2 files changed, 12 insertions, 6 deletions
diff --git a/src/main/java/org/anarres/cpp/DefaultPreprocessorListener.java b/src/main/java/org/anarres/cpp/DefaultPreprocessorListener.java
index 40a8686..26b8b0e 100644
--- a/src/main/java/org/anarres/cpp/DefaultPreprocessorListener.java
+++ b/src/main/java/org/anarres/cpp/DefaultPreprocessorListener.java
@@ -18,8 +18,9 @@ package org.anarres.cpp;
*/
import javax.annotation.Nonnegative;
import javax.annotation.Nonnull;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
+
+import com.jogamp.gluegen.Logging;
+import com.jogamp.gluegen.Logging.LoggerIf;
/**
* A handler for preprocessor events, primarily errors and warnings.
@@ -30,7 +31,7 @@ import org.slf4j.LoggerFactory;
*/
public class DefaultPreprocessorListener implements PreprocessorListener {
- private static final Logger LOG = LoggerFactory.getLogger(DefaultPreprocessorListener.class);
+ private static final LoggerIf LOG = Logging.getLogger(DefaultPreprocessorListener.class);
private int errors;
private int warnings;
diff --git a/src/main/java/org/anarres/cpp/Preprocessor.java b/src/main/java/org/anarres/cpp/Preprocessor.java
index 27f609f..e6c9055 100644
--- a/src/main/java/org/anarres/cpp/Preprocessor.java
+++ b/src/main/java/org/anarres/cpp/Preprocessor.java
@@ -31,12 +31,17 @@ import java.util.Map;
import java.util.Set;
import java.util.Stack;
import java.util.TreeMap;
+
import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
+
import static org.anarres.cpp.PreprocessorCommand.*;
+
import org.anarres.cpp.PreprocessorListener.SourceChangeEvent;
+
+import com.jogamp.gluegen.Logging;
+import com.jogamp.gluegen.Logging.LoggerIf;
+
import static org.anarres.cpp.Token.*;
/**
@@ -76,7 +81,7 @@ import static org.anarres.cpp.Token.*;
*/
public class Preprocessor implements Closeable {
- private static final Logger LOG = LoggerFactory.getLogger(Preprocessor.class);
+ private static final LoggerIf LOG = Logging.getLogger(Preprocessor.class);
private static final Source INTERNAL = new Source() {
@Override