Interface LoggerFactory

All Known Implementing Classes:
FallbackLoggerFactory
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface LoggerFactory
A factory for logger objects.
Since:
4.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The name of the root logger used by the system.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets or creates a logger with the given name.
  • Field Details

    • ROOT_LOGGER_NAME

      static final String ROOT_LOGGER_NAME
      The name of the root logger used by the system. Editing the associated logger will result in all loggers to change.
      See Also:
  • Method Details

    • logger

      Gets or creates a logger with the given name. Overridden methods may but must no cache created logger objects, meaning that this method can also create a new logger each time this method is called.
      Parameters:
      name - the name of the logger.
      Returns:
      the cached or created logger object having the given name.
      Throws:
      NullPointerException - if the given name is null.