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.
|
Modifier and Type | Method and Description |
---|---|
void |
Logger.debug(Marker marker,
Message msg)
Logs a message with the specific Marker at the
DEBUG level. |
void |
Logger.debug(Marker marker,
Message msg,
Throwable t)
Logs a message with the specific Marker at the
DEBUG level. |
void |
Logger.debug(Message msg)
Logs a message with the specific Marker at the
DEBUG level. |
void |
Logger.debug(Message msg,
Throwable t)
Logs a message with the specific Marker at the
DEBUG level. |
void |
Logger.error(Marker marker,
Message msg)
Logs a message with the specific Marker at the
ERROR level. |
void |
Logger.error(Marker marker,
Message msg,
Throwable t)
Logs a message with the specific Marker at the
ERROR level. |
void |
Logger.error(Message msg)
Logs a message with the specific Marker at the
ERROR level. |
void |
Logger.error(Message msg,
Throwable t)
Logs a message with the specific Marker at the
ERROR level. |
void |
Logger.fatal(Marker marker,
Message msg)
Logs a message with the specific Marker at the
FATAL level. |
void |
Logger.fatal(Marker marker,
Message msg,
Throwable t)
Logs a message with the specific Marker at the
FATAL level. |
void |
Logger.fatal(Message msg)
Logs a message with the specific Marker at the
FATAL level. |
void |
Logger.fatal(Message msg,
Throwable t)
Logs a message with the specific Marker at the
FATAL level. |
void |
Logger.info(Marker marker,
Message msg)
Logs a message with the specific Marker at the
INFO level. |
void |
Logger.info(Marker marker,
Message msg,
Throwable t)
Logs a message with the specific Marker at the
INFO level. |
void |
Logger.info(Message msg)
Logs a message with the specific Marker at the
INFO level. |
void |
Logger.info(Message msg,
Throwable t)
Logs a message with the specific Marker at the
INFO level. |
void |
Logger.log(Level level,
Marker marker,
Message msg)
Logs a message with the specific Marker at the given level.
|
void |
Logger.log(Level level,
Marker marker,
Message msg,
Throwable t)
Logs a message with the specific Marker at the given level.
|
void |
Logger.log(Level level,
Message msg)
Logs a message with the specific Marker at the given level.
|
void |
Logger.log(Level level,
Message msg,
Throwable t)
Logs a message with the specific Marker at the given level.
|
void |
LevelLogger.log(Marker marker,
Message msg)
Logs a message with the specific Marker at the given level.
|
void |
LevelLogger.log(Marker marker,
Message msg,
Throwable t)
Logs a message with the specific Marker at the given level.
|
void |
LevelLogger.log(Message msg)
Logs a message with the specific Marker at the given level.
|
void |
LevelLogger.log(Message msg,
Throwable t)
Logs a message with the specific Marker at the given level.
|
void |
Logger.trace(Marker marker,
Message msg)
Logs a message with the specific Marker at the
TRACE level. |
void |
Logger.trace(Marker marker,
Message msg,
Throwable t)
Logs a message with the specific Marker at the
TRACE level. |
void |
Logger.trace(Message msg)
Logs a message with the specific Marker at the
TRACE level. |
void |
Logger.trace(Message msg,
Throwable t)
Logs a message with the specific Marker at the
TRACE level. |
void |
Logger.warn(Marker marker,
Message msg)
Logs a message with the specific Marker at the
WARN level. |
void |
Logger.warn(Marker marker,
Message msg,
Throwable t)
Logs a message with the specific Marker at the
WARN level. |
void |
Logger.warn(Message msg)
Logs a message with the specific Marker at the
WARN level. |
void |
Logger.warn(Message msg,
Throwable t)
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 |
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 msgPattern,
Object[] args,
Throwable throwable) |
Message |
AbstractMessageFactory.newMessage(Object message) |
Message |
MessageFactory.newMessage(Object message)
Creates a new message based on an Object.
|
Message |
AbstractMessageFactory.newMessage(String message) |
Message |
MessageFactory.newMessage(String message)
Creates a new message based on a String.
|
Message |
LocalizedMessageFactory.newMessage(String key,
Object... params)
Creates
StringFormattedMessage instances. |
abstract Message |
AbstractMessageFactory.newMessage(String message,
Object... params) |
Message |
ParameterizedMessageFactory.newMessage(String message,
Object... params)
Creates
ParameterizedMessage instances. |
Message |
FormattedMessageFactory.newMessage(String message,
Object... params)
Creates
StringFormattedMessage instances. |
Message |
MessageFormatMessageFactory.newMessage(String message,
Object... params)
Creates
StringFormattedMessage instances. |
Message |
StringFormatterMessageFactory.newMessage(String message,
Object... params)
Creates
StringFormattedMessage instances. |
Message |
MessageFactory.newMessage(String message,
Object... params)
Creates a new parameterized message.
|
Modifier and Type | Method and Description |
---|---|
boolean |
SimpleLogger.isEnabled(Level level,
Marker marker,
Message msg,
Throwable t) |
void |
SimpleLogger.logMessage(String fqcn,
Level level,
Marker marker,
Message msg,
Throwable throwable) |
Modifier and Type | Method and Description |
---|---|
protected Message |
AbstractLogger.catchingMsg(Throwable t) |
protected Message |
AbstractLogger.entryMsg(int count,
Object... params) |
protected Message |
AbstractLogger.exitMsg(Object result) |
protected Message |
AbstractLogger.throwingMsg(Throwable t) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractLogger.debug(Marker marker,
Message msg) |
void |
AbstractLogger.debug(Marker marker,
Message msg,
Throwable t) |
void |
AbstractLogger.debug(Message msg) |
void |
AbstractLogger.debug(Message msg,
Throwable t) |
void |
AbstractLogger.error(Marker marker,
Message msg) |
void |
AbstractLogger.error(Marker marker,
Message msg,
Throwable t) |
void |
AbstractLogger.error(Message msg) |
void |
AbstractLogger.error(Message msg,
Throwable t) |
void |
AbstractLogger.fatal(Marker marker,
Message msg) |
void |
AbstractLogger.fatal(Marker marker,
Message msg,
Throwable t) |
void |
AbstractLogger.fatal(Message msg) |
void |
AbstractLogger.fatal(Message msg,
Throwable t) |
void |
AbstractLogger.info(Marker marker,
Message msg) |
void |
AbstractLogger.info(Marker marker,
Message msg,
Throwable t) |
void |
AbstractLogger.info(Message msg) |
void |
AbstractLogger.info(Message msg,
Throwable t) |
boolean |
ExtendedLogger.isEnabled(Level level,
Marker marker,
Message message,
Throwable t)
Determines if logging is enabled.
|
boolean |
ExtendedLoggerWrapper.isEnabled(Level level,
Marker marker,
Message message,
Throwable t)
Detect if the event would be logged.
|
void |
AbstractLogger.log(Level level,
Marker marker,
Message msg) |
void |
AbstractLogger.log(Level level,
Marker marker,
Message msg,
Throwable t) |
void |
AbstractLogger.log(Level level,
Message msg) |
void |
AbstractLogger.log(Level level,
Message msg,
Throwable t) |
void |
ExtendedLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
Message message,
Throwable t)
Logs a message if the specified level is active.
|
void |
AbstractLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
Message msg,
Throwable t) |
void |
ExtendedLogger.logMessage(String fqcn,
Level level,
Marker marker,
Message message,
Throwable t)
Always logs a message at the specified level.
|
void |
ExtendedLoggerWrapper.logMessage(String fqcn,
Level level,
Marker marker,
Message message,
Throwable t)
Always log an event.
|
void |
AbstractLogger.trace(Marker marker,
Message msg) |
void |
AbstractLogger.trace(Marker marker,
Message msg,
Throwable t) |
void |
AbstractLogger.trace(Message msg) |
void |
AbstractLogger.trace(Message msg,
Throwable t) |
void |
AbstractLogger.warn(Marker marker,
Message msg) |
void |
AbstractLogger.warn(Marker marker,
Message msg,
Throwable t) |
void |
AbstractLogger.warn(Message msg) |
void |
AbstractLogger.warn(Message msg,
Throwable t) |
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 level,
Marker marker,
Message message,
Throwable t) |
void |
StatusLogger.logMessage(String fqcn,
Level level,
Marker marker,
Message msg,
Throwable t)
Adds an event.
|
Constructor and Description |
---|
StatusData(StackTraceElement caller,
Level level,
Message msg,
Throwable t)
Creates the StatusData object.
|
Copyright © 1999-2021 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.