Package | Description |
---|---|
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.
|
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 |
---|---|
default ExtendedLogger |
LoggerContext.getLogger(Class<?> cls)
Returns an ExtendedLogger using the fully qualified name of the Class as the Logger name.
|
default ExtendedLogger |
LoggerContext.getLogger(Class<?> cls,
MessageFactory messageFactory)
Returns an ExtendedLogger using the fully qualified name of the Class as the Logger name.
|
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.
|
Copyright © 1999-1969 The Apache Software Foundation. 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.