Uses of Interface
org.apache.logging.log4j.spi.LoggerContext
Packages that use LoggerContext
Package
Description
Log4j 1.x compatibility layer.
Log4j 1.x compatibility layer.
Public API for Log4j 2.
Implementation of Log4j 2.
Provides Asynchronous Logger classes and interfaces for low-latency logging.
Log4j 2 private implementation classes.
Log4j 2 Context Selectors.
Log4j 2 adapter for Commons Logging.
Simple logging implementation.
Internal interfaces and classes to be used by authors of logging implementations or for internal use by
API classes.
Classes (JSP tags) to enable logging in JSPs without using Java scripting.
Java JDK java.util.logging (JUL) bridge.
SLF4J support.
-
Uses of LoggerContext in org.apache.log4j
Fields in org.apache.log4j with type parameters of type LoggerContextModifier and TypeFieldDescriptionprivate static final WeakHashMap<LoggerContext,
ConcurrentMap<String, Logger>> Hierarchy.CONTEXT_MAP
Methods in org.apache.log4j that return LoggerContextModifier and TypeMethodDescription(package private) static LoggerContext
Hierarchy.getContext()
(package private) LoggerContext
Hierarchy.getContext
(ClassLoader classLoader) protected LoggerContext
Hierarchy.PrivateLoggerAdapter.getContext()
static LoggerContext
Hierarchy.PrivateLogManager.getContext()
(package private) static LoggerContext
LogManager.getContext
(ClassLoader classLoader) Gets a LoggerContext.Methods in org.apache.log4j with parameters of type LoggerContextModifier and TypeMethodDescription(package private) Logger
Hierarchy.exists
(String name, LoggerContext loggerContext) (package private) static Logger
Hierarchy.getInstance
(LoggerContext context, String name) (package private) static Logger
Hierarchy.getInstance
(LoggerContext context, String name, Hierarchy.PrivateLoggerAdapter factory) (package private) static Logger
Hierarchy.getInstance
(LoggerContext context, String name, LoggerFactory factory) (package private) static ConcurrentMap<String,
Logger> Hierarchy.getLoggersMap
(LoggerContext context) (package private) static Logger
Hierarchy.getRootLogger
(LoggerContext context) protected Logger
Hierarchy.PrivateLoggerAdapter.newLogger
(String name, LoggerContext context) (package private) void
Hierarchy.resetConfiguration
(LoggerContext loggerContext) (package private) void
Hierarchy.shutdown
(LoggerContext context) Constructors in org.apache.log4j with parameters of type LoggerContextModifierConstructorDescriptionprotected
Category
(LoggerContext context, String name) Constructor used by Logger to specify a LoggerContext.(package private)
Logger
(LoggerContext context, String name) -
Uses of LoggerContext in org.apache.log4j.config
Constructors in org.apache.log4j.config with parameters of type LoggerContextModifierConstructorDescriptionPropertiesConfiguration
(LoggerContext loggerContext, Properties properties) Constructs a new instance. -
Uses of LoggerContext in org.apache.log4j.legacy.core
Methods in org.apache.log4j.legacy.core that return LoggerContextModifier and TypeMethodDescriptionstatic LoggerContext
CategoryUtil.getLoggerContext
(Logger logger) Delegates toLogger.getContext()
if appropriate.Methods in org.apache.log4j.legacy.core with parameters of type LoggerContextModifier and TypeMethodDescriptionstatic void
ContextUtil.reconfigure
(LoggerContext loggerContext) Delegates toLoggerContext.reconfigure()
if appropriate.static void
ContextUtil.shutdown
(LoggerContext loggerContext) Delegates toLoggerContext.close()
if appropriate. -
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.core
Classes in org.apache.logging.log4j.core that implement LoggerContextModifier and TypeClassDescriptionclass
The LoggerContext is the anchor for the logging system. -
Uses of LoggerContext in org.apache.logging.log4j.core.async
Classes in org.apache.logging.log4j.core.async that implement LoggerContextModifier and TypeClassDescriptionclass
LoggerContext
that createsAsyncLogger
objects. -
Uses of LoggerContext in org.apache.logging.log4j.core.impl
Methods in org.apache.logging.log4j.core.impl with parameters of type LoggerContextModifier and TypeMethodDescriptionvoid
Log4jContextFactory.removeContext
(LoggerContext context) Removes knowledge of a LoggerContext. -
Uses of LoggerContext in org.apache.logging.log4j.core.selector
Methods in org.apache.logging.log4j.core.selector with parameters of type LoggerContextModifier and TypeMethodDescriptionvoid
ClassLoaderContextSelector.contextShutdown
(LoggerContext loggerContext) -
Uses of LoggerContext in org.apache.logging.log4j.jcl
Methods in org.apache.logging.log4j.jcl that return LoggerContextMethods in org.apache.logging.log4j.jcl with parameters of type LoggerContextModifier and TypeMethodDescriptionprotected org.apache.commons.logging.Log
LogAdapter.newLogger
(String name, LoggerContext context) -
Uses of LoggerContext in org.apache.logging.log4j.jpl
Methods in org.apache.logging.log4j.jpl that return LoggerContextMethods in org.apache.logging.log4j.jpl with parameters of type LoggerContextModifier and TypeMethodDescriptionprotected System.Logger
Log4jSystemLoggerAdapter.newLogger
(String name, LoggerContext context) -
Uses of LoggerContext in org.apache.logging.log4j.jul
Methods in org.apache.logging.log4j.jul that return LoggerContextMethods in org.apache.logging.log4j.jul with parameters of type LoggerContextModifier and TypeMethodDescriptionprotected Logger
ApiLoggerAdapter.newLogger
(String name, LoggerContext context) protected Logger
CoreLoggerAdapter.newLogger
(String name, LoggerContext context) -
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. -
Uses of LoggerContext in org.apache.logging.log4j.taglib
Classes in org.apache.logging.log4j.taglib that implement LoggerContextModifier and TypeClassDescription(package private) final class
This bridge between the tag library and the Log4j API ensures that instances ofLog4jTaglibLogger
are appropriately held in memory and not constantly recreated. -
Uses of LoggerContext in org.apache.logging.log4j.tojul
Classes in org.apache.logging.log4j.tojul that implement LoggerContextModifier and TypeClassDescription(package private) class
Implementation of Log4jLoggerContext
SPI.Fields in org.apache.logging.log4j.tojul declared as LoggerContextModifier and TypeFieldDescriptionprivate static final LoggerContext
JULLoggerContextFactory.context
Methods in org.apache.logging.log4j.tojul that return LoggerContextModifier and TypeMethodDescriptionJULLoggerContextFactory.getContext
(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext) JULLoggerContextFactory.getContext
(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext, URI configLocation, String name) Methods in org.apache.logging.log4j.tojul with parameters of type LoggerContextModifier and TypeMethodDescriptionvoid
JULLoggerContextFactory.removeContext
(LoggerContext ignored) -
Uses of LoggerContext in org.apache.logging.slf4j
Classes in org.apache.logging.slf4j that implement LoggerContextFields in org.apache.logging.slf4j declared as LoggerContextModifier and TypeFieldDescriptionprivate static final LoggerContext
SLF4JLoggerContextFactory.context
Methods in org.apache.logging.slf4j that return LoggerContextModifier and TypeMethodDescriptionprotected LoggerContext
Log4jLoggerFactory.getContext()
SLF4JLoggerContextFactory.getContext
(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext) SLF4JLoggerContextFactory.getContext
(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext, URI configLocation, String name) private LoggerContext
Log4jLoggerFactory.validateContext
(LoggerContext context) Methods in org.apache.logging.slf4j with parameters of type LoggerContextModifier and TypeMethodDescriptionprotected org.slf4j.Logger
Log4jLoggerFactory.newLogger
(String name, LoggerContext context) void
SLF4JLoggerContextFactory.removeContext
(LoggerContext ignored) private LoggerContext
Log4jLoggerFactory.validateContext
(LoggerContext context)