public final class NullLoggerFactory extends Object implements LoggerFactory
| Modifier and Type | Field and Description |
|---|---|
static LoggerFactory |
INSTANCE
The singleton instance of this factory.
|
static Logger |
LOGGER
The singleton logger used by this factory.
|
| Modifier and Type | Method and Description |
|---|---|
Logger |
getLogger(String name)
Gets a logger for a class with the specified name.
|
static Logger |
getSafeLogger(LoggerFactory loggerFactory,
Class<?> type)
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 static final Logger LOGGER
public Logger getLogger(String name)
LoggerFactorygetLogger in interface LoggerFactoryname - 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-2015 The Eclipse Foundation. All Rights Reserved.