mirror of
https://github.com/tiennm99/tjahzi.git
synced 2026-10-15 00:17:55 +00:00
Removed logger - not working on this for now.
This commit is contained in:
1 parent
49b63d1325
commit
bda8a2c71c
1 file changed
-66
@@ -1,66 +0,0 @@
|
||||
package org.slf4j.impl;
|
||||
|
||||
import org.slf4j.ILoggerFactory;
|
||||
import org.slf4j.spi.LoggerFactoryBinder;
|
||||
import pl.tkowalcz.thjazi.ThjaziLoggerFactory;
|
||||
|
||||
/**
|
||||
* SLF4J LoggerFactoryBinder implementation using Log4j. This class is part of the required classes used to specify an
|
||||
* SLF4J logger provider implementation.
|
||||
*/
|
||||
public final class StaticLoggerBinder implements LoggerFactoryBinder {
|
||||
|
||||
/**
|
||||
* Declare the version of the SLF4J API this implementation is compiled
|
||||
* against. The value of this field is usually modified with each release.
|
||||
*/
|
||||
// to avoid constant folding by the compiler, this field must *not* be final
|
||||
public static String REQUESTED_API_VERSION = "1.6"; // !final
|
||||
|
||||
private static final String LOGGER_FACTORY_CLASS_STR = ThjaziLoggerFactory.class.getName();
|
||||
|
||||
/**
|
||||
* The unique instance of this class.
|
||||
*/
|
||||
private static final StaticLoggerBinder SINGLETON = new StaticLoggerBinder();
|
||||
|
||||
/**
|
||||
* The ILoggerFactory instance returned by the {@link #getLoggerFactory}
|
||||
* method should always be the same object
|
||||
*/
|
||||
private final ILoggerFactory loggerFactory;
|
||||
|
||||
/**
|
||||
* Private constructor to prevent instantiation
|
||||
*/
|
||||
private StaticLoggerBinder() {
|
||||
loggerFactory = new ThjaziLoggerFactory();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the singleton of this class.
|
||||
*
|
||||
* @return the StaticLoggerBinder singleton
|
||||
*/
|
||||
public static StaticLoggerBinder getSingleton() {
|
||||
return SINGLETON;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the factory.
|
||||
* @return the factor.
|
||||
*/
|
||||
@Override
|
||||
public ILoggerFactory getLoggerFactory() {
|
||||
return loggerFactory;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the class name.
|
||||
* @return the class name;
|
||||
*/
|
||||
@Override
|
||||
public String getLoggerFactoryClassStr() {
|
||||
return LOGGER_FACTORY_CLASS_STR;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user