Package elf4j.spi
Interface LoggerFactory
- All Known Implementing Classes:
NoopLoggerFactory
public interface LoggerFactory
Service Provider Interface for the ELF4J logging provider. A provider implementation class of this SPI needs to be
loadable by
ServiceLoader
.- See Also:
-
Method Summary
-
Method Details
-
logger
Logger logger()- Returns:
- a Logger instance with a default name at the provider's discretion, usually the caller class name.
-
logger
- Parameters:
name
- Client proposed name of the Logger instance returned. 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
- Parameters:
clazz
- used to suggest the name of the Logger instance returned. 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
-