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.spi |
Internal interfaces and classes to be used by authors of logging implementations or for internal use by
API classes.
|
org.apache.logging.log4j.util |
Internal utility classes for the Log4j 2 API.
|
Modifier and Type | Method and Description |
---|---|
void |
Logger.debug(Marker marker,
String message,
Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is the
DEBUG level. |
void |
Logger.debug(Marker marker,
Supplier<?> messageSupplier)
Logs a message which is only to be constructed if the logging level is the
DEBUG level with
the specified Marker. |
void |
Logger.debug(Marker marker,
Supplier<?> messageSupplier,
Throwable throwable)
|
void |
Logger.debug(String message,
Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is the
DEBUG level. |
void |
Logger.debug(Supplier<?> messageSupplier)
Logs a message which is only to be constructed if the logging level is the
DEBUG level. |
void |
Logger.debug(Supplier<?> messageSupplier,
Throwable throwable)
|
void |
Logger.error(Marker marker,
String message,
Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is the
ERROR level. |
void |
Logger.error(Marker marker,
Supplier<?> messageSupplier)
Logs a message which is only to be constructed if the logging level is the
ERROR level with
the specified Marker. |
void |
Logger.error(Marker marker,
Supplier<?> messageSupplier,
Throwable throwable)
|
void |
Logger.error(String message,
Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is the
ERROR level. |
void |
Logger.error(Supplier<?> messageSupplier)
Logs a message which is only to be constructed if the logging level is the
ERROR level. |
void |
Logger.error(Supplier<?> messageSupplier,
Throwable throwable)
|
void |
Logger.fatal(Marker marker,
String message,
Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is the
FATAL level. |
void |
Logger.fatal(Marker marker,
Supplier<?> messageSupplier)
Logs a message which is only to be constructed if the logging level is the
FATAL level with
the specified Marker. |
void |
Logger.fatal(Marker marker,
Supplier<?> messageSupplier,
Throwable throwable)
|
void |
Logger.fatal(String message,
Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is the
FATAL level. |
void |
Logger.fatal(Supplier<?> messageSupplier)
Logs a message which is only to be constructed if the logging level is the
FATAL level. |
void |
Logger.fatal(Supplier<?> messageSupplier,
Throwable throwable)
|
void |
Logger.info(Marker marker,
String message,
Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is the
INFO level. |
void |
Logger.info(Marker marker,
Supplier<?> messageSupplier)
Logs a message which is only to be constructed if the logging level is the
INFO level with the
specified Marker. |
void |
Logger.info(Marker marker,
Supplier<?> messageSupplier,
Throwable throwable)
|
void |
Logger.info(String message,
Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is the
INFO level. |
void |
Logger.info(Supplier<?> messageSupplier)
Logs a message which is only to be constructed if the logging level is the
INFO level. |
void |
Logger.info(Supplier<?> messageSupplier,
Throwable throwable)
|
void |
Logger.log(Level level,
Marker marker,
String message,
Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is the specified level.
|
void |
Logger.log(Level level,
Marker marker,
Supplier<?> messageSupplier)
Logs a message (only to be constructed if the logging level is the specified level) with the specified Marker.
|
void |
Logger.log(Level level,
Marker marker,
Supplier<?> messageSupplier,
Throwable throwable)
Logs a message (only to be constructed if the logging level is the specified level) with the specified Marker and
including the stack log of the
Throwable throwable passed as parameter. |
void |
Logger.log(Level level,
String message,
Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is the specified level.
|
void |
Logger.log(Level level,
Supplier<?> messageSupplier)
Logs a message which is only to be constructed if the logging level is the specified level.
|
void |
Logger.log(Level level,
Supplier<?> messageSupplier,
Throwable throwable)
Logs a message (only to be constructed if the logging level is the specified level) including the stack log of
the
Throwable throwable passed as parameter. |
default void |
LogBuilder.log(String message,
Supplier<?>... params)
Causes all the data collected to be logged along with the message and parameters.
|
default void |
LogBuilder.log(Supplier<Message> messageSupplier)
Causes all the data collected to be logged along with the message.
|
void |
Logger.trace(Marker marker,
String message,
Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is the
TRACE level. |
void |
Logger.trace(Marker marker,
Supplier<?> messageSupplier)
Logs a message which is only to be constructed if the logging level is the
TRACE level with
the specified Marker. |
void |
Logger.trace(Marker marker,
Supplier<?> messageSupplier,
Throwable throwable)
|
void |
Logger.trace(String message,
Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is the
TRACE level. |
void |
Logger.trace(Supplier<?> messageSupplier)
Logs a message which is only to be constructed if the logging level is the
TRACE level. |
void |
Logger.trace(Supplier<?> messageSupplier,
Throwable throwable)
|
EntryMessage |
Logger.traceEntry(String format,
Supplier<?>... paramSuppliers)
Logs entry to a method along with its parameters.
|
EntryMessage |
Logger.traceEntry(Supplier<?>... paramSuppliers)
Logs entry to a method along with its parameters.
|
void |
Logger.warn(Marker marker,
String message,
Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is the
WARN level. |
void |
Logger.warn(Marker marker,
Supplier<?> messageSupplier)
Logs a message which is only to be constructed if the logging level is the
WARN level with the
specified Marker. |
void |
Logger.warn(Marker marker,
Supplier<?> messageSupplier,
Throwable throwable)
|
void |
Logger.warn(String message,
Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is the
WARN level. |
void |
Logger.warn(Supplier<?> messageSupplier)
Logs a message which is only to be constructed if the logging level is the
WARN level. |
void |
Logger.warn(Supplier<?> messageSupplier,
Throwable throwable)
|
Modifier and Type | Method and Description |
---|---|
void |
DefaultLogBuilder.log(String message,
Supplier<?>... params) |
void |
DefaultLogBuilder.log(Supplier<Message> messageSupplier) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractLogger.debug(Marker marker,
String message,
Supplier<?>... paramSuppliers) |
void |
AbstractLogger.debug(Marker marker,
Supplier<?> messageSupplier) |
void |
AbstractLogger.debug(Marker marker,
Supplier<?> messageSupplier,
Throwable throwable) |
void |
AbstractLogger.debug(String message,
Supplier<?>... paramSuppliers) |
void |
AbstractLogger.debug(Supplier<?> messageSupplier) |
void |
AbstractLogger.debug(Supplier<?> messageSupplier,
Throwable throwable) |
protected EntryMessage |
AbstractLogger.enter(String fqcn,
String format,
Supplier<?>... paramSuppliers)
Logs entry to a method with location information.
|
protected EntryMessage |
AbstractLogger.entryMsg(String format,
Supplier<?>... paramSuppliers) |
void |
AbstractLogger.error(Marker marker,
String message,
Supplier<?>... paramSuppliers) |
void |
AbstractLogger.error(Marker marker,
Supplier<?> messageSupplier) |
void |
AbstractLogger.error(Marker marker,
Supplier<?> messageSupplier,
Throwable throwable) |
void |
AbstractLogger.error(String message,
Supplier<?>... paramSuppliers) |
void |
AbstractLogger.error(Supplier<?> messageSupplier) |
void |
AbstractLogger.error(Supplier<?> messageSupplier,
Throwable throwable) |
void |
AbstractLogger.fatal(Marker marker,
String message,
Supplier<?>... paramSuppliers) |
void |
AbstractLogger.fatal(Marker marker,
Supplier<?> messageSupplier) |
void |
AbstractLogger.fatal(Marker marker,
Supplier<?> messageSupplier,
Throwable throwable) |
void |
AbstractLogger.fatal(String message,
Supplier<?>... paramSuppliers) |
void |
AbstractLogger.fatal(Supplier<?> messageSupplier) |
void |
AbstractLogger.fatal(Supplier<?> messageSupplier,
Throwable throwable) |
void |
AbstractLogger.info(Marker marker,
String message,
Supplier<?>... paramSuppliers) |
void |
AbstractLogger.info(Marker marker,
Supplier<?> messageSupplier) |
void |
AbstractLogger.info(Marker marker,
Supplier<?> messageSupplier,
Throwable throwable) |
void |
AbstractLogger.info(String message,
Supplier<?>... paramSuppliers) |
void |
AbstractLogger.info(Supplier<?> messageSupplier) |
void |
AbstractLogger.info(Supplier<?> messageSupplier,
Throwable throwable) |
void |
AbstractLogger.log(Level level,
Marker marker,
String message,
Supplier<?>... paramSuppliers) |
void |
AbstractLogger.log(Level level,
Marker marker,
Supplier<?> messageSupplier) |
void |
AbstractLogger.log(Level level,
Marker marker,
Supplier<?> messageSupplier,
Throwable throwable) |
void |
AbstractLogger.log(Level level,
String message,
Supplier<?>... paramSuppliers) |
void |
AbstractLogger.log(Level level,
Supplier<?> messageSupplier) |
void |
AbstractLogger.log(Level level,
Supplier<?> messageSupplier,
Throwable throwable) |
void |
ExtendedLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Supplier<?>... paramSuppliers)
Logs a message whose parameters are only to be constructed if the specified level is active.
|
void |
AbstractLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Supplier<?>... paramSuppliers) |
void |
ExtendedLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
Supplier<?> msgSupplier,
Throwable t)
Logs a message which is only to be constructed if the specified level is active.
|
void |
AbstractLogger.logIfEnabled(String fqcn,
Level level,
Marker marker,
Supplier<?> messageSupplier,
Throwable throwable) |
protected void |
AbstractLogger.logMessage(String fqcn,
Level level,
Marker marker,
String message,
Supplier<?>... paramSuppliers) |
protected void |
AbstractLogger.logMessage(String fqcn,
Level level,
Marker marker,
Supplier<?> messageSupplier,
Throwable throwable) |
void |
AbstractLogger.trace(Marker marker,
String message,
Supplier<?>... paramSuppliers) |
void |
AbstractLogger.trace(Marker marker,
Supplier<?> messageSupplier) |
void |
AbstractLogger.trace(Marker marker,
Supplier<?> messageSupplier,
Throwable throwable) |
void |
AbstractLogger.trace(String message,
Supplier<?>... paramSuppliers) |
void |
AbstractLogger.trace(Supplier<?> messageSupplier) |
void |
AbstractLogger.trace(Supplier<?> messageSupplier,
Throwable throwable) |
EntryMessage |
AbstractLogger.traceEntry(String format,
Supplier<?>... paramSuppliers) |
EntryMessage |
AbstractLogger.traceEntry(Supplier<?>... paramSuppliers) |
void |
AbstractLogger.warn(Marker marker,
String message,
Supplier<?>... paramSuppliers) |
void |
AbstractLogger.warn(Marker marker,
Supplier<?> messageSupplier) |
void |
AbstractLogger.warn(Marker marker,
Supplier<?> messageSupplier,
Throwable throwable) |
void |
AbstractLogger.warn(String message,
Supplier<?>... paramSuppliers) |
void |
AbstractLogger.warn(Supplier<?> messageSupplier) |
void |
AbstractLogger.warn(Supplier<?> messageSupplier,
Throwable throwable) |
Modifier and Type | Method and Description |
---|---|
static Object |
LambdaUtil.get(Supplier<?> supplier)
Returns the result of evaluating the specified function.
|
static Object[] |
LambdaUtil.getAll(Supplier<?>... suppliers)
Converts an array of lambda expressions into an array of their evaluation results.
|
Boolean |
PropertiesUtil.getBooleanProperty(String[] prefixes,
String key,
Supplier<Boolean> supplier)
Retrieves a property that may be prefixed by more than one string.
|
Duration |
PropertiesUtil.getDurationProperty(String[] prefixes,
String key,
Supplier<Duration> supplier)
Retrieves a property that may be prefixed by more than one string.
|
Integer |
PropertiesUtil.getIntegerProperty(String[] prefixes,
String key,
Supplier<Integer> supplier)
Retrieves a property that may be prefixed by more than one string.
|
Long |
PropertiesUtil.getLongProperty(String[] prefixes,
String key,
Supplier<Long> supplier)
Retrieves a property that may be prefixed by more than one string.
|
static Message |
LambdaUtil.getMessage(Supplier<?> supplier,
MessageFactory messageFactory)
Returns a Message, either the value supplied by the specified function, or a new Message created by the specified
Factory.
|
String |
PropertiesUtil.getStringProperty(String[] prefixes,
String key,
Supplier<String> supplier)
Retrieves a property that may be prefixed by more than one string.
|
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.