Top Description Methods
org.apache.logging.log4j.spi

public Interface LoggerAdapter<L>

extends Closeable
Known Direct Implementers
org.apache.logging.log4j.spi.AbstractLoggerAdapter
Type Parameters
<L>
the external logger class for this registry (e.g., org.slf4j.Logger)
Imports
java.io.Closeable

A basic registry for LoggerContext objects 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

Modifier and TypeMethod and Description
public L

Returns:

the named logger
getLogger
(String
the name of the logger to get
name
)

Gets a named logger.

Inherited from java.io.Closeable:
close

Method Detail

getLoggerback to summary
public L getLogger(String name)

Gets a named logger. Implementations should defer to the abstract methods in AbstractLoggerAdapter.

Parameters
name:String

the name of the logger to get

Returns:L

the named logger