Package org.eclipse.aether.spi.log
Class NullLoggerFactory
java.lang.Object
org.eclipse.aether.spi.log.NullLoggerFactory
- All Implemented Interfaces:
LoggerFactory
Deprecated.
Use SLF4J instead
A logger factory that disables any logging.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final LoggerFactory
Deprecated.The singleton instance of this factory.static final Logger
Deprecated.The singleton logger used by this factory. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.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 isnull
or fails to provide a logger.
-
Field Details
-
INSTANCE
Deprecated.The singleton instance of this factory. -
LOGGER
Deprecated.The singleton logger used by this factory.
-
-
Method Details
-
getLogger
Deprecated.Description copied from interface:LoggerFactory
Gets a logger for a class with the specified name.- Specified by:
getLogger
in interfaceLoggerFactory
- Parameters:
name
- The name of the class requesting a logger, must not benull
.- Returns:
- The requested logger, never
null
.
-
getSafeLogger
Deprecated.Gets a logger from the specified factory for the given class, falling back to a logger from this factory if the specified factory isnull
or fails to provide a logger.- Parameters:
loggerFactory
- The logger factory from which to get the logger, may benull
.type
- The class for which to get the logger, must not benull
.- Returns:
- The requested logger, never
null
.
-