public final class NullLoggerFactory extends Object implements LoggerFactory
| Modifier and Type | Field and Description | 
|---|---|
| static LoggerFactory | INSTANCEThe singleton instance of this factory. | 
| static Logger | LOGGERThe 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  nullor fails to provide a logger. | 
public static final LoggerFactory INSTANCE
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–2018 The Apache Software Foundation. All rights reserved.