Package | Description |
---|---|
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.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.log4j.status |
Status API for Log4j 2.
|
org.apache.logging.slf4j |
SLF4J support.
|
Modifier and Type | Class and Description |
---|---|
class |
Logger
The core implementation of the
Logger interface. |
Modifier and Type | Class and Description |
---|---|
class |
AsyncLogger
AsyncLogger is a logger designed for high throughput and low latency logging.
|
Constructor and Description |
---|
Log4jLog(ExtendedLogger logger) |
Modifier and Type | Class and Description |
---|---|
class |
SimpleLogger
This is the default logger that is used when no suitable logging implementation is available.
|
Modifier and Type | Method and Description |
---|---|
ExtendedLogger |
SimpleLoggerContext.getLogger(String name) |
ExtendedLogger |
SimpleLoggerContext.getLogger(String name,
MessageFactory messageFactory) |
Modifier and Type | Class and Description |
---|---|
class |
LoggerRegistry<T extends ExtendedLogger>
Convenience class to be used by
LoggerContext implementations. |
static class |
LoggerRegistry.ConcurrentMapFactory<T extends ExtendedLogger>
Generates ConcurrentHashMaps for use by the registry to store the Loggers.
|
static interface |
LoggerRegistry.MapFactory<T extends ExtendedLogger>
Interface to control the data structure used by the registry to store the Loggers.
|
static class |
LoggerRegistry.WeakMapFactory<T extends ExtendedLogger>
Generates WeakHashMaps for use by the registry to store the Loggers.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractLogger
Base implementation of a Logger.
|
class |
ExtendedLoggerWrapper
Wrapper class that exposes the protected AbstractLogger methods to support wrapped loggers.
|
Modifier and Type | Field and Description |
---|---|
protected ExtendedLogger |
ExtendedLoggerWrapper.logger
The wrapped Logger.
|
Modifier and Type | Method and Description |
---|---|
ExtendedLogger |
LoggerContext.getLogger(String name)
Returns an ExtendedLogger.
|
ExtendedLogger |
LoggerContext.getLogger(String name,
MessageFactory messageFactory)
Returns an ExtendedLogger.
|
Modifier and Type | Method and Description |
---|---|
static void |
AbstractLogger.checkMessageFactory(ExtendedLogger logger,
MessageFactory messageFactory)
Checks that the message factory a logger was created with is the same as the given messageFactory.
|
Constructor and Description |
---|
ExtendedLoggerWrapper(ExtendedLogger logger,
String name,
MessageFactory messageFactory)
Constructor that wraps and existing Logger.
|
Modifier and Type | Class and Description |
---|---|
class |
StatusLogger
Records events that occur in the logging system.
|
Modifier and Type | Class and Description |
---|---|
class |
SLF4JLogger |
Modifier and Type | Method and Description |
---|---|
ExtendedLogger |
SLF4JLoggerContext.getLogger(String name) |
ExtendedLogger |
SLF4JLoggerContext.getLogger(String name,
MessageFactory messageFactory) |
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.