Package org.apache.logging.log4j.spi
Interface LoggerAdapter<L>
-
- Type Parameters:
L- the external logger class for this registry (e.g.,org.slf4j.Logger)
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable
- All Known Implementing Classes:
AbstractLoggerAdapter
public interface LoggerAdapter<L> extends java.io.CloseableA basic registry forLoggerContextobjects and their associated external Logger classes. This registry should not be used for Log4j Loggers; it is instead used for creating bridges to other external log systems.- Since:
- 2.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LgetLogger(java.lang.String name)Gets a named logger.
-
-
-
Method Detail
-
getLogger
L getLogger(java.lang.String name)
Gets a named logger. Implementations should defer to the abstract methods inAbstractLoggerAdapter.- Parameters:
name- the name of the logger to get- Returns:
- the named logger
-
-