Package | Description |
---|---|
org.apache.log4j |
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.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.slf4j |
SLF4J support.
|
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<LoggerContext,java.util.concurrent.ConcurrentMap<java.lang.String,Logger>> |
Category.CONTEXT_MAP |
Modifier and Type | Method and Description |
---|---|
static LoggerContext |
LogManager.PrivateManager.getContext() |
protected LoggerContext |
Category.PrivateAdapter.getContext() |
static LoggerContext |
Category.PrivateManager.getContext() |
static LoggerContext |
Logger.PrivateManager.getContext() |
Modifier and Type | Method and Description |
---|---|
(package private) static Logger |
Category.getInstance(LoggerContext context,
java.lang.Class clazz) |
(package private) static Logger |
Category.getInstance(LoggerContext context,
java.lang.String name) |
(package private) static Logger |
Category.getInstance(LoggerContext context,
java.lang.String name,
Category.PrivateAdapter factory) |
(package private) static Logger |
Category.getInstance(LoggerContext context,
java.lang.String name,
LoggerFactory factory) |
private static java.util.concurrent.ConcurrentMap<java.lang.String,Logger> |
Category.getLoggersMap(LoggerContext context) |
(package private) static Logger |
Category.getRoot(LoggerContext context) |
protected Logger |
Category.PrivateAdapter.newLogger(java.lang.String name,
LoggerContext context) |
Constructor and Description |
---|
Category(LoggerContext context,
java.lang.String name)
Constructor used by Logger to specify a LoggerContext.
|
Logger(LoggerContext context,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
static LoggerContext |
CategoryUtil.getLoggerContext(Logger logger) |
Modifier and Type | Method and Description |
---|---|
static void |
ContextUtil.reconfigure(LoggerContext ctx) |
Modifier and Type | Method and Description |
---|---|
static LoggerContext |
LogManager.getContext()
Returns the current LoggerContext.
|
static LoggerContext |
LogManager.getContext(boolean currentContext)
Returns a LoggerContext.
|
static LoggerContext |
LogManager.getContext(java.lang.ClassLoader loader,
boolean currentContext)
Returns a LoggerContext.
|
static LoggerContext |
LogManager.getContext(java.lang.ClassLoader loader,
boolean currentContext,
java.lang.Object externalContext)
Returns a LoggerContext.
|
static LoggerContext |
LogManager.getContext(java.lang.ClassLoader loader,
boolean currentContext,
java.lang.Object externalContext,
java.net.URI configLocation)
Returns a LoggerContext.
|
static LoggerContext |
LogManager.getContext(java.lang.ClassLoader loader,
boolean currentContext,
java.lang.Object externalContext,
java.net.URI configLocation,
java.lang.String name)
Returns a LoggerContext.
|
static LoggerContext |
LogManager.getContext(java.lang.ClassLoader loader,
boolean currentContext,
java.net.URI configLocation)
Returns a LoggerContext.
|
protected static LoggerContext |
LogManager.getContext(java.lang.String fqcn,
boolean currentContext)
Returns a LoggerContext
|
protected static LoggerContext |
LogManager.getContext(java.lang.String fqcn,
java.lang.ClassLoader loader,
boolean currentContext)
Returns a LoggerContext
|
protected static LoggerContext |
LogManager.getContext(java.lang.String fqcn,
java.lang.ClassLoader loader,
boolean currentContext,
java.net.URI configLocation,
java.lang.String name)
Returns a LoggerContext
|
Modifier and Type | Method and Description |
---|---|
static void |
LogManager.shutdown(LoggerContext context)
Shutdown the logging system if the logging system supports it.
|
Modifier and Type | Class and Description |
---|---|
class |
LoggerContext
The LoggerContext is the anchor for the logging system.
|
Modifier and Type | Class and Description |
---|---|
class |
AsyncLoggerContext
LoggerContext that creates AsyncLogger objects. |
Modifier and Type | Method and Description |
---|---|
void |
Log4jContextFactory.removeContext(LoggerContext context)
Removes knowledge of a LoggerContext.
|
Modifier and Type | Method and Description |
---|---|
void |
ClassLoaderContextSelector.contextShutdown(LoggerContext loggerContext) |
Modifier and Type | Method and Description |
---|---|
protected LoggerContext |
LogAdapter.getContext() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.commons.logging.Log |
LogAdapter.newLogger(java.lang.String name,
LoggerContext context) |
Modifier and Type | Class and Description |
---|---|
class |
SimpleLoggerContext |
Modifier and Type | Field and Description |
---|---|
private static LoggerContext |
SimpleLoggerContextFactory.context |
Modifier and Type | Method and Description |
---|---|
LoggerContext |
SimpleLoggerContextFactory.getContext(java.lang.String fqcn,
java.lang.ClassLoader loader,
java.lang.Object externalContext,
boolean currentContext) |
LoggerContext |
SimpleLoggerContextFactory.getContext(java.lang.String fqcn,
java.lang.ClassLoader loader,
java.lang.Object externalContext,
boolean currentContext,
java.net.URI configLocation,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
SimpleLoggerContextFactory.removeContext(LoggerContext removeContext) |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<LoggerContext,java.util.concurrent.ConcurrentMap<java.lang.String,L>> |
AbstractLoggerAdapter.registry
A map to store loggers for their given LoggerContexts.
|
Modifier and Type | Method and Description |
---|---|
protected abstract LoggerContext |
AbstractLoggerAdapter.getContext()
Gets the
LoggerContext that should be used to look up or create loggers. |
protected LoggerContext |
AbstractLoggerAdapter.getContext(java.lang.Class<?> callerClass)
Gets the
LoggerContext associated with the given caller class. |
LoggerContext |
LoggerContextFactory.getContext(java.lang.String fqcn,
java.lang.ClassLoader loader,
java.lang.Object externalContext,
boolean currentContext)
Creates a
LoggerContext . |
LoggerContext |
LoggerContextFactory.getContext(java.lang.String fqcn,
java.lang.ClassLoader loader,
java.lang.Object externalContext,
boolean currentContext,
java.net.URI configLocation,
java.lang.String name)
Creates a
LoggerContext . |
Modifier and Type | Method and Description |
---|---|
java.util.Set<LoggerContext> |
AbstractLoggerAdapter.getLoggerContexts()
For unit testing.
|
Modifier and Type | Method and Description |
---|---|
void |
LoggerContextShutdownAware.contextShutdown(LoggerContext loggerContext) |
void |
AbstractLoggerAdapter.contextShutdown(LoggerContext loggerContext) |
java.util.concurrent.ConcurrentMap<java.lang.String,L> |
AbstractLoggerAdapter.getLoggersInContext(LoggerContext context)
Gets or creates the ConcurrentMap of named loggers for a given LoggerContext.
|
protected abstract L |
AbstractLoggerAdapter.newLogger(java.lang.String name,
LoggerContext context)
Creates a new named logger for a given
LoggerContext . |
void |
LoggerContextFactory.removeContext(LoggerContext context)
Removes knowledge of a LoggerContext.
|
Modifier and Type | Class and Description |
---|---|
class |
SLF4JLoggerContext |
Modifier and Type | Field and Description |
---|---|
private static LoggerContext |
SLF4JLoggerContextFactory.context |
Modifier and Type | Method and Description |
---|---|
protected LoggerContext |
Log4jLoggerFactory.getContext() |
LoggerContext |
SLF4JLoggerContextFactory.getContext(java.lang.String fqcn,
java.lang.ClassLoader loader,
java.lang.Object externalContext,
boolean currentContext) |
LoggerContext |
SLF4JLoggerContextFactory.getContext(java.lang.String fqcn,
java.lang.ClassLoader loader,
java.lang.Object externalContext,
boolean currentContext,
java.net.URI configLocation,
java.lang.String name) |
private LoggerContext |
Log4jLoggerFactory.validateContext(LoggerContext context) |
Modifier and Type | Method and Description |
---|---|
protected org.slf4j.Logger |
Log4jLoggerFactory.newLogger(java.lang.String name,
LoggerContext context) |
void |
SLF4JLoggerContextFactory.removeContext(LoggerContext ignored) |
private LoggerContext |
Log4jLoggerFactory.validateContext(LoggerContext context) |