Package | Description |
---|---|
org.apache.logging.log4j |
Public API for Log4j 2.
|
org.apache.logging.log4j.core |
Implementation of Log4j 2.
|
org.apache.logging.log4j.core.async |
Provides Asynchronous Logger classes and interfaces for low-latency logging.
|
org.apache.logging.log4j.core.config |
Configuration of Log4j 2.
|
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<?> msgSupplier)
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<?> msgSupplier,
Throwable t)
|
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<?> msgSupplier)
Logs a message which is only to be constructed if the logging level is the
DEBUG level. |
void |
Logger.debug(Supplier<?> msgSupplier,
Throwable t)
|
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<?> msgSupplier)
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<?> msgSupplier,
Throwable t)
|
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<?> msgSupplier)
Logs a message which is only to be constructed if the logging level is the
ERROR level. |
void |
Logger.error(Supplier<?> msgSupplier,
Throwable t)
|
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<?> msgSupplier)
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<?> msgSupplier,
Throwable t)
|
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<?> msgSupplier)
Logs a message which is only to be constructed if the logging level is the
FATAL level. |
void |
Logger.fatal(Supplier<?> msgSupplier,
Throwable t)
|
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<?> msgSupplier)
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<?> msgSupplier,
Throwable t)
|
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<?> msgSupplier)
Logs a message which is only to be constructed if the logging level is the
INFO level. |
void |
Logger.info(Supplier<?> msgSupplier,
Throwable t)
|
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<?> msgSupplier)
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<?> msgSupplier,
Throwable t)
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 t 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<?> msgSupplier)
Logs a message which is only to be constructed if the logging level is the specified level.
|
void |
Logger.log(Level level,
Supplier<?> msgSupplier,
Throwable t)
Logs a message (only to be constructed if the logging level is the specified level) including the stack log of
the
Throwable t passed as parameter. |
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<?> msgSupplier)
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<?> msgSupplier,
Throwable t)
|
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<?> msgSupplier)
Logs a message which is only to be constructed if the logging level is the
TRACE level. |
void |
Logger.trace(Supplier<?> msgSupplier,
Throwable t)
|
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<?> msgSupplier)
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<?> msgSupplier,
Throwable t)
|
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<?> msgSupplier)
Logs a message which is only to be constructed if the logging level is the
WARN level. |
void |
Logger.warn(Supplier<?> msgSupplier,
Throwable t)
|
Modifier and Type | Class and Description |
---|---|
class |
Logger
The core implementation of the
Logger interface. |
Modifier and Type | Class and Description |
---|---|
class |
AsyncLogger
AsyncLogger is a logger designed for high throughput and low latency logging.
|
Modifier and Type | Method and Description |
---|---|
LoggerConfig |
DefaultReliabilityStrategy.getActiveLoggerConfig(Supplier<LoggerConfig> next) |
LoggerConfig |
AwaitCompletionReliabilityStrategy.getActiveLoggerConfig(Supplier<LoggerConfig> next) |
LoggerConfig |
AwaitUnconditionallyReliabilityStrategy.getActiveLoggerConfig(Supplier<LoggerConfig> next) |
LoggerConfig |
ReliabilityStrategy.getActiveLoggerConfig(Supplier<LoggerConfig> next)
For internal use by the ReliabilityStrategy; returns the LoggerConfig to use.
|
LoggerConfig |
LockingReliabilityStrategy.getActiveLoggerConfig(Supplier<LoggerConfig> next) |
void |
DefaultReliabilityStrategy.log(Supplier<LoggerConfig> reconfigured,
LogEvent event) |
void |
AwaitCompletionReliabilityStrategy.log(Supplier<LoggerConfig> reconfigured,
LogEvent event) |
void |
AwaitUnconditionallyReliabilityStrategy.log(Supplier<LoggerConfig> reconfigured,
LogEvent event) |
void |
ReliabilityStrategy.log(Supplier<LoggerConfig> reconfigured,
LogEvent event)
Logs an event.
|
void |
LockingReliabilityStrategy.log(Supplier<LoggerConfig> reconfigured,
LogEvent event) |
void |
DefaultReliabilityStrategy.log(Supplier<LoggerConfig> reconfigured,
String loggerName,
String fqcn,
Marker marker,
Level level,
Message data,
Throwable t) |
void |
AwaitCompletionReliabilityStrategy.log(Supplier<LoggerConfig> reconfigured,
String loggerName,
String fqcn,
Marker marker,
Level level,
Message data,
Throwable t) |
void |
AwaitUnconditionallyReliabilityStrategy.log(Supplier<LoggerConfig> reconfigured,
String loggerName,
String fqcn,
Marker marker,
Level level,
Message data,
Throwable t) |
void |
ReliabilityStrategy.log(Supplier<LoggerConfig> reconfigured,
String loggerName,
String fqcn,
Marker marker,
Level level,
Message data,
Throwable t)
Logs an event.
|
void |
LockingReliabilityStrategy.log(Supplier<LoggerConfig> reconfigured,
String loggerName,
String fqcn,
Marker marker,
Level level,
Message data,
Throwable t) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractLogger.debug(Marker marker,
String message,
Supplier<?>... paramSuppliers) |
void |
AbstractLogger.debug(Marker marker,
Supplier<?> msgSupplier) |
void |
AbstractLogger.debug(Marker marker,
Supplier<?> msgSupplier,
Throwable t) |
void |
AbstractLogger.debug(String message,
Supplier<?>... paramSuppliers) |
void |
AbstractLogger.debug(Supplier<?> msgSupplier) |
void |
AbstractLogger.debug(Supplier<?> msgSupplier,
Throwable t) |
void |
AbstractLogger.error(Marker marker,
String message,
Supplier<?>... paramSuppliers) |
void |
AbstractLogger.error(Marker marker,
Supplier<?> msgSupplier) |
void |
AbstractLogger.error(Marker marker,
Supplier<?> msgSupplier,
Throwable t) |
void |
AbstractLogger.error(String message,
Supplier<?>... paramSuppliers) |
void |
AbstractLogger.error(Supplier<?> msgSupplier) |
void |
AbstractLogger.error(Supplier<?> msgSupplier,
Throwable t) |
void |
AbstractLogger.fatal(Marker marker,
String message,
Supplier<?>... paramSuppliers) |
void |
AbstractLogger.fatal(Marker marker,
Supplier<?> msgSupplier) |
void |
AbstractLogger.fatal(Marker marker,
Supplier<?> msgSupplier,
Throwable t) |
void |
AbstractLogger.fatal(String message,
Supplier<?>... paramSuppliers) |
void |
AbstractLogger.fatal(Supplier<?> msgSupplier) |
void |
AbstractLogger.fatal(Supplier<?> msgSupplier,
Throwable t) |
void |
AbstractLogger.info(Marker marker,
String message,
Supplier<?>... paramSuppliers) |
void |
AbstractLogger.info(Marker marker,
Supplier<?> msgSupplier) |
void |
AbstractLogger.info(Marker marker,
Supplier<?> msgSupplier,
Throwable t) |
void |
AbstractLogger.info(String message,
Supplier<?>... paramSuppliers) |
void |
AbstractLogger.info(Supplier<?> msgSupplier) |
void |
AbstractLogger.info(Supplier<?> msgSupplier,
Throwable t) |
void |
AbstractLogger.log(Level level,
Marker marker,
String message,
Supplier<?>... paramSuppliers) |
void |
AbstractLogger.log(Level level,
Marker marker,
Supplier<?> msgSupplier) |
void |
AbstractLogger.log(Level level,
Marker marker,
Supplier<?> msgSupplier,
Throwable t) |
void |
AbstractLogger.log(Level level,
String message,
Supplier<?>... paramSuppliers) |
void |
AbstractLogger.log(Level level,
Supplier<?> msgSupplier) |
void |
AbstractLogger.log(Level level,
Supplier<?> msgSupplier,
Throwable t) |
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<?> msgSupplier,
Throwable t) |
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<?> msgSupplier,
Throwable t) |
void |
AbstractLogger.trace(Marker marker,
String message,
Supplier<?>... paramSuppliers) |
void |
AbstractLogger.trace(Marker marker,
Supplier<?> msgSupplier) |
void |
AbstractLogger.trace(Marker marker,
Supplier<?> msgSupplier,
Throwable t) |
void |
AbstractLogger.trace(String message,
Supplier<?>... paramSuppliers) |
void |
AbstractLogger.trace(Supplier<?> msgSupplier) |
void |
AbstractLogger.trace(Supplier<?> msgSupplier,
Throwable t) |
void |
AbstractLogger.warn(Marker marker,
String message,
Supplier<?>... paramSuppliers) |
void |
AbstractLogger.warn(Marker marker,
Supplier<?> msgSupplier) |
void |
AbstractLogger.warn(Marker marker,
Supplier<?> msgSupplier,
Throwable t) |
void |
AbstractLogger.warn(String message,
Supplier<?>... paramSuppliers) |
void |
AbstractLogger.warn(Supplier<?> msgSupplier) |
void |
AbstractLogger.warn(Supplier<?> msgSupplier,
Throwable t) |
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.
|
Copyright © 1999-2017 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.