@Deprecated public final class NullLoggerFactory extends Object implements LoggerFactory
Modifier and Type | Field and Description |
---|---|
static LoggerFactory |
INSTANCE
Deprecated.
The singleton instance of this factory.
|
static Logger |
LOGGER
Deprecated.
The singleton logger used by this factory.
|
Modifier and Type | Method and Description |
---|---|
Logger |
getLogger(String name)
Deprecated.
Gets a logger for a class with the specified name.
|
static Logger |
getSafeLogger(LoggerFactory loggerFactory,
Class<?> type)
Deprecated.
Gets a logger from the specified factory for the given class, falling back to a logger from this factory if the
specified factory is
null or fails to provide a logger. |
public static final LoggerFactory INSTANCE
public Logger getLogger(String name)
LoggerFactory
getLogger
in interface LoggerFactory
name
- The name of the class requesting a logger, must not be null
.null
.public static Logger getSafeLogger(LoggerFactory loggerFactory, Class<?> type)
null
or fails to provide a logger.loggerFactory
- The logger factory from which to get the logger, may be null
.type
- The class for which to get the logger, must not be null
.null
.Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.