public final class LoggerFactory extends java.lang.Object
LoggerFactoryis a utility class producing Loggers for various logging APIs, most notably for log4j, logback JDK 1.4 logging, and JSimple logging.
LoggerFactoryis essentially a wrapper around an
ILoggerFactoryinstance bound with
LoggerFactoryat compile time. Please note that all methods in
|Modifier and Type||Method and Description|
Return a logger named according to the name parameter using the statically bound
public static void init(ILoggerFactory loggerFactory)
public static Logger getLogger(java.lang.String name)
ILoggerFactoryinstance. If the LoggerFactory hasn't been initialized yet (init hasn't been called), the NOPLogger is returned, where logged messages don't go anywhere.
name- The name of the logger.