LoggerFactory is a utility class producing Loggers for
various logging APIs, most notably for log4j, logback and JDK 1.4 logging.
Other implementations such as NOPLogger and
SimpleLogger are also supported.
LoggerFactory is essentially a wrapper around an
instance bound with ILoggerFactoryLoggerFactory at
compile time.
Please note that all methods in LoggerFactory are static.
static final String NO_STATICLOGGERBINDER_URL = "http://www.slf4j.org/codes.html#StaticLoggerBinder";
ILoggerFactory instance.
name
The name of the logger.throw new IllegalStateException("Logging factory implementation cannot be null. See also "+NULL_LF_URL);
ILoggerFactory instance.
clazz
the returned logger will be named after clazzthrow new IllegalStateException("Logging factory implementation cannot be null. See also "+NULL_LF_URL);
ILoggerFactory instance in use.
ILoggerFactory instance is bound with this class at compile time.