public final class LoggerFactory extends Object
LoggerFactoryis a utility class producing Loggers for various logging APIs, most notably for log4j, logback and JDK 1.4 logging. Other implementations such as
SimpleLoggerare also supported.
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 corresponding to the class passed as parameter, using the statically bound
Return a logger named according to the name parameter using the statically bound
name- The name of the logger.
In case the the
clazz parameter differs from the name of
the caller as computed internally by SLF4J, a logger name mismatch warning will be
printed but only if the
slf4j.detectLoggerNameMismatch system property is
set to true. By default, this property is not set and no warnings will be printed
even in case of a logger name mismatch.
clazz- the returned logger will be named after clazz
Copyright © 2005–2014 QOS.ch. All rights reserved.