Uses of Interface
org.apache.logging.log4j.util.Supplier
Package
Description
Public API for Log4j 2.
Internal interfaces and classes to be used by authors of logging implementations or for internal use by
API classes.
Internal utility classes for the Log4j 2 API.
-
Uses of Supplier in org.apache.logging.log4j
Modifier and TypeMethodDescriptionvoid
Logs a message with parameters which are only to be constructed if the logging level is theDEBUG
level.void
Logs a message with parameters which are only to be constructed if the logging level is theDEBUG
level.void
Logs a message which is only to be constructed if the logging level is theDEBUG
level with the specified Marker.void
void
Logs a message which is only to be constructed if the logging level is theDEBUG
level.void
void
Logs a message with parameters which are only to be constructed if the logging level is theERROR
level.void
Logs a message with parameters which are only to be constructed if the logging level is theERROR
level.void
Logs a message which is only to be constructed if the logging level is theERROR
level with the specified Marker.void
void
Logs a message which is only to be constructed if the logging level is theERROR
level.void
void
Logs a message with parameters which are only to be constructed if the logging level is theFATAL
level.void
Logs a message with parameters which are only to be constructed if the logging level is theFATAL
level.void
Logs a message which is only to be constructed if the logging level is theFATAL
level with the specified Marker.void
void
Logs a message which is only to be constructed if the logging level is theFATAL
level.void
void
Logs a message with parameters which are only to be constructed if the logging level is theINFO
level.void
Logs a message with parameters which are only to be constructed if the logging level is theINFO
level.void
Logs a message which is only to be constructed if the logging level is theINFO
level with the specified Marker.void
void
Logs a message which is only to be constructed if the logging level is theINFO
level.void
default void
Causes all the data collected to be logged along with the message and parameters.default void
Causes all the data collected to be logged along with the message.void
Logs a message with parameters which are only to be constructed if the logging level is the specified level.void
Logs a message with parameters which are only to be constructed if the logging level is the specified level.void
Logs a message (only to be constructed if the logging level is the specified level) with the specified Marker.void
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
throwable
passed as parameter.void
Logs a message which is only to be constructed if the logging level is the specified level.void
Logs a message (only to be constructed if the logging level is the specified level) including the stack log of theThrowable
throwable
passed as parameter.default Message
Causes all the data collected to be logged along with the message.void
Logs a message with parameters which are only to be constructed if the logging level is theTRACE
level.void
Logs a message with parameters which are only to be constructed if the logging level is theTRACE
level.void
Logs a message which is only to be constructed if the logging level is theTRACE
level with the specified Marker.void
void
Logs a message which is only to be constructed if the logging level is theTRACE
level.void
Logger.traceEntry
(String format, Supplier<?>... paramSuppliers) Logs entry to a method along with its parameters.Logger.traceEntry
(Supplier<?>... paramSuppliers) Logs entry to a method along with its parameters.void
Logs a message with parameters which are only to be constructed if the logging level is theWARN
level.void
Logs a message with parameters which are only to be constructed if the logging level is theWARN
level.void
Logs a message which is only to be constructed if the logging level is theWARN
level with the specified Marker.void
void
Logs a message which is only to be constructed if the logging level is theWARN
level.void
-
Uses of Supplier in org.apache.logging.log4j.spi
Modifier and TypeMethodDescriptionvoid
void
void
void
void
void
protected EntryMessage
Logs entry to a method with location information.protected EntryMessage
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
AbstractLogger.logIfEnabled
(String fqcn, Level level, Marker marker, String message, Supplier<?>... paramSuppliers) void
AbstractLogger.logIfEnabled
(String fqcn, Level level, Marker marker, 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
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.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
void
void
void
void
void
AbstractLogger.traceEntry
(String format, Supplier<?>... paramSuppliers) AbstractLogger.traceEntry
(Supplier<?>... paramSuppliers) void
void
void
void
void
void
-
Uses of Supplier in org.apache.logging.log4j.util
Modifier and TypeMethodDescriptionstatic Object
Returns the result of evaluating the specified function.static Object[]
Converts an array of lambda expressions into an array of their evaluation results.PropertiesUtil.getBooleanProperty
(String[] prefixes, String key, Supplier<Boolean> supplier) Retrieves a property that may be prefixed by more than one string.PropertiesUtil.getDurationProperty
(String[] prefixes, String key, Supplier<Duration> supplier) Retrieves a property that may be prefixed by more than one string.PropertiesUtil.getIntegerProperty
(String[] prefixes, String key, Supplier<Integer> supplier) Retrieves a property that may be prefixed by more than one string.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.PropertiesUtil.getStringProperty
(String[] prefixes, String key, Supplier<String> supplier) Retrieves a property that may be prefixed by more than one string.