Package | Description |
---|---|
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.jcl |
Log4j 2 adapter for Commons Logging.
|
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.slf4j |
SLF4J support.
|
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 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 LoggerContext
|
protected static LoggerContext |
LogManager.getContext(String fqcn,
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 | Method and Description |
---|---|
protected LoggerContext |
LogAdapter.getContext() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.commons.logging.Log |
LogAdapter.newLogger(String name,
LoggerContext context) |
Modifier and Type | Method and Description |
---|---|
protected LoggerContext |
AbstractLoggerAdapter.getContext() |
Modifier and Type | Method and Description |
---|---|
protected Logger |
CoreLoggerAdapter.newLogger(String name,
LoggerContext context) |
protected Logger |
ApiLoggerAdapter.newLogger(String name,
LoggerContext context) |
Modifier and Type | Class and Description |
---|---|
class |
SimpleLoggerContext |
Modifier and Type | Method and 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) |
Modifier and Type | Method and Description |
---|---|
void |
SimpleLoggerContextFactory.removeContext(LoggerContext removeContext) |
Modifier and Type | Field and Description |
---|---|
protected Map<LoggerContext,ConcurrentMap<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(Class<?> callerClass)
Gets the
LoggerContext associated with the given caller class. |
LoggerContext |
LoggerContextFactory.getContext(String fqcn,
ClassLoader loader,
Object externalContext,
boolean currentContext)
Creates a
LoggerContext . |
LoggerContext |
LoggerContextFactory.getContext(String fqcn,
ClassLoader loader,
Object externalContext,
boolean currentContext,
URI configLocation,
String name)
Creates a
LoggerContext . |
Modifier and Type | Method and Description |
---|---|
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 given
LoggerContext . |
void |
LoggerContextFactory.removeContext(LoggerContext context)
Removes knowledge of a LoggerContext.
|
Modifier and Type | Class and Description |
---|---|
class |
SLF4JLoggerContext |
Modifier and Type | Method and Description |
---|---|
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) |
Modifier and Type | Method and Description |
---|---|
void |
SLF4JLoggerContextFactory.removeContext(LoggerContext ignored) |
Copyright © 1999-2017. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.