Modifier and Type | Field and Description |
---|---|
static String |
LOGGER_FACTORY_IMPL_CLASS_NAME |
Constructor and Description |
---|
LoggerFactory() |
Modifier and Type | Method and Description |
---|---|
static Logger |
getLogger(Class<?> clazz)
Obtains a
Logger implementation for the specified class. |
static Logger |
getLogger(org.slf4j.Logger logger)
Obtains a
Logger implementation for the specified Logger . |
protected abstract Logger |
getLoggerImpl(Class<?> clazz)
Internal method to obtain the
Logger implementation from the static LoggerFactory implementation. |
protected abstract Logger |
getLoggerImpl(org.slf4j.Logger logger)
Internal method to obtain the
Logger implementation from the static LoggerFactory implementation. |
public static final String LOGGER_FACTORY_IMPL_CLASS_NAME
public static Logger getLogger(Class<?> clazz)
Logger
implementation for the specified class.clazz
- Class to be associated with the logger instance.Logger
instance for trace and information logging.public static Logger getLogger(org.slf4j.Logger logger)
Logger
implementation for the specified Logger
.logger
- The Logger
to be associated with the logger instance.Logger
instance for trace and information logging.protected abstract Logger getLoggerImpl(Class<?> clazz)
Logger
implementation from the static LoggerFactory
implementation.clazz
- Class to be associated with the logger instance.Logger
instance for trace and information logging.protected abstract Logger getLoggerImpl(org.slf4j.Logger logger)
Logger
implementation from the static LoggerFactory
implementation.logger
- The SLF4J logger instance.Logger
instance for trace and information logging.Copyright © 2015 International Business Machines Corporation. All rights reserved.