Top Description Fields Constructors Methods
org.apache.logging.log4j.jul

public abstract Class AbstractLoggerAdapter

extends AbstractLoggerAdapter<Logger>
Class Inheritance
Known Direct Subclasses
org.apache.logging.log4j.jul.ApiLoggerAdapter, org.apache.logging.log4j.jul.CoreLoggerAdapter
Imports
java.util.logging.Logger, org.apache.logging.log4j.LogManager, org.apache.logging.log4j.spi.LoggerContext, org.apache.logging.log4j.util.StackLocatorUtil

Abstract Logger registry. Due to the optionality of using log4j-core, there are two registries available at runtime to create: ApiLoggerAdapter and CoreLoggerAdapter.
Since
2.1

Field Summary

Inherited from org.apache.logging.log4j.spi.AbstractLoggerAdapter:
registry

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected LoggerContext
getContext()

Implements abstract org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext.

Gets the LoggerContext that should be used to look up or create loggers.

Inherited from org.apache.logging.log4j.spi.AbstractLoggerAdapter:
closecontextShutdowngetContextgetLoggergetLoggerContextsgetLoggersInContextnewLogger

Constructor Detail

AbstractLoggerAdapterback to summary
public AbstractLoggerAdapter()

Method Detail

getContextback to summary
protected LoggerContext getContext()

Implements abstract org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext.

Doc from org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext.

Gets the LoggerContext that should be used to look up or create loggers. This is similar in spirit to the ContextSelector class in log4j-core. However, implementations can rely on their own framework's separation of contexts instead (or simply use a singleton).

Returns:LoggerContext

the LoggerContext to be used for lookup and creation purposes

Annotations
@Override