Uses of Interface
org.apache.logging.log4j.spi.LoggerContext
Packages that use LoggerContext
Package
Description
Public API for Log4j 2.
Simple logging implementation.
Internal interfaces and classes to be used by authors of logging implementations or for internal use by
API classes.
-
Uses of LoggerContext in org.apache.logging.log4j
Methods in org.apache.logging.log4j that return LoggerContextModifier and TypeMethodDescriptionstatic LoggerContext
LogManager.getContext()
Returns the current LoggerContext.static LoggerContext
LogManager.getContext
(boolean currentContext) Returns a LoggerContext.static LoggerContext
LogManager.getContext
(ClassLoader loader, boolean currentContext) Returns a LoggerContext.static LoggerContext
LogManager.getContext
(ClassLoader loader, boolean currentContext, Object externalContext) Returns a LoggerContext.static LoggerContext
LogManager.getContext
(ClassLoader loader, boolean currentContext, Object externalContext, URI configLocation) Returns a LoggerContext.static LoggerContext
LogManager.getContext
(ClassLoader loader, boolean currentContext, Object externalContext, URI configLocation, String name) Returns a LoggerContext.static LoggerContext
LogManager.getContext
(ClassLoader loader, boolean currentContext, URI configLocation) Returns a LoggerContext.protected static LoggerContext
LogManager.getContext
(String fqcn, boolean currentContext) Returns a LoggerContextprotected static LoggerContext
LogManager.getContext
(String fqcn, ClassLoader loader, boolean currentContext) Returns a LoggerContextprotected static LoggerContext
LogManager.getContext
(String fqcn, ClassLoader loader, boolean currentContext, URI configLocation, String name) Returns a LoggerContextMethods in org.apache.logging.log4j with parameters of type LoggerContextModifier and TypeMethodDescriptionstatic void
LogManager.shutdown
(LoggerContext context) Shutdown the logging system if the logging system supports it. -
Uses of LoggerContext in org.apache.logging.log4j.simple
Classes in org.apache.logging.log4j.simple that implement LoggerContextMethods in org.apache.logging.log4j.simple that return LoggerContextModifier and TypeMethodDescriptionSimpleLoggerContextFactory.getContext
(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext) SimpleLoggerContextFactory.getContext
(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext, URI configLocation, String name) Methods in org.apache.logging.log4j.simple with parameters of type LoggerContextModifier and TypeMethodDescriptionvoid
SimpleLoggerContextFactory.removeContext
(LoggerContext removeContext) -
Uses of LoggerContext in org.apache.logging.log4j.spi
Fields in org.apache.logging.log4j.spi declared as LoggerContextModifier and TypeFieldDescriptionstatic final LoggerContext[]
LoggerContext.EMPTY_ARRAY
Empty array.Fields in org.apache.logging.log4j.spi with type parameters of type LoggerContextModifier and TypeFieldDescriptionprotected final Map<LoggerContext,
ConcurrentMap<String, L>> AbstractLoggerAdapter.registry
A map to store loggers for their given LoggerContexts.Methods in org.apache.logging.log4j.spi that return LoggerContextModifier and TypeMethodDescriptionprotected abstract LoggerContext
AbstractLoggerAdapter.getContext()
Gets theLoggerContext
that should be used to look up or create loggers.protected LoggerContext
AbstractLoggerAdapter.getContext
(Class<?> callerClass) Gets theLoggerContext
associated with the given caller class.LoggerContextFactory.getContext
(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext) Creates aLoggerContext
.LoggerContextFactory.getContext
(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext, URI configLocation, String name) Creates aLoggerContext
.Methods in org.apache.logging.log4j.spi that return types with arguments of type LoggerContextMethods in org.apache.logging.log4j.spi with parameters of type LoggerContextModifier and TypeMethodDescriptionvoid
AbstractLoggerAdapter.contextShutdown
(LoggerContext loggerContext) void
LoggerContextShutdownAware.contextShutdown
(LoggerContext loggerContext) AbstractLoggerAdapter.getLoggersInContext
(LoggerContext context) Gets or creates the ConcurrentMap of named loggers for a given LoggerContext.protected abstract L
AbstractLoggerAdapter.newLogger
(String name, LoggerContext context) Creates a new named logger for a givenLoggerContext
.void
LoggerContextFactory.removeContext
(LoggerContext context) Removes knowledge of a LoggerContext.