| Package | Description |
|---|---|
| org.apache.logging.log4j |
Public API for Log4j 2.
|
| org.apache.logging.log4j.message |
Public Message Types used 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.
|
| org.apache.logging.log4j.status |
Status API for Log4j 2.
|
| org.apache.logging.log4j.util |
Internal utility classes for the Log4j 2 API.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Logger.debug(Marker
Logs a message with the specific Marker at the
DEBUG level.
|
void |
Logger.debug(Marker
Logs a message with the specific Marker at the
DEBUG level.
|
void |
Logger.debug(Message
Logs a message with the specific Marker at the
DEBUG level.
|
void |
Logger.debug(Message
Logs a message with the specific Marker at the
DEBUG level.
|
void |
Logger.error(Marker
Logs a message with the specific Marker at the
ERROR level.
|
void |
Logger.error(Marker
Logs a message with the specific Marker at the
ERROR level.
|
void |
Logger.error(Message
Logs a message with the specific Marker at the
ERROR level.
|
void |
Logger.error(Message
Logs a message with the specific Marker at the
ERROR level.
|
void |
Logger.fatal(Marker
Logs a message with the specific Marker at the
FATAL level.
|
void |
Logger.fatal(Marker
Logs a message with the specific Marker at the
FATAL level.
|
void |
Logger.fatal(Message
Logs a message with the specific Marker at the
FATAL level.
|
void |
Logger.fatal(Message
Logs a message with the specific Marker at the
FATAL level.
|
void |
Logger.info(Marker
Logs a message with the specific Marker at the
INFO level.
|
void |
Logger.info(Marker
Logs a message with the specific Marker at the
INFO level.
|
void |
Logger.info(Message
Logs a message with the specific Marker at the
INFO level.
|
void |
Logger.info(Message
Logs a message with the specific Marker at the
INFO level.
|
void |
Logger.log(Level
Logs a message with the specific Marker at the given level.
|
void |
Logger.log(Level
Logs a message with the specific Marker at the given level.
|
void |
Logger.log(Level
Logs a message with the specific Marker at the given level.
|
void |
Logger.log(Level
Logs a message with the specific Marker at the given level.
|
void |
Logger.trace(Marker
Logs a message with the specific Marker at the
TRACE level.
|
void |
Logger.trace(Marker
Logs a message with the specific Marker at the
TRACE level.
|
void |
Logger.trace(Message
Logs a message with the specific Marker at the
TRACE level.
|
void |
Logger.trace(Message
Logs a message with the specific Marker at the
TRACE level.
|
void |
Logger.warn(Marker
Logs a message with the specific Marker at the
WARN level.
|
void |
Logger.warn(Marker
Logs a message with the specific Marker at the
WARN level.
|
void |
Logger.warn(Message
Logs a message with the specific Marker at the
WARN level.
|
void |
Logger.warn(Message
Logs a message with the specific Marker at the
WARN level.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
MultiformatMessage
A Message that can render itself in more than one way.
|
| Modifier and Type | Class and Description |
|---|---|
class |
FormattedMessage
Handles messages that contain a format String.
|
class |
LocalizedMessage
Provides some level of compatibility with Log4j 1.x and convenience but is not the recommended way to Localize messages.
|
class |
MapMessage
Represents a Message that consists of a Map.
|
class |
MessageFormatMessage
Handles messages that consist of a format string conforming to java.text.MessageFormat.
|
class |
ObjectArrayMessage
Handles messages that contain an Object[].
|
class |
ObjectMessage
Handles messages that contain an Object.
|
class |
ParameterizedMessage
Handles messages that consist of a format string containing '{}' to represent each replaceable token, and the parameters.
|
class |
SimpleMessage
The simplest possible implementation of Message.
|
class |
StringFormattedMessage
Handles messages that consist of a format string conforming to
Formatter.
|
class |
StructuredDataMessage
Represents a Message that conforms to an RFC 5424 StructuredData element along with the syslog message.
|
class |
ThreadDumpMessage
Captures information about all running Threads.
|
| Modifier and Type | Method and Description |
|---|---|
protected Message |
FormattedMessage.getMessage(String
|
Message |
AbstractMessageFactory.newMessage(Object
|
Message |
MessageFactory.newMessage(Object
Creates a new message based on an Object.
|
Message |
AbstractMessageFactory.newMessage(String
|
Message |
MessageFactory.newMessage(String
Creates a new message based on a String.
|
Message |
ParameterizedMessageFactory.newMessage(String
Creates
ParameterizedMessage instances.
|
abstract Message |
AbstractMessageFactory.newMessage(String
|
Message |
FormattedMessageFactory.newMessage(String
Creates
StringFormattedMessage instances.
|
Message |
SimpleMessageFactory.newMessage(String
Creates
StringFormattedMessage instances.
|
Message |
MessageFormatMessageFactory.newMessage(String
Creates
StringFormattedMessage instances.
|
Message |
StringFormatterMessageFactory.newMessage(String
Creates
StringFormattedMessage instances.
|
Message |
MessageFactory.newMessage(String
Creates a new parameterized message.
|
Message |
ParameterizedNoReferenceMessageFactory.newMessage(String
Creates
SimpleMessage instances containing the formatted parameterized message string.
|
Message |
LocalizedMessageFactory.newMessage(String
Creates
StringFormattedMessage instances.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
SimpleLogger.isEnabled(Level
|
void |
SimpleLogger.logMessage(String
|
| Modifier and Type | Method and Description |
|---|---|
protected Message |
AbstractLogger.catchingMsg(Throwable
|
protected Message |
AbstractLogger.entryMsg(int count, Object
|
protected Message |
AbstractLogger.exitMsg(Object
|
protected Message |
AbstractLogger.throwingMsg(Throwable
|
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractLogger.debug(Marker
|
void |
AbstractLogger.debug(Marker
|
void |
AbstractLogger.debug(Message
|
void |
AbstractLogger.debug(Message
|
void |
AbstractLogger.error(Marker
|
void |
AbstractLogger.error(Marker
|
void |
AbstractLogger.error(Message
|
void |
AbstractLogger.error(Message
|
void |
AbstractLogger.fatal(Marker
|
void |
AbstractLogger.fatal(Marker
|
void |
AbstractLogger.fatal(Message
|
void |
AbstractLogger.fatal(Message
|
void |
AbstractLogger.info(Marker
|
void |
AbstractLogger.info(Marker
|
void |
AbstractLogger.info(Message
|
void |
AbstractLogger.info(Message
|
boolean |
ExtendedLoggerWrapper.isEnabled(Level
Detect if the event would be logged.
|
boolean |
ExtendedLogger.isEnabled(Level
Determines if logging is enabled.
|
void |
AbstractLogger.log(Level
|
void |
AbstractLogger.log(Level
|
void |
AbstractLogger.log(Level
|
void |
AbstractLogger.log(Level
|
void |
ExtendedLogger.logIfEnabled(String
Logs a message if the specified level is active.
|
void |
AbstractLogger.logIfEnabled(String
|
void |
ExtendedLoggerWrapper.logMessage(String
Always log an event.
|
void |
ExtendedLogger.logMessage(String
Always logs a message at the specified level.
|
void |
AbstractLogger.trace(Marker
|
void |
AbstractLogger.trace(Marker
|
void |
AbstractLogger.trace(Message
|
void |
AbstractLogger.trace(Message
|
void |
AbstractLogger.warn(Marker
|
void |
AbstractLogger.warn(Marker
|
void |
AbstractLogger.warn(Message
|
void |
AbstractLogger.warn(Message
|
| Modifier and Type | Method and Description |
|---|---|
Message |
StatusData.getMessage()
Returns the message associated with the event.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
StatusLogger.isEnabled(Level
|
void |
StatusLogger.logMessage(String
Adds an event.
|
| Constructor and Description | |
|---|---|
StatusData(StackTraceElement
Creates the StatusData object.
|
| Modifier and Type | Method and Description |
|---|---|
Message |
MessageSupplier.get()
Gets a Message.
|
static Message |
LambdaUtil.get(MessageSupplier
Returns the Message supplied by the specified function.
|