Package elf4j.spi

Interface LoggerFactory

All Known Implementing Classes:
NoopLoggerFactory

public interface LoggerFactory
Service interface a logging provider has to implement. See the Java SPI intro
  • Method Details

    • logger

      Logger logger()
      Returns:
      a Logger instance with a default name at the provider's discretion, usually the caller class name.
    • logger

      Logger logger(String name)
      Parameters:
      name - Client proposed name of the returned Logger instance. It's up to the provider whether to honor the logger name as requested although, usually, the name request is honored verbatim.
      Returns:
      Logger instance with the requested name
    • logger

      Logger logger(Class<?> clazz)
      Parameters:
      clazz - Class that requested the Logger instance. It's up to the provider how, if at all, to use the class to name the logger. Usually the fully qualified class name is used to name the logger.
      Returns:
      Logger instance of the requesting class