Class NullLoggerFactory

java.lang.Object
org.eclipse.aether.spi.log.NullLoggerFactory
All Implemented Interfaces:
LoggerFactory

@Deprecated public final class NullLoggerFactory extends Object implements LoggerFactory
Deprecated.
Use SLF4J instead
A logger factory that disables any logging.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final LoggerFactory
    Deprecated.
    The singleton instance of this factory.
    static final Logger
    Deprecated.
    The singleton logger used by this factory.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • INSTANCE

      public static final LoggerFactory INSTANCE
      Deprecated.
      The singleton instance of this factory.
    • LOGGER

      public static final Logger LOGGER
      Deprecated.
      The singleton logger used by this factory.
  • Method Details

    • getLogger

      public Logger getLogger(String name)
      Deprecated.
      Description copied from interface: LoggerFactory
      Gets a logger for a class with the specified name.
      Specified by:
      getLogger in interface LoggerFactory
      Parameters:
      name - The name of the class requesting a logger, must not be null.
      Returns:
      The requested logger, never null.
    • getSafeLogger

      public 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.
      Parameters:
      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.
      Returns:
      The requested logger, never null.