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.
ILoggerFactory instance.
name
The name of the logger.throw new IllegalStateException("Logging factory implementation cannot be null. See also http://www.slf4j.org/codes.html#null_LF");
ILoggerFactory instance.
clazz
the returned logger will be named after clazzthrow new IllegalStateException("Logging factory implementation cannot be null. See also http://www.slf4j.org/codes.html#null_LF");
ILoggerFactory instance in use.
ILoggerFactory instance is bound with this class at compile time.