Skip to content

Commit

Permalink
[all] Replace references to Log4J and SFL4J by JUL as much as possible.
Browse files Browse the repository at this point in the history
see #984

Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Jun 20, 2020
1 parent 1920d20 commit 966c8c3
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -41,6 +41,8 @@
import java.util.Set;
import java.util.TreeMap;
import java.util.TreeSet;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.stream.Stream;

import com.google.inject.Injector;
Expand All @@ -52,7 +54,6 @@
import org.eclipse.xtext.xbase.validation.IssueCodes;
import org.junit.jupiter.api.DynamicTest;
import org.opentest4j.AssertionFailedError;
import org.slf4j.helpers.NOPLogger;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;

Expand Down Expand Up @@ -357,7 +358,9 @@ public static List<String> compileFiles(File root, List<File> installedFiles) th
compiler.setAllWarningSeverities(Severity.IGNORE);
compiler.setWarningSeverity(IssueCodes.DEPRECATED_MEMBER_REFERENCE, Severity.ERROR);
compiler.setJavaCompilerVerbose(false);
compiler.setLogger(NOPLogger.NOP_LOGGER);
final Logger nopLogger = Logger.getAnonymousLogger();
nopLogger.setLevel(Level.OFF);
compiler.setLogger(nopLogger);
compiler.addIssueMessageListener((issue, uri, message) -> {
if (issue.isSyntaxError() || issue.getSeverity().compareTo(Severity.ERROR) >= 0) {
final Integer line = issue.getLineNumber();
Expand Down

0 comments on commit 966c8c3

Please sign in to comment.