| Package | Description |
|---|---|
| org.apache.logging.log4j |
Public API for Log4j 2.
|
| 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.
|
| 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(ClassLoader
Returns a LoggerContext.
|
static LoggerContext |
LogManager.getContext(ClassLoader
Returns a LoggerContext.
|
static LoggerContext |
LogManager.getContext(ClassLoader
Returns a LoggerContext.
|
static LoggerContext |
LogManager.getContext(ClassLoader
Returns a LoggerContext.
|
static LoggerContext |
LogManager.getContext(ClassLoader
Returns a LoggerContext.
|
protected static LoggerContext |
LogManager.getContext(String
Returns a LoggerContext
|
protected static LoggerContext |
LogManager.getContext(String
Returns a LoggerContext
|
| Modifier and Type | Class and Description |
|---|---|
class |
SimpleLoggerContext
|
| Modifier and Type | Method and Description |
|---|---|
LoggerContext |
SimpleLoggerContextFactory.getContext(String
|
LoggerContext |
SimpleLoggerContextFactory.getContext(String
|
| Modifier and Type | Method and Description |
|---|---|
void |
SimpleLoggerContextFactory.removeContext(LoggerContext
|
| Modifier and Type | Field and Description |
|---|---|
protected Map |
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(Class
Gets the
LoggerContext associated with the given caller class.
|
LoggerContext |
LoggerContextFactory.getContext(String
Creates a
LoggerContext.
|
LoggerContext |
LoggerContextFactory.getContext(String
Creates a
LoggerContext.
|
| Modifier and Type | Method and Description |
|---|---|
ConcurrentMap |
AbstractLoggerAdapter.getLoggersInContext(LoggerContext
Gets or creates the ConcurrentMap of named loggers for a given LoggerContext.
|
protected abstract L |
AbstractLoggerAdapter.newLogger(String
Creates a new named logger for a given
LoggerContext.
|
void |
LoggerContextFactory.removeContext(LoggerContext
Removes knowledge of a LoggerContext.
|