Package | Description |
---|---|
org.apache.logging.log4j |
Public API for Log4j 2.0.
|
org.apache.logging.log4j.message |
Public Message Types used for Log4j 2.0.
|
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.0.
|
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 |
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
This class 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 |
MessageFactory.newMessage(Object message)
Creates a new message based on an Object.
|
Message |
AbstractMessageFactory.newMessage(Object message) |
Message |
MessageFactory.newMessage(String message)
Creates a new message based on a String.
|
Message |
AbstractMessageFactory.newMessage(String message) |
Message |
StringFormatterMessageFactory.newMessage(String message,
Object... params)
Creates
StringFormattedMessage instances. |
Message |
ParameterizedMessageFactory.newMessage(String message,
Object... params)
Creates
ParameterizedMessage instances. |
Message |
MessageFormatMessageFactory.newMessage(String message,
Object... params)
Creates
StringFormattedMessage instances. |
Message |
MessageFactory.newMessage(String message,
Object... params)
Creates a new parameterized message.
|
Message |
LocalizedMessageFactory.newMessage(String message,
Object... params)
Creates
StringFormattedMessage instances. |
Message |
FormattedMessageFactory.newMessage(String message,
Object... params)
Creates
StringFormattedMessage instances. |
abstract Message |
AbstractMessageFactory.newMessage(String message,
Object... params) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
SimpleLogger.isEnabled(Level level,
Marker marker,
Message msg,
Throwable t) |
void |
SimpleLogger.log(Marker marker,
String fqcn,
Level level,
Message msg,
Throwable throwable) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractLogger.debug(Marker marker,
Message msg)
Logs a message with the specific Marker at the DEBUG level.
|
void |
AbstractLogger.debug(Marker marker,
Message msg,
Throwable t)
Logs a message with the specific Marker at the DEBUG level.
|
void |
AbstractLogger.debug(Message msg)
Logs a message with the specific Marker at the DEBUG level.
|
void |
AbstractLogger.debug(Message msg,
Throwable t)
Logs a message with the specific Marker at the DEBUG level.
|
void |
AbstractLogger.error(Marker marker,
Message msg)
Logs a message with the specific Marker at the
ERROR level. |
void |
AbstractLogger.error(Marker marker,
Message msg,
Throwable t)
Logs a message with the specific Marker at the
ERROR level. |
void |
AbstractLogger.error(Message msg)
Logs a message with the specific Marker at the
ERROR level. |
void |
AbstractLogger.error(Message msg,
Throwable t)
Logs a message with the specific Marker at the
ERROR level. |
void |
AbstractLogger.fatal(Marker marker,
Message msg)
Logs a message with the specific Marker at the FATAL level.
|
void |
AbstractLogger.fatal(Marker marker,
Message msg,
Throwable t)
Logs a message with the specific Marker at the FATAL level.
|
void |
AbstractLogger.fatal(Message msg)
Logs a message with the specific Marker at the FATAL level.
|
void |
AbstractLogger.fatal(Message msg,
Throwable t)
Logs a message with the specific Marker at the FATAL level.
|
void |
AbstractLogger.info(Marker marker,
Message msg)
Logs a message with the specific Marker at the INFO level.
|
void |
AbstractLogger.info(Marker marker,
Message msg,
Throwable t)
Logs a message with the specific Marker at the INFO level.
|
void |
AbstractLogger.info(Message msg)
Logs a message with the specific Marker at the TRACE level.
|
void |
AbstractLogger.info(Message msg,
Throwable t)
Logs a message with the specific Marker at the INFO level.
|
boolean |
AbstractLoggerWrapper.isEnabled(Level level,
Marker marker,
Message data,
Throwable t)
Detect if the event would be logged.
|
protected abstract boolean |
AbstractLogger.isEnabled(Level level,
Marker marker,
Message data,
Throwable t)
Determine if logging is enabled.
|
void |
AbstractLogger.log(Level level,
Marker marker,
Message msg)
Logs a message with the specific Marker at the given level.
|
void |
AbstractLogger.log(Level level,
Marker marker,
Message msg,
Throwable t)
Logs a message with the specific Marker at the given level.
|
void |
AbstractLogger.log(Level level,
Message msg)
Logs a message with the specific Marker at the given level.
|
void |
AbstractLogger.log(Level level,
Message msg,
Throwable t)
Logs a message with the specific Marker at the given level.
|
void |
AbstractLoggerWrapper.log(Marker marker,
String fqcn,
Level level,
Message data,
Throwable t)
Log an event.
|
abstract void |
AbstractLogger.log(Marker marker,
String fqcn,
Level level,
Message data,
Throwable t)
Logs a message with location information.
|
void |
AbstractLogger.trace(Marker marker,
Message msg)
Logs a message with the specific Marker at the TRACE level.
|
void |
AbstractLogger.trace(Marker marker,
Message msg,
Throwable t)
Logs a message with the specific Marker at the TRACE level.
|
void |
AbstractLogger.trace(Message msg)
Logs a message with the specific Marker at the TRACE level.
|
void |
AbstractLogger.trace(Message msg,
Throwable t)
Logs a message with the specific Marker at the TRACE level.
|
void |
AbstractLogger.warn(Marker marker,
Message msg)
Logs a message with the specific Marker at the WARN level.
|
void |
AbstractLogger.warn(Marker marker,
Message msg,
Throwable t)
Logs a message with the specific Marker at the WARN level.
|
void |
AbstractLogger.warn(Message msg)
Logs a message with the specific Marker at the WARN level.
|
void |
AbstractLogger.warn(Message msg,
Throwable t)
Logs a message with the specific Marker at the WARN level.
|
Modifier and Type | Method and Description |
---|---|
Message |
StatusData.getMessage()
Returns the message associated with the event.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
StatusLogger.isEnabled(Level level,
Marker marker,
Message data,
Throwable t) |
void |
StatusLogger.log(Marker marker,
String fqcn,
Level level,
Message msg,
Throwable t)
Add an event.
|
Constructor and Description |
---|
StatusData(StackTraceElement caller,
Level level,
Message msg,
Throwable t)
Creates the StatusData object.
|
Copyright © 1999-2014 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.