Uses of Interface
org.apache.logging.log4j.spi.LoggerContext
-
Packages that use LoggerContext Package Description org.apache.log4j Log4j 1.x compatibility layer.org.apache.log4j.config Log4j 1.x compatibility layer.org.apache.log4j.legacy.core org.apache.logging.log4j Public API for Log4j 2.org.apache.logging.log4j.core Implementation of Log4j 2.org.apache.logging.log4j.core.async Provides Asynchronous Logger classes and interfaces for low-latency logging.org.apache.logging.log4j.core.impl Log4j 2 private implementation classes.org.apache.logging.log4j.core.selector Log4j 2 Context Selectors.org.apache.logging.log4j.jcl Log4j 2 adapter for Commons Logging.org.apache.logging.log4j.jpl org.apache.logging.log4j.jul org.apache.logging.log4j.simple Simple logging implementation.org.apache.logging.log4j.spi Internal interfaces and classes to be used by authors of logging implementations or for internal use by API classes.org.apache.logging.log4j.tojul Java JDK java.util.logging (JUL) bridge.org.apache.logging.slf4j SLF4J support. -
-
Uses of LoggerContext in org.apache.log4j
Constructors in org.apache.log4j with parameters of type LoggerContext Constructor Description Category(LoggerContext context, String name)
Constructor used by Logger to specify a LoggerContext. -
Uses of LoggerContext in org.apache.log4j.config
Constructors in org.apache.log4j.config with parameters of type LoggerContext Constructor Description PropertiesConfiguration(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 LoggerContext Modifier and Type Method Description static LoggerContext
CategoryUtil. getLoggerContext(Logger logger)
Delegates toLogger.getContext()
if appropriate.Methods in org.apache.log4j.legacy.core with parameters of type LoggerContext Modifier and Type Method Description static 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 LoggerContext Modifier and Type Method Description static 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 LoggerContext Modifier and Type Method Description static 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 LoggerContext Modifier and Type Class Description class
LoggerContext
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 LoggerContext Modifier and Type Class Description class
AsyncLoggerContext
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 LoggerContext Modifier and Type Method Description void
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 LoggerContext Modifier and Type Method Description void
ClassLoaderContextSelector. contextShutdown(LoggerContext loggerContext)
-
Uses of LoggerContext in org.apache.logging.log4j.jcl
Methods in org.apache.logging.log4j.jcl that return LoggerContext Modifier and Type Method Description protected LoggerContext
LogAdapter. getContext()
Methods in org.apache.logging.log4j.jcl with parameters of type LoggerContext Modifier and Type Method Description protected 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 LoggerContext Modifier and Type Method Description protected LoggerContext
Log4jSystemLoggerAdapter. getContext()
Methods in org.apache.logging.log4j.jpl with parameters of type LoggerContext Modifier and Type Method Description protected 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 LoggerContext Modifier and Type Method Description protected LoggerContext
AbstractLoggerAdapter. getContext()
Methods in org.apache.logging.log4j.jul with parameters of type LoggerContext Modifier and Type Method Description protected 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 LoggerContext Modifier and Type Class Description class
SimpleLoggerContext
A simpleLoggerContext
implementation.Methods in org.apache.logging.log4j.simple that return LoggerContext Modifier and Type Method Description LoggerContext
SimpleLoggerContextFactory. getContext(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext)
LoggerContext
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 LoggerContext Modifier and Type Method Description void
SimpleLoggerContextFactory. removeContext(LoggerContext removeContext)
-
Uses of LoggerContext in org.apache.logging.log4j.spi
Fields in org.apache.logging.log4j.spi declared as LoggerContext Modifier and Type Field Description static LoggerContext[]
LoggerContext. EMPTY_ARRAY
Empty array.Fields in org.apache.logging.log4j.spi with type parameters of type LoggerContext Modifier and Type Field Description protected 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 LoggerContext Modifier and Type Method Description protected 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.LoggerContext
LoggerContextFactory. getContext(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext)
Creates aLoggerContext
.LoggerContext
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 LoggerContext Modifier and Type Method Description Set<LoggerContext>
AbstractLoggerAdapter. getLoggerContexts()
For unit testing.Methods in org.apache.logging.log4j.spi with parameters of type LoggerContext Modifier and Type Method Description void
AbstractLoggerAdapter. contextShutdown(LoggerContext loggerContext)
void
LoggerContextShutdownAware. contextShutdown(LoggerContext loggerContext)
ConcurrentMap<String,L>
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.tojul
Methods in org.apache.logging.log4j.tojul that return LoggerContext Modifier and Type Method Description LoggerContext
JULLoggerContextFactory. getContext(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext)
LoggerContext
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 LoggerContext Modifier and Type Method Description void
JULLoggerContextFactory. removeContext(LoggerContext ignored)
-
Uses of LoggerContext in org.apache.logging.slf4j
Classes in org.apache.logging.slf4j that implement LoggerContext Modifier and Type Class Description class
SLF4JLoggerContext
Methods in org.apache.logging.slf4j that return LoggerContext Modifier and Type Method Description protected LoggerContext
Log4jLoggerFactory. getContext()
LoggerContext
SLF4JLoggerContextFactory. getContext(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext)
LoggerContext
SLF4JLoggerContextFactory. getContext(String fqcn, ClassLoader loader, Object externalContext, boolean currentContext, URI configLocation, String name)
Methods in org.apache.logging.slf4j with parameters of type LoggerContext Modifier and Type Method Description protected org.slf4j.Logger
Log4jLoggerFactory. newLogger(String name, LoggerContext context)
void
SLF4JLoggerContextFactory. removeContext(LoggerContext ignored)
-