Package | Description |
---|---|
org.apache.logging.log4j |
Public API 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 | Class and Description |
---|---|
static class |
MarkerManager.Log4jMarker
Consider this class private, it is only public to satisfy Jackson for XML and JSON IO.
|
Modifier and Type | Field and Description |
---|---|
static Marker |
EventLogger.EVENT_MARKER
Define the Event Marker.
|
Modifier and Type | Method and Description |
---|---|
Marker |
Marker.addParents(Marker... markers)
Adds a Marker as a parent to this Marker.
|
Marker |
MarkerManager.Log4jMarker.addParents(Marker... parents) |
static Marker |
MarkerManager.getMarker(String name)
Retrieve a Marker or create a Marker that has no parent.
|
static Marker |
MarkerManager.getMarker(String name,
Marker parent)
Deprecated.
Use the Marker add or set methods to add parent Markers. Will be removed by final GA release.
|
static Marker |
MarkerManager.getMarker(String name,
String parent)
Deprecated.
Use the Marker add or set methods to add parent Markers. Will be removed by final GA release.
|
Marker[] |
Marker.getParents()
Returns a list of parents of this Marker.
|
Marker[] |
MarkerManager.Log4jMarker.getParents() |
Marker |
Marker.setParents(Marker... markers)
Replaces the set of parent Markers with the provided Markers.
|
Marker |
MarkerManager.Log4jMarker.setParents(Marker... markers) |
Modifier and Type | Method and Description |
---|---|
Marker |
Marker.addParents(Marker... markers)
Adds a Marker as a parent to this Marker.
|
Marker |
MarkerManager.Log4jMarker.addParents(Marker... parents) |
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(Marker marker,
Object message)
Logs a message object with the
DEBUG level. |
void |
Logger.debug(Marker marker,
Object message,
Throwable t)
|
void |
Logger.debug(Marker marker,
String message)
Logs a message object with the
DEBUG level. |
void |
Logger.debug(Marker marker,
String message,
Object... params)
Logs a message with parameters at the
DEBUG level. |
void |
Logger.debug(Marker marker,
String message,
Throwable t)
|
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(Marker marker,
Object message)
Logs a message object with the
ERROR level. |
void |
Logger.error(Marker marker,
Object message,
Throwable t)
|
void |
Logger.error(Marker marker,
String message)
Logs a message object with the
ERROR level. |
void |
Logger.error(Marker marker,
String message,
Object... params)
Logs a message with parameters at the
ERROR level. |
void |
Logger.error(Marker marker,
String message,
Throwable t)
|
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(Marker marker,
Object message)
Logs a message object with the
FATAL level. |
void |
Logger.fatal(Marker marker,
Object message,
Throwable t)
|
void |
Logger.fatal(Marker marker,
String message)
Logs a message object with the
FATAL level. |
void |
Logger.fatal(Marker marker,
String message,
Object... params)
Logs a message with parameters at the
FATAL level. |
void |
Logger.fatal(Marker marker,
String message,
Throwable t)
|
static Marker |
MarkerManager.getMarker(String name,
Marker parent)
Deprecated.
Use the Marker add or set methods to add parent Markers. Will be removed by final GA release.
|
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(Marker marker,
Object message)
Logs a message object with the
INFO level. |
void |
Logger.info(Marker marker,
Object message,
Throwable t)
|
void |
Logger.info(Marker marker,
String message)
Logs a message object with the
INFO level. |
void |
Logger.info(Marker marker,
String message,
Object... params)
Logs a message with parameters at the
INFO level. |
void |
Logger.info(Marker marker,
String message,
Throwable t)
|
boolean |
LevelLogger.isDebugEnabled(Marker marker)
Checks whether this Logger is enabled for the
DEBUG Level. |
boolean |
Logger.isDebugEnabled(Marker marker)
Checks whether this Logger is enabled for the
DEBUG Level. |
boolean |
Logger.isEnabled(Level level,
Marker marker)
Checks whether this logger is enabled at the specified level and an optional Marker.
|
boolean |
LevelLogger.isEnabled(Marker marker)
Checks whether this logger is enabled at the specified level and an optional Marker.
|
boolean |
LevelLogger.isErrorEnabled(Marker marker)
Checks whether this Logger is enabled for the
ERROR Level. |
boolean |
Logger.isErrorEnabled(Marker marker)
Checks whether this Logger is enabled for the
ERROR Level. |
boolean |
LevelLogger.isFatalEnabled(Marker marker)
Checks whether this Logger is enabled for the
FATAL Level. |
boolean |
Logger.isFatalEnabled(Marker marker)
Checks whether this Logger is enabled for the
FATAL Level. |
boolean |
LevelLogger.isInfoEnabled(Marker marker)
Checks whether this Logger is enabled for the
INFO Level. |
boolean |
Logger.isInfoEnabled(Marker marker)
Checks whether this Logger is enabled for the
INFO Level. |
boolean |
Marker.isInstanceOf(Marker m)
Checks whether this Marker is an instance of the specified Marker.
|
boolean |
MarkerManager.Log4jMarker.isInstanceOf(Marker marker) |
boolean |
LevelLogger.isTraceEnabled(Marker marker)
Checks whether this Logger is enabled for the
TRACE level. |
boolean |
Logger.isTraceEnabled(Marker marker)
Checks whether this Logger is enabled for the
TRACE level. |
boolean |
LevelLogger.isWarnEnabled(Marker marker)
Checks whether this Logger is enabled for the
WARN Level. |
boolean |
Logger.isWarnEnabled(Marker marker)
Checks whether this Logger is enabled for the
WARN 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,
Marker marker,
Object message)
Logs a message object with the given level.
|
void |
Logger.log(Level level,
Marker marker,
Object message,
Throwable t)
Logs a message at the given level including the stack trace of the
Throwable t passed as
parameter. |
void |
Logger.log(Level level,
Marker marker,
String message)
Logs a message object with the given level.
|
void |
Logger.log(Level level,
Marker marker,
String message,
Object... params)
Logs a message with parameters at the given level.
|
void |
Logger.log(Level level,
Marker marker,
String message,
Throwable t)
Logs a message at the given level including the stack trace of the
Throwable t passed as
parameter. |
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(Marker marker,
Object message)
Logs a message object with the given level.
|
void |
LevelLogger.log(Marker marker,
Object message,
Throwable t)
Logs a message at the given level including the stack trace of the
Throwable t passed as
parameter. |
void |
LevelLogger.log(Marker marker,
String message)
Logs a message object with the given level.
|
void |
LevelLogger.log(Marker marker,
String message,
Object... params)
Logs a message with parameters at the given level.
|
void |
LevelLogger.log(Marker marker,
String message,
Throwable t)
Logs a message at the given level including the stack trace of the
Throwable t passed as
parameter. |
void |
Logger.printf(Level level,
Marker marker,
String format,
Object... params)
Logs a formatted message using the specified format string and arguments.
|
void |
LevelLogger.printf(Marker marker,
String format,
Object... params)
Logs a formatted message using the specified format string and arguments.
|
boolean |
Marker.remove(Marker marker)
Removes the specified Marker as a parent of this Marker.
|
boolean |
MarkerManager.Log4jMarker.remove(Marker parent) |
Marker |
Marker.setParents(Marker... markers)
Replaces the set of parent Markers with the provided Markers.
|
Marker |
MarkerManager.Log4jMarker.setParents(Marker... markers) |
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(Marker marker,
Object message)
Logs a message object with the
TRACE level. |
void |
Logger.trace(Marker marker,
Object message,
Throwable t)
|
void |
Logger.trace(Marker marker,
String message)
Logs a message object with the
TRACE level. |
void |
Logger.trace(Marker marker,
String message,
Object... params)
Logs a message with parameters at the
TRACE level. |
void |
Logger.trace(Marker marker,
String message,
Throwable t)
|
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(Marker marker,
Object message)
Logs a message object with the
WARN level. |
void |
Logger.warn(Marker marker,
Object message,
Throwable t)
|
void |
Logger.warn(Marker marker,
String message)
Logs a message object with the
WARN level. |
void |
Logger.warn(Marker marker,
String message,
Object... params)
Logs a message with parameters at the
WARN level. |
void |
Logger.warn(Marker marker,
String message,
Throwable t)
|
Modifier and Type | Method and Description |
---|---|
boolean |
SimpleLogger.isEnabled(Level level,
Marker marker,
Message msg,
Throwable t) |
boolean |
SimpleLogger.isEnabled(Level level,
Marker marker,
Object msg,
Throwable t) |
boolean |
SimpleLogger.isEnabled(Level level,
Marker marker,
String msg) |
boolean |
SimpleLogger.isEnabled(Level level,
Marker marker,
String msg,
Object... p1) |
boolean |
SimpleLogger.isEnabled(Level level,
Marker marker,
String msg,
Throwable t) |
void |
SimpleLogger.logMessage(String fqcn,
Level level,
Marker marker,
Message msg,
Throwable throwable) |
Modifier and Type | Field and Description |
---|---|
static Marker |
AbstractLogger.CATCHING_MARKER
Marker for catching exceptions.
|
static Marker |
AbstractLogger.ENTRY_MARKER
Marker for method entry tracing.
|
static Marker |
AbstractLogger.EXCEPTION_MARKER
Marker for exception tracing.
|
static Marker |
AbstractLogger.EXIT_MARKER
Marker for method exit tracing.
|
static Marker |
AbstractLogger.FLOW_MARKER
Marker for flow tracing.
|
static Marker |
AbstractLogger.THROWING_MARKER
Marker for throwing exceptions.
|
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(Marker marker,
Object message) |
void |
AbstractLogger.debug(Marker marker,
Object message,
Throwable t) |
void |
AbstractLogger.debug(Marker marker,
String message) |
void |
AbstractLogger.debug(Marker marker,
String message,
Object... params) |
void |
AbstractLogger.debug(Marker marker,
String message,
Throwable t) |
void |
AbstractLogger.error(Marker marker,
Message msg) |
void |
AbstractLogger.error(Marker marker,
Message msg,
Throwable t) |
void |
AbstractLogger.error(Marker marker,
Object message) |
void |
AbstractLogger.error(Marker marker,
Object message,
Throwable t) |
void |
AbstractLogger.error(Marker marker,
String message) |
void |
AbstractLogger.error(Marker marker,
String message,
Object... params) |
void |
AbstractLogger.error(Marker marker,
String message,
Throwable t) |
void |
AbstractLogger.fatal(Marker marker,
Message msg) |
void |
AbstractLogger.fatal(Marker marker,
Message msg,
Throwable t) |
void |
AbstractLogger.fatal(Marker marker,
Object message) |
void |
AbstractLogger.fatal(Marker marker,
Object message,
Throwable t) |
void |
AbstractLogger.fatal(Marker marker,
String message) |
void |
AbstractLogger.fatal(Marker marker,
String message,
Object... params) |
void |
AbstractLogger.fatal(Marker marker,
String message,
Throwable t) |
void |
AbstractLogger.info(Marker marker,
Message msg) |
void |
AbstractLogger.info(Marker marker,
Message msg,
Throwable t) |
void |
AbstractLogger.info(Marker marker,
Object message) |
void |
AbstractLogger.info(Marker marker,
Object message,
Throwable t) |
void |
AbstractLogger.info(Marker marker,
String message) |
void |
AbstractLogger.info(Marker marker,
String message,
Object... params) |
void |
AbstractLogger.info(Marker marker,
String message,
Throwable t) |
boolean |
AbstractLogger.isDebugEnabled(Marker marker) |
boolean |
AbstractLogger.isEnabled(Level level,
Marker marker) |
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.
|
boolean |
ExtendedLogger.isEnabled(Level level,
Marker marker,
Object message,
Throwable t)
Determines if logging is enabled.
|
boolean |
ExtendedLoggerWrapper.isEnabled(Level level,
Marker marker,
Object message,
Throwable t)
Detect if the event would be logged.
|
boolean |
ExtendedLogger.isEnabled(Level level,
Marker marker,
String message)
Determine if logging is enabled.
|
boolean |
ExtendedLoggerWrapper.isEnabled(Level level,
Marker marker,
String message)
Detect if the event would be logged.
|
boolean |
ExtendedLogger.isEnabled(Level level,
Marker marker,
String message,
Object... params)
Determines if logging is enabled.
|
boolean |
ExtendedLoggerWrapper.isEnabled(Level level,
Marker marker,
String message,
Object... params)
Detect if the event would be logged.
|
boolean |
ExtendedLogger.isEnabled(Level level,
Marker marker,
String message,
Throwable t)
Determines if logging is enabled.
|
boolean |
ExtendedLoggerWrapper.isEnabled(Level level,
Marker marker,
String message,
Throwable t)
Detect if the event would be logged.
|
boolean |
AbstractLogger.isErrorEnabled(Marker marker) |
boolean |
AbstractLogger.isFatalEnabled(Marker marker) |
boolean |
AbstractLogger.isInfoEnabled(Marker marker) |
boolean |
AbstractLogger.isTraceEnabled(Marker marker) |
boolean |
AbstractLogger.isWarnEnabled(Marker marker) |
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,
Marker marker,
Object message) |
void |
AbstractLogger.log(Level level,
Marker marker,
Object message,
Throwable t) |
void |
AbstractLogger.log(Level level,
Marker marker,
String message) |
void |
AbstractLogger.log(Level level,
Marker marker,
String message,
Object... params) |
void |
AbstractLogger.log(Level level,
Marker marker,
String message,
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.logIfEnabled(String fqcn,
Level level,
Marker marker,
Object message,
Throwable t)
Logs a message if the specified level is active.
|
void |
AbstractLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
Object message,
Throwable t) |
void |
ExtendedLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message)
Logs a message if the specified level is active.
|
void |
AbstractLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message) |
void |
ExtendedLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Object... params)
Logs a message if the specified level is active.
|
void |
AbstractLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Object... params) |
void |
ExtendedLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Throwable t)
Logs a message if the specified level is active.
|
void |
AbstractLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
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.
|
protected void |
AbstractLogger.logMessage(String fqcn,
Level level,
Marker marker,
Object message,
Throwable t) |
protected void |
AbstractLogger.logMessage(String fqcn,
Level level,
Marker marker,
String message) |
protected void |
AbstractLogger.logMessage(String fqcn,
Level level,
Marker marker,
String message,
Object... params) |
protected void |
AbstractLogger.logMessage(String fqcn,
Level level,
Marker marker,
String message,
Throwable t) |
void |
AbstractLogger.printf(Level level,
Marker marker,
String format,
Object... params) |
void |
AbstractLogger.trace(Marker marker,
Message msg) |
void |
AbstractLogger.trace(Marker marker,
Message msg,
Throwable t) |
void |
AbstractLogger.trace(Marker marker,
Object message) |
void |
AbstractLogger.trace(Marker marker,
Object message,
Throwable t) |
void |
AbstractLogger.trace(Marker marker,
String message) |
void |
AbstractLogger.trace(Marker marker,
String message,
Object... params) |
void |
AbstractLogger.trace(Marker marker,
String message,
Throwable t) |
void |
AbstractLogger.warn(Marker marker,
Message msg) |
void |
AbstractLogger.warn(Marker marker,
Message msg,
Throwable t) |
void |
AbstractLogger.warn(Marker marker,
Object message) |
void |
AbstractLogger.warn(Marker marker,
Object message,
Throwable t) |
void |
AbstractLogger.warn(Marker marker,
String message) |
void |
AbstractLogger.warn(Marker marker,
String message,
Object... params) |
void |
AbstractLogger.warn(Marker marker,
String message,
Throwable t) |
Modifier and Type | Method and Description |
---|---|
boolean |
StatusLogger.isEnabled(Level level,
Marker marker) |
boolean |
StatusLogger.isEnabled(Level level,
Marker marker,
Message message,
Throwable t) |
boolean |
StatusLogger.isEnabled(Level level,
Marker marker,
Object message,
Throwable t) |
boolean |
StatusLogger.isEnabled(Level level,
Marker marker,
String message) |
boolean |
StatusLogger.isEnabled(Level level,
Marker marker,
String message,
Object... params) |
boolean |
StatusLogger.isEnabled(Level level,
Marker marker,
String message,
Throwable t) |
void |
StatusLogger.logMessage(String fqcn,
Level level,
Marker marker,
Message msg,
Throwable t)
Adds an event.
|
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.