From 436743e7d5ad268b9a32311af31bcef4928098cc Mon Sep 17 00:00:00 2001 From: Jan Bartel Date: Thu, 12 Apr 2012 17:05:55 +1000 Subject: [PATCH] 367172 Remove detection for slf4j NOPLogger --- .../java/org/eclipse/jetty/util/log/Slf4jLog.java | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/log/Slf4jLog.java b/jetty-util/src/main/java/org/eclipse/jetty/util/log/Slf4jLog.java index 2dca95127f2..eacb02a795c 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/log/Slf4jLog.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/log/Slf4jLog.java @@ -29,17 +29,7 @@ public class Slf4jLog extends AbstractLogger public Slf4jLog(String name) { - // This checks to make sure that an slf4j implementation is present. - // It is needed because slf4j-api 1.6.x defaults to using NOPLogger. - try - { - Class.forName("org.slf4j.impl.StaticLoggerBinder"); - } - catch (ClassNotFoundException ex) - { - throw new NoClassDefFoundError("org.slf4j.impl.StaticLoggerBinder"); - } - + //NOTE: if only an slf4j-api jar is on the classpath, slf4j will use a NOPLogger org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger( name ); // Fix LocationAwareLogger use to indicate FQCN of this class -