367172 Remove detection for slf4j NOPLogger
This commit is contained in:
parent
a565c72adb
commit
436743e7d5
|
@ -29,17 +29,7 @@ public class Slf4jLog extends AbstractLogger
|
||||||
|
|
||||||
public Slf4jLog(String name)
|
public Slf4jLog(String name)
|
||||||
{
|
{
|
||||||
// This checks to make sure that an slf4j implementation is present.
|
//NOTE: if only an slf4j-api jar is on the classpath, slf4j will use a NOPLogger
|
||||||
// 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");
|
|
||||||
}
|
|
||||||
|
|
||||||
org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger( name );
|
org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger( name );
|
||||||
|
|
||||||
// Fix LocationAwareLogger use to indicate FQCN of this class -
|
// Fix LocationAwareLogger use to indicate FQCN of this class -
|
||||||
|
|
Loading…
Reference in New Issue