Package | Description |
---|---|
org.apache.logging.log4j |
Public API for Log4j 2.
|
org.apache.logging.log4j.internal |
This package should be considered private.
|
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 | Method and Description |
---|---|
static Logger |
LogManager.getFormatterLogger()
Returns a formatter Logger using the fully qualified name of the calling Class as the Logger name.
|
static Logger |
LogManager.getFormatterLogger(Class<?> clazz)
Returns a formatter Logger using the fully qualified name of the Class as the Logger name.
|
static Logger |
LogManager.getFormatterLogger(Object value)
Returns a formatter Logger using the fully qualified name of the value's Class as the Logger name.
|
static Logger |
LogManager.getFormatterLogger(String name)
Returns a formatter Logger with the specified name.
|
static Logger |
LogManager.getLogger()
Returns a Logger with the name of the calling class.
|
static Logger |
LogManager.getLogger(Class<?> clazz)
Returns a Logger using the fully qualified name of the Class as the Logger name.
|
static Logger |
LogManager.getLogger(Class<?> clazz,
MessageFactory messageFactory)
Returns a Logger using the fully qualified name of the Class as the Logger name.
|
static Logger |
LogManager.getLogger(MessageFactory messageFactory)
Returns a Logger with the name of the calling class.
|
static Logger |
LogManager.getLogger(Object value)
Returns a Logger using the fully qualified class name of the value as the Logger name.
|
static Logger |
LogManager.getLogger(Object value,
MessageFactory messageFactory)
Returns a Logger using the fully qualified class name of the value as the Logger name.
|
static Logger |
LogManager.getLogger(String name)
Returns a Logger with the specified name.
|
static Logger |
LogManager.getLogger(String name,
MessageFactory messageFactory)
Returns a Logger with the specified name.
|
protected static Logger |
LogManager.getLogger(String fqcn,
String name)
Returns a Logger with the specified name.
|
static Logger |
LogManager.getRootLogger()
Returns the root logger.
|
Constructor and Description |
---|
DefaultLogBuilder(Logger logger) |
DefaultLogBuilder(Logger logger,
Level level) |
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 | Interface and Description |
---|---|
interface |
ExtendedLogger
Extends the
Logger interface with methods that facilitate implementing or extending Logger s. |
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 | 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.