| Package | Description |
|---|---|
| org.apache.log4j |
Log4j 1.x compatibility layer.
|
| 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.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 | Method and Description |
|---|---|
protected LoggerContext |
Category.PrivateAdapter.getContext() |
| Modifier and Type | Method and Description |
|---|---|
protected Logger |
Category.PrivateAdapter.newLogger(java.lang.String name,
LoggerContext context) |
| 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
|
| 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 | 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.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) |
| Modifier and Type | Method and Description |
|---|---|
protected org.slf4j.Logger |
Log4jLoggerFactory.newLogger(java.lang.String name,
LoggerContext context) |
void |
SLF4JLoggerContextFactory.removeContext(LoggerContext ignored) |