Uses of Interface
org.apache.logging.log4j.util.Supplier
-
Packages that use Supplier 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.core.util Log4j 2 helper classes.org.apache.logging.log4j.internal 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. -
-
Uses of Supplier in org.apache.logging.log4j
Methods in org.apache.logging.log4j with parameters of type Supplier Modifier and Type Method Description void
Logger. debug(java.lang.String message, Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is theDEBUG
level.void
Logger. debug(Marker marker, java.lang.String message, Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is theDEBUG
level.void
Logger. debug(Marker marker, Supplier<?> msgSupplier)
Logs a message which is only to be constructed if the logging level is theDEBUG
level with the specified Marker.void
Logger. debug(Marker marker, Supplier<?> msgSupplier, java.lang.Throwable t)
Logs a message (only to be constructed if the logging level is theDEBUG
level) with the specified Marker and including the stack trace of theThrowable
t
passed as parameter.void
Logger. debug(Supplier<?> msgSupplier)
Logs a message which is only to be constructed if the logging level is theDEBUG
level.void
Logger. debug(Supplier<?> msgSupplier, java.lang.Throwable t)
Logs a message (only to be constructed if the logging level is theDEBUG
level) including the stack trace of theThrowable
t
passed as parameter.void
Logger. error(java.lang.String message, Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is theERROR
level.void
Logger. error(Marker marker, java.lang.String message, Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is theERROR
level.void
Logger. error(Marker marker, Supplier<?> msgSupplier)
Logs a message which is only to be constructed if the logging level is theERROR
level with the specified Marker.void
Logger. error(Marker marker, Supplier<?> msgSupplier, java.lang.Throwable t)
Logs a message (only to be constructed if the logging level is theERROR
level) with the specified Marker and including the stack trace of theThrowable
t
passed as parameter.void
Logger. error(Supplier<?> msgSupplier)
Logs a message which is only to be constructed if the logging level is theERROR
level.void
Logger. error(Supplier<?> msgSupplier, java.lang.Throwable t)
Logs a message (only to be constructed if the logging level is theERROR
level) including the stack trace of theThrowable
t
passed as parameter.void
Logger. fatal(java.lang.String message, Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is theFATAL
level.void
Logger. fatal(Marker marker, java.lang.String message, Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is theFATAL
level.void
Logger. fatal(Marker marker, Supplier<?> msgSupplier)
Logs a message which is only to be constructed if the logging level is theFATAL
level with the specified Marker.void
Logger. fatal(Marker marker, Supplier<?> msgSupplier, java.lang.Throwable t)
Logs a message (only to be constructed if the logging level is theFATAL
level) with the specified Marker and including the stack trace of theThrowable
t
passed as parameter.void
Logger. fatal(Supplier<?> msgSupplier)
Logs a message which is only to be constructed if the logging level is theFATAL
level.void
Logger. fatal(Supplier<?> msgSupplier, java.lang.Throwable t)
Logs a message (only to be constructed if the logging level is theFATAL
level) including the stack trace of theThrowable
t
passed as parameter.void
Logger. info(java.lang.String message, Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is theINFO
level.void
Logger. info(Marker marker, java.lang.String message, Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is theINFO
level.void
Logger. info(Marker marker, Supplier<?> msgSupplier)
Logs a message which is only to be constructed if the logging level is theINFO
level with the specified Marker.void
Logger. info(Marker marker, Supplier<?> msgSupplier, java.lang.Throwable t)
Logs a message (only to be constructed if the logging level is theINFO
level) with the specified Marker and including the stack trace of theThrowable
t
passed as parameter.void
Logger. info(Supplier<?> msgSupplier)
Logs a message which is only to be constructed if the logging level is theINFO
level.void
Logger. info(Supplier<?> msgSupplier, java.lang.Throwable t)
Logs a message (only to be constructed if the logging level is theINFO
level) including the stack trace of theThrowable
t
passed as parameter.default void
LogBuilder. log(java.lang.String message, Supplier<?>... params)
default void
LogBuilder. log(Supplier<Message> messageSupplier)
void
Logger. log(Level level, java.lang.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, java.lang.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, java.lang.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 theThrowable
t
passed as parameter.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, java.lang.Throwable t)
Logs a message (only to be constructed if the logging level is the specified level) including the stack log of theThrowable
t
passed as parameter.void
Logger. trace(java.lang.String message, Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is theTRACE
level.void
Logger. trace(Marker marker, java.lang.String message, Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is theTRACE
level.void
Logger. trace(Marker marker, Supplier<?> msgSupplier)
Logs a message which is only to be constructed if the logging level is theTRACE
level with the specified Marker.void
Logger. trace(Marker marker, Supplier<?> msgSupplier, java.lang.Throwable t)
Logs a message (only to be constructed if the logging level is theTRACE
level) with the specified Marker and including the stack trace of theThrowable
t
passed as parameter.void
Logger. trace(Supplier<?> msgSupplier)
Logs a message which is only to be constructed if the logging level is theTRACE
level.void
Logger. trace(Supplier<?> msgSupplier, java.lang.Throwable t)
Logs a message (only to be constructed if the logging level is theTRACE
level) including the stack trace of theThrowable
t
passed as parameter.EntryMessage
Logger. traceEntry(java.lang.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(java.lang.String message, Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is theWARN
level.void
Logger. warn(Marker marker, java.lang.String message, Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is theWARN
level.void
Logger. warn(Marker marker, Supplier<?> msgSupplier)
Logs a message which is only to be constructed if the logging level is theWARN
level with the specified Marker.void
Logger. warn(Marker marker, Supplier<?> msgSupplier, java.lang.Throwable t)
Logs a message (only to be constructed if the logging level is theWARN
level) with the specified Marker and including the stack warn of theThrowable
t
passed as parameter.void
Logger. warn(Supplier<?> msgSupplier)
Logs a message which is only to be constructed if the logging level is theWARN
level.void
Logger. warn(Supplier<?> msgSupplier, java.lang.Throwable t)
Logs a message (only to be constructed if the logging level is theWARN
level) including the stack warn of theThrowable
t
passed as parameter. -
Uses of Supplier in org.apache.logging.log4j.core
Classes in org.apache.logging.log4j.core that implement Supplier Modifier and Type Class Description class
Logger
The core implementation of theLogger
interface. -
Uses of Supplier in org.apache.logging.log4j.core.async
Classes in org.apache.logging.log4j.core.async that implement Supplier Modifier and Type Class Description class
AsyncLogger
AsyncLogger is a logger designed for high throughput and low latency logging. -
Uses of Supplier in org.apache.logging.log4j.core.config
Methods in org.apache.logging.log4j.core.config with parameters of type Supplier Modifier and Type Method Description LoggerConfig
AwaitCompletionReliabilityStrategy. getActiveLoggerConfig(Supplier<LoggerConfig> next)
LoggerConfig
AwaitUnconditionallyReliabilityStrategy. getActiveLoggerConfig(Supplier<LoggerConfig> next)
LoggerConfig
DefaultReliabilityStrategy. getActiveLoggerConfig(Supplier<LoggerConfig> next)
LoggerConfig
LockingReliabilityStrategy. getActiveLoggerConfig(Supplier<LoggerConfig> next)
LoggerConfig
ReliabilityStrategy. getActiveLoggerConfig(Supplier<LoggerConfig> next)
For internal use by the ReliabilityStrategy; returns the LoggerConfig to use.void
AwaitCompletionReliabilityStrategy. log(Supplier<LoggerConfig> reconfigured, java.lang.String loggerName, java.lang.String fqcn, java.lang.StackTraceElement location, Marker marker, Level level, Message data, java.lang.Throwable t)
void
AwaitCompletionReliabilityStrategy. log(Supplier<LoggerConfig> reconfigured, java.lang.String loggerName, java.lang.String fqcn, Marker marker, Level level, Message data, java.lang.Throwable t)
void
AwaitCompletionReliabilityStrategy. log(Supplier<LoggerConfig> reconfigured, LogEvent event)
void
AwaitUnconditionallyReliabilityStrategy. log(Supplier<LoggerConfig> reconfigured, java.lang.String loggerName, java.lang.String fqcn, java.lang.StackTraceElement location, Marker marker, Level level, Message data, java.lang.Throwable t)
void
AwaitUnconditionallyReliabilityStrategy. log(Supplier<LoggerConfig> reconfigured, java.lang.String loggerName, java.lang.String fqcn, Marker marker, Level level, Message data, java.lang.Throwable t)
void
AwaitUnconditionallyReliabilityStrategy. log(Supplier<LoggerConfig> reconfigured, LogEvent event)
void
DefaultReliabilityStrategy. log(Supplier<LoggerConfig> reconfigured, java.lang.String loggerName, java.lang.String fqcn, java.lang.StackTraceElement location, Marker marker, Level level, Message data, java.lang.Throwable t)
void
DefaultReliabilityStrategy. log(Supplier<LoggerConfig> reconfigured, java.lang.String loggerName, java.lang.String fqcn, Marker marker, Level level, Message data, java.lang.Throwable t)
void
DefaultReliabilityStrategy. log(Supplier<LoggerConfig> reconfigured, LogEvent event)
void
LocationAwareReliabilityStrategy. log(Supplier<LoggerConfig> reconfigured, java.lang.String loggerName, java.lang.String fqcn, java.lang.StackTraceElement location, Marker marker, Level level, Message data, java.lang.Throwable t)
Logs an event.void
LockingReliabilityStrategy. log(Supplier<LoggerConfig> reconfigured, java.lang.String loggerName, java.lang.String fqcn, java.lang.StackTraceElement location, Marker marker, Level level, Message data, java.lang.Throwable t)
void
LockingReliabilityStrategy. log(Supplier<LoggerConfig> reconfigured, java.lang.String loggerName, java.lang.String fqcn, Marker marker, Level level, Message data, java.lang.Throwable t)
void
LockingReliabilityStrategy. log(Supplier<LoggerConfig> reconfigured, LogEvent event)
void
ReliabilityStrategy. log(Supplier<LoggerConfig> reconfigured, java.lang.String loggerName, java.lang.String fqcn, Marker marker, Level level, Message data, java.lang.Throwable t)
Logs an event.void
ReliabilityStrategy. log(Supplier<LoggerConfig> reconfigured, LogEvent event)
Logs an event. -
Uses of Supplier in org.apache.logging.log4j.core.util
Methods in org.apache.logging.log4j.core.util that return types with arguments of type Supplier Modifier and Type Method Description private static java.util.Map<java.lang.String,Supplier<Clock>>
ClockFactory. aliases()
-
Uses of Supplier in org.apache.logging.log4j.internal
Methods in org.apache.logging.log4j.internal with parameters of type Supplier Modifier and Type Method Description void
DefaultLogBuilder. log(java.lang.String message, Supplier<?>... params)
void
DefaultLogBuilder. log(Supplier<Message> messageSupplier)
-
Uses of Supplier in org.apache.logging.log4j.spi
Methods in org.apache.logging.log4j.spi with parameters of type Supplier Modifier and Type Method Description void
AbstractLogger. debug(java.lang.String message, Supplier<?>... paramSuppliers)
void
AbstractLogger. debug(Marker marker, java.lang.String message, Supplier<?>... paramSuppliers)
void
AbstractLogger. debug(Marker marker, Supplier<?> msgSupplier)
void
AbstractLogger. debug(Marker marker, Supplier<?> msgSupplier, java.lang.Throwable t)
void
AbstractLogger. debug(Supplier<?> msgSupplier)
void
AbstractLogger. debug(Supplier<?> msgSupplier, java.lang.Throwable t)
protected EntryMessage
AbstractLogger. enter(java.lang.String fqcn, java.lang.String format, Supplier<?>... paramSuppliers)
Logs entry to a method with location information.protected EntryMessage
AbstractLogger. entryMsg(java.lang.String format, Supplier<?>... paramSuppliers)
void
AbstractLogger. error(java.lang.String message, Supplier<?>... paramSuppliers)
void
AbstractLogger. error(Marker marker, java.lang.String message, Supplier<?>... paramSuppliers)
void
AbstractLogger. error(Marker marker, Supplier<?> msgSupplier)
void
AbstractLogger. error(Marker marker, Supplier<?> msgSupplier, java.lang.Throwable t)
void
AbstractLogger. error(Supplier<?> msgSupplier)
void
AbstractLogger. error(Supplier<?> msgSupplier, java.lang.Throwable t)
void
AbstractLogger. fatal(java.lang.String message, Supplier<?>... paramSuppliers)
void
AbstractLogger. fatal(Marker marker, java.lang.String message, Supplier<?>... paramSuppliers)
void
AbstractLogger. fatal(Marker marker, Supplier<?> msgSupplier)
void
AbstractLogger. fatal(Marker marker, Supplier<?> msgSupplier, java.lang.Throwable t)
void
AbstractLogger. fatal(Supplier<?> msgSupplier)
void
AbstractLogger. fatal(Supplier<?> msgSupplier, java.lang.Throwable t)
void
AbstractLogger. info(java.lang.String message, Supplier<?>... paramSuppliers)
void
AbstractLogger. info(Marker marker, java.lang.String message, Supplier<?>... paramSuppliers)
void
AbstractLogger. info(Marker marker, Supplier<?> msgSupplier)
void
AbstractLogger. info(Marker marker, Supplier<?> msgSupplier, java.lang.Throwable t)
void
AbstractLogger. info(Supplier<?> msgSupplier)
void
AbstractLogger. info(Supplier<?> msgSupplier, java.lang.Throwable t)
void
AbstractLogger. log(Level level, java.lang.String message, Supplier<?>... paramSuppliers)
void
AbstractLogger. log(Level level, Marker marker, java.lang.String message, Supplier<?>... paramSuppliers)
void
AbstractLogger. log(Level level, Marker marker, Supplier<?> msgSupplier)
void
AbstractLogger. log(Level level, Marker marker, Supplier<?> msgSupplier, java.lang.Throwable t)
void
AbstractLogger. log(Level level, Supplier<?> msgSupplier)
void
AbstractLogger. log(Level level, Supplier<?> msgSupplier, java.lang.Throwable t)
void
AbstractLogger. logIfEnabled(java.lang.String fqcn, Level level, Marker marker, java.lang.String message, Supplier<?>... paramSuppliers)
void
AbstractLogger. logIfEnabled(java.lang.String fqcn, Level level, Marker marker, Supplier<?> msgSupplier, java.lang.Throwable t)
void
ExtendedLogger. logIfEnabled(java.lang.String fqcn, Level level, Marker marker, java.lang.String message, Supplier<?>... paramSuppliers)
Logs a message whose parameters are only to be constructed if the specified level is active.void
ExtendedLogger. logIfEnabled(java.lang.String fqcn, Level level, Marker marker, Supplier<?> msgSupplier, java.lang.Throwable t)
Logs a message which is only to be constructed if the specified level is active.protected void
AbstractLogger. logMessage(java.lang.String fqcn, Level level, Marker marker, java.lang.String message, Supplier<?>... paramSuppliers)
protected void
AbstractLogger. logMessage(java.lang.String fqcn, Level level, Marker marker, Supplier<?> msgSupplier, java.lang.Throwable t)
void
AbstractLogger. trace(java.lang.String message, Supplier<?>... paramSuppliers)
void
AbstractLogger. trace(Marker marker, java.lang.String message, Supplier<?>... paramSuppliers)
void
AbstractLogger. trace(Marker marker, Supplier<?> msgSupplier)
void
AbstractLogger. trace(Marker marker, Supplier<?> msgSupplier, java.lang.Throwable t)
void
AbstractLogger. trace(Supplier<?> msgSupplier)
void
AbstractLogger. trace(Supplier<?> msgSupplier, java.lang.Throwable t)
EntryMessage
AbstractLogger. traceEntry(java.lang.String format, Supplier<?>... paramSuppliers)
EntryMessage
AbstractLogger. traceEntry(Supplier<?>... paramSuppliers)
void
AbstractLogger. warn(java.lang.String message, Supplier<?>... paramSuppliers)
void
AbstractLogger. warn(Marker marker, java.lang.String message, Supplier<?>... paramSuppliers)
void
AbstractLogger. warn(Marker marker, Supplier<?> msgSupplier)
void
AbstractLogger. warn(Marker marker, Supplier<?> msgSupplier, java.lang.Throwable t)
void
AbstractLogger. warn(Supplier<?> msgSupplier)
void
AbstractLogger. warn(Supplier<?> msgSupplier, java.lang.Throwable t)
-
Uses of Supplier in org.apache.logging.log4j.util
Methods in org.apache.logging.log4j.util with parameters of type Supplier Modifier and Type Method Description static java.lang.Object
LambdaUtil. get(Supplier<?> supplier)
Returns the result of evaluating the specified function.static java.lang.Object[]
LambdaUtil. getAll(Supplier<?>... suppliers)
Converts an array of lambda expressions into an array of their evaluation results.java.lang.Boolean
PropertiesUtil. getBooleanProperty(java.lang.String[] prefixes, java.lang.String key, Supplier<java.lang.Boolean> supplier)
Retrieves a property that may be prefixed by more than one string.java.time.Duration
PropertiesUtil. getDurationProperty(java.lang.String[] prefixes, java.lang.String key, Supplier<java.time.Duration> supplier)
Retrieves a property that may be prefixed by more than one string.java.lang.Integer
PropertiesUtil. getIntegerProperty(java.lang.String[] prefixes, java.lang.String key, Supplier<java.lang.Integer> supplier)
Retrieves a property that may be prefixed by more than one string.java.lang.Long
PropertiesUtil. getLongProperty(java.lang.String[] prefixes, java.lang.String key, Supplier<java.lang.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.java.lang.String
PropertiesUtil. getStringProperty(java.lang.String[] prefixes, java.lang.String key, Supplier<java.lang.String> supplier)
Retrieves a property that may be prefixed by more than one string.
-