Interface Logger
- All Known Subinterfaces:
ExtendedLogger
- All Known Implementing Classes:
AbstractLogger
,ExtendedLoggerWrapper
,SimpleLogger
,StatusLogger
The canonical way to obtain a Logger for a class is through LogManager.getLogger()
. Typically, each class
gets its own Logger named after its fully qualified class name (the default Logger name when obtained through the
LogManager.getLogger()
method). Thus, the simplest way to use this would be like so:
public class MyClass { private static final Logger LOGGER = LogManager.getLogger(); // ... }
For ease of filtering, searching, sorting, etc., it is generally a good idea to create Loggers for each class rather
than sharing Loggers. Instead, Markers
should be used for shared, filterable identification.
For service provider implementations, it is recommended to extend the
AbstractLogger
class rather than implementing this interface directly.
Logger
interface to support lambda expressions. The new methods
allow client code to lazily log messages without explicitly checking if the requested log level is enabled. For
example, previously one would write:
// pre-Java 8 style optimization: explicitly check the log level // to make sure the expensiveOperation() method is only called if necessary if (logger.isTraceEnabled()) { logger.trace("Some long-running operation returned {}", expensiveOperation()); }
With Java 8, the same effect can be achieved with a lambda expression:
// Java-8 style optimization: no need to explicitly check the log level: // the lambda expression is not evaluated if the TRACE level is not enabled logger.trace("Some long-running operation returned {}", () -> expensiveOperation());
Note that although MessageSupplier
is provided, using Supplier<Message>
works just the
same. MessageSupplier was deprecated in 2.6 and un-deprecated in 2.8.1. Anonymous class usage of these APIs
should prefer using Supplier instead.
-
Method Summary
Modifier and TypeMethodDescriptiondefault LogBuilder
always()
Construct a log event that will always be logged.default LogBuilder
atDebug()
Construct a trace log event.default LogBuilder
atError()
Construct a trace log event.default LogBuilder
atFatal()
Construct a trace log event.default LogBuilder
atInfo()
Construct a trace log event.default LogBuilder
Construct a log event.default LogBuilder
atTrace()
Construct a trace log event.default LogBuilder
atWarn()
Construct a trace log event.void
void
Logs aThrowable
that has been caught to a specific logging level.void
debug
(CharSequence message) Logs a message CharSequence with theDEBUG
level.void
debug
(CharSequence message, Throwable throwable) void
Logs a message object with theDEBUG
level.void
void
Logs a message object with theDEBUG
level.void
Logs a message with parameters at debug level.void
Logs a message with parameters at theDEBUG
level.void
Logs a message with parameters at debug level.void
Logs a message with parameters at debug level.void
Logs a message with parameters at debug level.void
Logs a message with parameters at debug level.void
Logs a message with parameters at debug level.void
Logs a message with parameters at debug level.void
debug
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at debug level.void
debug
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at debug level.void
debug
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at debug level.void
void
Logs a message with parameters which are only to be constructed if the logging level is theDEBUG
level.void
debug
(Marker marker, CharSequence message) Logs a message CharSequence with theDEBUG
level.void
debug
(Marker marker, CharSequence message, Throwable throwable) void
Logs a message object with theDEBUG
level.void
void
Logs a message object with theDEBUG
level.void
Logs a message with parameters at debug level.void
Logs a message with parameters at theDEBUG
level.void
Logs a message with parameters at debug level.void
Logs a message with parameters at debug level.void
Logs a message with parameters at debug level.void
Logs a message with parameters at debug level.void
debug
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at debug level.void
debug
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at debug level.void
debug
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at debug level.void
debug
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at debug level.void
debug
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at debug level.void
void
Logs a message with parameters which are only to be constructed if the logging level is theDEBUG
level.void
Logs a message with the specific Marker at theDEBUG
level.void
Logs a message with the specific Marker at theDEBUG
level.void
debug
(Marker marker, MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theDEBUG
level with the specified Marker.void
debug
(Marker marker, MessageSupplier messageSupplier, Throwable throwable) 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 with the specific Marker at theDEBUG
level.void
Logs a message with the specific Marker at theDEBUG
level.void
debug
(MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theDEBUG
level.void
debug
(MessageSupplier messageSupplier, Throwable throwable) void
Logs a message which is only to be constructed if the logging level is theDEBUG
level.void
void
entry()
Deprecated.void
Deprecated.UsetraceEntry(String, Object...)
instead which performs the same function.void
error
(CharSequence message) Logs a message CharSequence with theERROR
level.void
error
(CharSequence message, Throwable throwable) void
Logs a message object with theERROR
level.void
void
Logs a message object with theERROR
level.void
Logs a message with parameters at error level.void
Logs a message with parameters at theERROR
level.void
Logs a message with parameters at error level.void
Logs a message with parameters at error level.void
Logs a message with parameters at error level.void
Logs a message with parameters at error level.void
Logs a message with parameters at error level.void
Logs a message with parameters at error level.void
error
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at error level.void
error
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at error level.void
error
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at error level.void
void
Logs a message with parameters which are only to be constructed if the logging level is theERROR
level.void
error
(Marker marker, CharSequence message) Logs a message CharSequence with theERROR
level.void
error
(Marker marker, CharSequence message, Throwable throwable) void
Logs a message object with theERROR
level.void
void
Logs a message object with theERROR
level.void
Logs a message with parameters at error level.void
Logs a message with parameters at theERROR
level.void
Logs a message with parameters at error level.void
Logs a message with parameters at error level.void
Logs a message with parameters at error level.void
Logs a message with parameters at error level.void
error
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at error level.void
error
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at error level.void
error
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at error level.void
error
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at error level.void
error
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at error 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 the specific Marker at theERROR
level.void
Logs a message with the specific Marker at theERROR
level.void
error
(Marker marker, MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theERROR
level with the specified Marker.void
error
(Marker marker, MessageSupplier messageSupplier, Throwable throwable) 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 with the specific Marker at theERROR
level.void
Logs a message with the specific Marker at theERROR
level.void
error
(MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theERROR
level.void
error
(MessageSupplier messageSupplier, Throwable throwable) void
Logs a message which is only to be constructed if the logging level is theERROR
level.void
void
exit()
Deprecated.UsetraceExit()
instead which performs the same function.<R> R
exit
(R result) Deprecated.UsetraceExit(Object)
instead which performs the same function.void
fatal
(CharSequence message) Logs a message CharSequence with theFATAL
level.void
fatal
(CharSequence message, Throwable throwable) void
Logs a message object with theFATAL
level.void
void
Logs a message object with theFATAL
level.void
Logs a message with parameters at fatal level.void
Logs a message with parameters at theFATAL
level.void
Logs a message with parameters at fatal level.void
Logs a message with parameters at fatal level.void
Logs a message with parameters at fatal level.void
Logs a message with parameters at fatal level.void
Logs a message with parameters at fatal level.void
Logs a message with parameters at fatal level.void
fatal
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at fatal level.void
fatal
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at fatal level.void
fatal
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at fatal level.void
void
Logs a message with parameters which are only to be constructed if the logging level is theFATAL
level.void
fatal
(Marker marker, CharSequence message) Logs a message CharSequence with theFATAL
level.void
fatal
(Marker marker, CharSequence message, Throwable throwable) void
Logs a message object with theFATAL
level.void
void
Logs a message object with theFATAL
level.void
Logs a message with parameters at fatal level.void
Logs a message with parameters at theFATAL
level.void
Logs a message with parameters at fatal level.void
Logs a message with parameters at fatal level.void
Logs a message with parameters at fatal level.void
Logs a message with parameters at fatal level.void
fatal
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at fatal level.void
fatal
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at fatal level.void
fatal
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at fatal level.void
fatal
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at fatal level.void
fatal
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at fatal 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 the specific Marker at theFATAL
level.void
Logs a message with the specific Marker at theFATAL
level.void
fatal
(Marker marker, MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theFATAL
level with the specified Marker.void
fatal
(Marker marker, MessageSupplier messageSupplier, Throwable throwable) 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 with the specific Marker at theFATAL
level.void
Logs a message with the specific Marker at theFATAL
level.void
fatal
(MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theFATAL
level.void
fatal
(MessageSupplier messageSupplier, Throwable throwable) void
Logs a message which is only to be constructed if the logging level is theFATAL
level.void
Gets the flow message factory used to convert messages into flow messages.getLevel()
Gets the Level associated with the Logger.<MF extends MessageFactory>
MFGets the message factory used to convert message Objects and Strings/CharSequences into actual log Messages.getName()
Gets the logger name.void
info
(CharSequence message) Logs a message CharSequence with theINFO
level.void
info
(CharSequence message, Throwable throwable) void
Logs a message object with theINFO
level.void
void
Logs a message object with theINFO
level.void
Logs a message with parameters at info level.void
Logs a message with parameters at theINFO
level.void
Logs a message with parameters at info level.void
Logs a message with parameters at info level.void
Logs a message with parameters at info level.void
Logs a message with parameters at info level.void
Logs a message with parameters at info level.void
Logs a message with parameters at info level.void
info
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at info level.void
info
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at info level.void
info
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at info level.void
void
Logs a message with parameters which are only to be constructed if the logging level is theINFO
level.void
info
(Marker marker, CharSequence message) Logs a message CharSequence with theINFO
level.void
info
(Marker marker, CharSequence message, Throwable throwable) void
Logs a message object with theINFO
level.void
void
Logs a message object with theINFO
level.void
Logs a message with parameters at info level.void
Logs a message with parameters at theINFO
level.void
Logs a message with parameters at info level.void
Logs a message with parameters at info level.void
Logs a message with parameters at info level.void
Logs a message with parameters at info level.void
info
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at info level.void
info
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at info level.void
info
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at info level.void
info
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at info level.void
info
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at info 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 the specific Marker at theINFO
level.void
Logs a message with the specific Marker at theINFO
level.void
info
(Marker marker, MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theINFO
level with the specified Marker.void
info
(Marker marker, MessageSupplier messageSupplier, Throwable throwable) 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 with the specific Marker at theINFO
level.void
Logs a message with the specific Marker at theINFO
level.void
info
(MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theINFO
level.void
info
(MessageSupplier messageSupplier, Throwable throwable) void
Logs a message which is only to be constructed if the logging level is theINFO
level.void
boolean
Checks whether this Logger is enabled for theDEBUG
Level.boolean
isDebugEnabled
(Marker marker) Checks whether this Logger is enabled for theDEBUG
Level.boolean
Checks whether this Logger is enabled for the given Level.boolean
Checks whether this Logger is enabled for the given Level and Marker.boolean
Checks whether this Logger is enabled for theERROR
Level.boolean
isErrorEnabled
(Marker marker) Checks whether this Logger is enabled for theERROR
Level.boolean
Checks whether this Logger is enabled for theFATAL
Level.boolean
isFatalEnabled
(Marker marker) Checks whether this Logger is enabled for theFATAL
Level.boolean
Checks whether this Logger is enabled for theINFO
Level.boolean
isInfoEnabled
(Marker marker) Checks whether this Logger is enabled for theINFO
Level.boolean
Checks whether this Logger is enabled for theTRACE
level.boolean
isTraceEnabled
(Marker marker) Checks whether this Logger is enabled for theTRACE
level.boolean
Checks whether this Logger is enabled for theWARN
Level.boolean
isWarnEnabled
(Marker marker) Checks whether this Logger is enabled for theWARN
Level.void
log
(Level level, CharSequence message) Logs a message CharSequence with the given level.void
log
(Level level, CharSequence message, Throwable throwable) Logs a CharSequence at the given level including the stack trace of theThrowable
throwable
passed as parameter.void
Logs a message object with the given level.void
Logs a message at the given level including the stack trace of theThrowable
throwable
passed as parameter.void
Logs a message object with the given level.void
Logs a message with parameters at the specified level.void
Logs a message with parameters at the given level.void
Logs a message with parameters at the specified level.void
Logs a message with parameters at the specified level.void
Logs a message with parameters at the specified level.void
Logs a message with parameters at the specified level.void
Logs a message with parameters at the specified level.void
log
(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at the specified level.void
log
(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at the specified level.void
log
(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at the specified level.void
log
(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at the specified level.void
Logs a message at the given level including the stack trace of theThrowable
throwable
passed as parameter.void
Logs a message with parameters which are only to be constructed if the logging level is the specified level.void
log
(Level level, Marker marker, CharSequence message) Logs a message CharSequence with the given level.void
log
(Level level, Marker marker, CharSequence message, Throwable throwable) Logs a CharSequence at the given level including the stack trace of theThrowable
throwable
passed as parameter.void
Logs a message object with the given level.void
Logs a message at the given level including the stack trace of theThrowable
throwable
passed as parameter.void
Logs a message object with the given level.void
Logs a message with parameters at the specified level.void
Logs a message with parameters at the given level.void
Logs a message with parameters at the specified level.void
Logs a message with parameters at the specified level.void
Logs a message with parameters at the specified level.void
log
(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4) Logs a message with parameters at the specified level.void
log
(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at the specified level.void
log
(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at the specified level.void
log
(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at the specified level.void
log
(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at the specified level.void
log
(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at the specified level.void
Logs a message at the given level including the stack trace of theThrowable
throwable
passed as parameter.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 the specific Marker at the given level.void
Logs a message with the specific Marker at the given level.void
log
(Level level, Marker marker, MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is the specified level with the specified Marker.void
log
(Level level, Marker marker, MessageSupplier 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 theThrowable
throwable
passed as parameter.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 with the specific Marker at the given level.void
Logs a message with the specific Marker at the given level.void
log
(Level level, MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is the specified level.void
log
(Level level, MessageSupplier messageSupplier, Throwable throwable) 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.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 void
logMessage
(Level level, Marker marker, String fqcn, StackTraceElement location, Message message, Throwable throwable) Logs a Message.void
Logs a formatted message using the specified format string and arguments.void
Logs a formatted message using the specified format string and arguments.<T extends Throwable>
TLogs aThrowable
to be thrown.<T extends Throwable>
Tthrowing
(T throwable) void
trace
(CharSequence message) Logs a message CharSequence with theTRACE
level.void
trace
(CharSequence message, Throwable throwable) void
Logs a message object with theTRACE
level.void
void
Logs a message object with theTRACE
level.void
Logs a message with parameters at trace level.void
Logs a message with parameters at theTRACE
level.void
Logs a message with parameters at trace level.void
Logs a message with parameters at trace level.void
Logs a message with parameters at trace level.void
Logs a message with parameters at trace level.void
Logs a message with parameters at trace level.void
Logs a message with parameters at trace level.void
trace
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at trace level.void
trace
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at trace level.void
trace
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at trace level.void
void
Logs a message with parameters which are only to be constructed if the logging level is theTRACE
level.void
trace
(Marker marker, CharSequence message) Logs a message CharSequence with theTRACE
level.void
trace
(Marker marker, CharSequence message, Throwable throwable) void
Logs a message object with theTRACE
level.void
void
Logs a message object with theTRACE
level.void
Logs a message with parameters at trace level.void
Logs a message with parameters at theTRACE
level.void
Logs a message with parameters at trace level.void
Logs a message with parameters at trace level.void
Logs a message with parameters at trace level.void
Logs a message with parameters at trace level.void
trace
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at trace level.void
trace
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at trace level.void
trace
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at trace level.void
trace
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at trace level.void
trace
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at trace level.void
void
Logs a message with parameters which are only to be constructed if the logging level is theTRACE
level.void
Logs a message with the specific Marker at theTRACE
level.void
Logs a message with the specific Marker at theTRACE
level.void
trace
(Marker marker, MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theTRACE
level with the specified Marker.void
trace
(Marker marker, MessageSupplier messageSupplier, Throwable throwable) 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 with the specific Marker at theTRACE
level.void
Logs a message with the specific Marker at theTRACE
level.void
trace
(MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theTRACE
level.void
trace
(MessageSupplier messageSupplier, Throwable throwable) void
Logs a message which is only to be constructed if the logging level is theTRACE
level.void
Logs entry to a method.traceEntry
(String format, Object... params) Logs entry to a method along with its parameters.traceEntry
(String format, Supplier<?>... paramSuppliers) Logs entry to a method along with its parameters.traceEntry
(Message message) Logs entry to a method using a Message to describe the parameters.traceEntry
(Supplier<?>... paramSuppliers) Logs entry to a method along with its parameters.void
Logs exit from a method.<R> R
Logs exiting from a method with the result.void
traceExit
(EntryMessage message) Logs exiting from a method with no result.<R> R
traceExit
(EntryMessage message, R result) Logs exiting from a method with the result.<R> R
Logs exiting from a method with the result.<R> R
traceExit
(R result) Logs exiting from a method with the result.void
warn
(CharSequence message) Logs a message CharSequence with theWARN
level.void
warn
(CharSequence message, Throwable throwable) void
Logs a message object with theWARN
level.void
void
Logs a message object with theWARN
level.void
Logs a message with parameters at warn level.void
Logs a message with parameters at theWARN
level.void
Logs a message with parameters at warn level.void
Logs a message with parameters at warn level.void
Logs a message with parameters at warn level.void
Logs a message with parameters at warn level.void
Logs a message with parameters at warn level.void
Logs a message with parameters at warn level.void
warn
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at warn level.void
warn
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at warn level.void
warn
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at warn level.void
void
Logs a message with parameters which are only to be constructed if the logging level is theWARN
level.void
warn
(Marker marker, CharSequence message) Logs a message CharSequence with theWARN
level.void
warn
(Marker marker, CharSequence message, Throwable throwable) void
Logs a message object with theWARN
level.void
void
Logs a message object with theWARN
level.void
Logs a message with parameters at warn level.void
Logs a message with parameters at theWARN
level.void
Logs a message with parameters at warn level.void
Logs a message with parameters at warn level.void
Logs a message with parameters at warn level.void
Logs a message with parameters at warn level.void
warn
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at warn level.void
warn
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at warn level.void
warn
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at warn level.void
warn
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at warn level.void
warn
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at warn level.void
void
Logs a message with parameters which are only to be constructed if the logging level is theWARN
level.void
Logs a message with the specific Marker at theWARN
level.void
Logs a message with the specific Marker at theWARN
level.void
warn
(Marker marker, MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theWARN
level with the specified Marker.void
warn
(Marker marker, MessageSupplier messageSupplier, Throwable throwable) 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 with the specific Marker at theWARN
level.void
Logs a message with the specific Marker at theWARN
level.void
warn
(MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theWARN
level.void
warn
(MessageSupplier messageSupplier, Throwable throwable) void
Logs a message which is only to be constructed if the logging level is theWARN
level.void
-
Method Details
-
catching
Logs aThrowable
that has been caught to a specific logging level.- Parameters:
level
- The logging Level.throwable
- the Throwable.
-
catching
Logs aThrowable
that has been caught at theERROR
level. Normally, one may wish to provide additional information with an exception while logging it; in these cases, one would not use this method. In other cases where simply logging the fact that an exception was swallowed somewhere (e.g., at the top of the stack trace in amain()
method), this method is ideal for it.- Parameters:
throwable
- the Throwable.
-
debug
Logs a message with the specific Marker at theDEBUG
level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message string to be logged
-
debug
Logs a message with the specific Marker at theDEBUG
level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message string to be loggedthrowable
- A Throwable or null.
-
debug
Logs a message which is only to be constructed if the logging level is theDEBUG
level with the specified Marker. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
.- Parameters:
marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message.- Since:
- 2.4
-
debug
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
throwable
passed as parameter. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
.- Parameters:
marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message.throwable
- A Throwable or null.- Since:
- 2.4
-
debug
Logs a message CharSequence with theDEBUG
level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message CharSequence to log.
-
debug
Logs a message CharSequence at theDEBUG
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message CharSequence to log.throwable
- theThrowable
to log, including its stack trace.
-
debug
Logs a message object with theDEBUG
level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message object to log.
-
debug
Logs a message at theDEBUG
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log.throwable
- theThrowable
to log, including its stack trace.
-
debug
Logs a message object with theDEBUG
level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message object to log.
-
debug
Logs a message with parameters at theDEBUG
level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.params
- parameters to the message.- See Also:
-
debug
Logs a message with parameters which are only to be constructed if the logging level is theDEBUG
level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.paramSuppliers
- An array of functions, which when called, produce the desired log message parameters.- Since:
- 2.4
-
debug
Logs a message at theDEBUG
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log.throwable
- theThrowable
to log, including its stack trace.
-
debug
Logs a message which is only to be constructed if the logging level is theDEBUG
level with the specified Marker.- Parameters:
marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message; the format depends on the message factory.- Since:
- 2.4
-
debug
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
throwable
passed as parameter.- Parameters:
marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message; the format depends on the message factory.throwable
- A Throwable or null.- Since:
- 2.4
-
debug
Logs a message with the specific Marker at theDEBUG
level.- Parameters:
message
- the message string to be logged
-
debug
Logs a message with the specific Marker at theDEBUG
level.- Parameters:
message
- the message string to be loggedthrowable
- A Throwable or null.
-
debug
Logs a message which is only to be constructed if the logging level is theDEBUG
level. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
.- Parameters:
messageSupplier
- A function, which when called, produces the desired log message.- Since:
- 2.4
-
debug
Logs a message (only to be constructed if the logging level is theDEBUG
level) including the stack trace of theThrowable
throwable
passed as parameter. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
.- Parameters:
messageSupplier
- A function, which when called, produces the desired log message.throwable
- theThrowable
to log, including its stack trace.- Since:
- 2.4
-
debug
Logs a message CharSequence with theDEBUG
level.- Parameters:
message
- the message object to log.
-
debug
Logs a CharSequence at theDEBUG
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
message
- the message CharSequence to log.throwable
- theThrowable
to log, including its stack trace.
-
debug
Logs a message object with theDEBUG
level.- Parameters:
message
- the message object to log.
-
debug
Logs a message at theDEBUG
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
message
- the message to log.throwable
- theThrowable
to log, including its stack trace.
-
debug
Logs a message object with theDEBUG
level.- Parameters:
message
- the message string to log.
-
debug
Logs a message with parameters at theDEBUG
level.- Parameters:
message
- the message to log; the format depends on the message factory.params
- parameters to the message.- See Also:
-
debug
Logs a message with parameters which are only to be constructed if the logging level is theDEBUG
level.- Parameters:
message
- the message to log; the format depends on the message factory.paramSuppliers
- An array of functions, which when called, produce the desired log message parameters.- Since:
- 2.4
-
debug
Logs a message at theDEBUG
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
message
- the message to log.throwable
- theThrowable
to log, including its stack trace.
-
debug
Logs a message which is only to be constructed if the logging level is theDEBUG
level.- Parameters:
messageSupplier
- A function, which when called, produces the desired log message; the format depends on the message factory.- Since:
- 2.4
-
debug
Logs a message (only to be constructed if the logging level is theDEBUG
level) including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
messageSupplier
- A function, which when called, produces the desired log message; the format depends on the message factory.throwable
- theThrowable
to log, including its stack trace.- Since:
- 2.4
-
debug
Logs a message with parameters at debug level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.
-
debug
Logs a message with parameters at debug level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.
-
debug
Logs a message with parameters at debug level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.
-
debug
Logs a message with parameters at debug level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.
-
debug
Logs a message with parameters at debug level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.
-
debug
void debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at debug level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.
-
debug
void debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at debug level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.
-
debug
void debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at debug level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.
-
debug
void debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at debug level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.
-
debug
void debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at debug level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.p9
- parameter to the message.
-
debug
Logs a message with parameters at debug level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.
-
debug
Logs a message with parameters at debug level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.
-
debug
Logs a message with parameters at debug level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.
-
debug
Logs a message with parameters at debug level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.
-
debug
Logs a message with parameters at debug level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.
-
debug
Logs a message with parameters at debug level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.
-
debug
void debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at debug level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.
-
debug
void debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at debug level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.
-
debug
void debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at debug level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.
-
debug
void debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at debug level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.p9
- parameter to the message.
-
entry
Deprecated.UsetraceEntry()
instead which performs the same function.Logs entry to a method. Used when the method in question has no parameters or when the parameters should not be logged. -
entry
Deprecated.UsetraceEntry(String, Object...)
instead which performs the same function.Logs entry to a method along with its parameters (consider using one of thetraceEntry(...)
methods instead.)For example:
public void doSomething(String foo, int bar) { LOGGER.entry(foo, bar); // do something }
The use of methods such as this are more effective when combined with aspect-oriented programming or other bytecode manipulation tools. It can be rather tedious (and messy) to use this type of method manually.
- Parameters:
params
- The parameters to the method.
-
error
Logs a message with the specific Marker at theERROR
level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message string to be logged
-
error
Logs a message with the specific Marker at theERROR
level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message string to be loggedthrowable
- A Throwable or null.
-
error
Logs a message which is only to be constructed if the logging level is theERROR
level with the specified Marker. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
.- Parameters:
marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message.- Since:
- 2.4
-
error
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
throwable
passed as parameter. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
.- Parameters:
marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message.throwable
- A Throwable or null.- Since:
- 2.4
-
error
Logs a message CharSequence with theERROR
level.- Parameters:
marker
- the marker data specific to this log statement.message
- the message CharSequence to log.
-
error
Logs a CharSequence at theERROR
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
marker
- the marker data specific to this log statement.message
- the message CharSequence to log.throwable
- theThrowable
to log, including its stack trace.
-
error
Logs a message object with theERROR
level.- Parameters:
marker
- the marker data specific to this log statement.message
- the message object to log.
-
error
Logs a message at theERROR
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
marker
- the marker data specific to this log statement.message
- the message object to log.throwable
- theThrowable
to log, including its stack trace.
-
error
Logs a message object with theERROR
level.- Parameters:
marker
- the marker data specific to this log statement.message
- the message object to log.
-
error
Logs a message with parameters at theERROR
level.- Parameters:
marker
- the marker data specific to this log statement.message
- the message to log; the format depends on the message factory.params
- parameters to the message.- See Also:
-
error
Logs a message with parameters which are only to be constructed if the logging level is theERROR
level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.paramSuppliers
- An array of functions, which when called, produce the desired log message parameters.- Since:
- 2.4
-
error
Logs a message at theERROR
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
marker
- the marker data specific to this log statement.message
- the message object to log.throwable
- theThrowable
to log, including its stack trace.
-
error
Logs a message which is only to be constructed if the logging level is theERROR
level with the specified Marker.- Parameters:
marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message; the format depends on the message factory.- Since:
- 2.4
-
error
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
throwable
passed as parameter.- Parameters:
marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message; the format depends on the message factory.throwable
- A Throwable or null.- Since:
- 2.4
-
error
Logs a message with the specific Marker at theERROR
level.- Parameters:
message
- the message string to be logged
-
error
Logs a message with the specific Marker at theERROR
level.- Parameters:
message
- the message string to be loggedthrowable
- A Throwable or null.
-
error
Logs a message which is only to be constructed if the logging level is theERROR
level. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
.- Parameters:
messageSupplier
- A function, which when called, produces the desired log message.- Since:
- 2.4
-
error
Logs a message (only to be constructed if the logging level is theERROR
level) including the stack trace of theThrowable
throwable
passed as parameter. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
.- Parameters:
messageSupplier
- A function, which when called, produces the desired log message.throwable
- theThrowable
to log, including its stack trace.- Since:
- 2.4
-
error
Logs a message CharSequence with theERROR
level.- Parameters:
message
- the message CharSequence to log.
-
error
Logs a CharSequence at theERROR
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
message
- the message CharSequence to log.throwable
- theThrowable
to log, including its stack trace.
-
error
Logs a message object with theERROR
level.- Parameters:
message
- the message object to log.
-
error
Logs a message at theERROR
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
message
- the message object to log.throwable
- theThrowable
to log, including its stack trace.
-
error
Logs a message object with theERROR
level.- Parameters:
message
- the message string to log.
-
error
Logs a message with parameters at theERROR
level.- Parameters:
message
- the message to log; the format depends on the message factory.params
- parameters to the message.- See Also:
-
error
Logs a message with parameters which are only to be constructed if the logging level is theERROR
level.- Parameters:
message
- the message to log; the format depends on the message factory.paramSuppliers
- An array of functions, which when called, produce the desired log message parameters.- Since:
- 2.4
-
error
Logs a message at theERROR
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
message
- the message object to log.throwable
- theThrowable
to log, including its stack trace.
-
error
Logs a message which is only to be constructed if the logging level is theERROR
level.- Parameters:
messageSupplier
- A function, which when called, produces the desired log message; the format depends on the message factory.- Since:
- 2.4
-
error
Logs a message (only to be constructed if the logging level is theERROR
level) including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
messageSupplier
- A function, which when called, produces the desired log message; the format depends on the message factory.throwable
- theThrowable
to log, including its stack trace.- Since:
- 2.4
-
error
Logs a message with parameters at error level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.
-
error
Logs a message with parameters at error level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.
-
error
Logs a message with parameters at error level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.
-
error
Logs a message with parameters at error level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.
-
error
Logs a message with parameters at error level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.
-
error
void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at error level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.
-
error
void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at error level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.
-
error
void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at error level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.
-
error
void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at error level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.
-
error
void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at error level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.p9
- parameter to the message.
-
error
Logs a message with parameters at error level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.
-
error
Logs a message with parameters at error level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.
-
error
Logs a message with parameters at error level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.
-
error
Logs a message with parameters at error level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.
-
error
Logs a message with parameters at error level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.
-
error
Logs a message with parameters at error level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.
-
error
void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at error level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.
-
error
void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at error level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.
-
error
void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at error level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.
-
error
void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at error level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.p9
- parameter to the message.
-
exit
Deprecated.UsetraceExit()
instead which performs the same function.Logs exit from a method. Used for methods that do not return anything. -
exit
Deprecated.UsetraceExit(Object)
instead which performs the same function.Logs exiting from a method with the result. This may be coded as:return LOGGER.exit(myResult);
- Type Parameters:
R
- The type of the parameter and object being returned.- Parameters:
result
- The result being returned from the method call.- Returns:
- the result.
-
fatal
Logs a message with the specific Marker at theFATAL
level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message string to be logged
-
fatal
Logs a message with the specific Marker at theFATAL
level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message string to be loggedthrowable
- A Throwable or null.
-
fatal
Logs a message which is only to be constructed if the logging level is theFATAL
level with the specified Marker. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
.- Parameters:
marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message.- Since:
- 2.4
-
fatal
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
throwable
passed as parameter. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
.- Parameters:
marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message.throwable
- A Throwable or null.- Since:
- 2.4
-
fatal
Logs a message CharSequence with theFATAL
level.- Parameters:
marker
- The marker data specific to this log statement.message
- the message CharSequence to log.
-
fatal
Logs a CharSequence at theFATAL
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
marker
- The marker data specific to this log statement.message
- the message CharSequence to log.throwable
- theThrowable
to log, including its stack trace.
-
fatal
Logs a message object with theFATAL
level.- Parameters:
marker
- The marker data specific to this log statement.message
- the message object to log.
-
fatal
Logs a message at theFATAL
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
marker
- The marker data specific to this log statement.message
- the message object to log.throwable
- theThrowable
to log, including its stack trace.
-
fatal
Logs a message object with theFATAL
level.- Parameters:
marker
- The marker data specific to this log statement.message
- the message object to log.
-
fatal
Logs a message with parameters at theFATAL
level.- Parameters:
marker
- The marker data specific to this log statement.message
- the message to log; the format depends on the message factory.params
- parameters to the message.- See Also:
-
fatal
Logs a message with parameters which are only to be constructed if the logging level is theFATAL
level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.paramSuppliers
- An array of functions, which when called, produce the desired log message parameters.- Since:
- 2.4
-
fatal
Logs a message at theFATAL
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
marker
- The marker data specific to this log statement.message
- the message object to log.throwable
- theThrowable
to log, including its stack trace.
-
fatal
Logs a message which is only to be constructed if the logging level is theFATAL
level with the specified Marker.- Parameters:
marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message; the format depends on the message factory.- Since:
- 2.4
-
fatal
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
throwable
passed as parameter.- Parameters:
marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message; the format depends on the message factory.throwable
- A Throwable or null.- Since:
- 2.4
-
fatal
Logs a message with the specific Marker at theFATAL
level.- Parameters:
message
- the message string to be logged
-
fatal
Logs a message with the specific Marker at theFATAL
level.- Parameters:
message
- the message string to be loggedthrowable
- A Throwable or null.
-
fatal
Logs a message which is only to be constructed if the logging level is theFATAL
level. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
.- Parameters:
messageSupplier
- A function, which when called, produces the desired log message.- Since:
- 2.4
-
fatal
Logs a message (only to be constructed if the logging level is theFATAL
level) including the stack trace of theThrowable
throwable
passed as parameter. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
.- Parameters:
messageSupplier
- A function, which when called, produces the desired log message.throwable
- theThrowable
to log, including its stack trace.- Since:
- 2.4
-
fatal
Logs a message CharSequence with theFATAL
level.- Parameters:
message
- the message CharSequence to log.
-
fatal
Logs a CharSequence at theFATAL
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
message
- the message CharSequence to log.throwable
- theThrowable
to log, including its stack trace.
-
fatal
Logs a message object with theFATAL
level.- Parameters:
message
- the message object to log.
-
fatal
Logs a message at theFATAL
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
message
- the message object to log.throwable
- theThrowable
to log, including its stack trace.
-
fatal
Logs a message object with theFATAL
level.- Parameters:
message
- the message string to log.
-
fatal
Logs a message with parameters at theFATAL
level.- Parameters:
message
- the message to log; the format depends on the message factory.params
- parameters to the message.- See Also:
-
fatal
Logs a message with parameters which are only to be constructed if the logging level is theFATAL
level.- Parameters:
message
- the message to log; the format depends on the message factory.paramSuppliers
- An array of functions, which when called, produce the desired log message parameters.- Since:
- 2.4
-
fatal
Logs a message at theFATAL
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
message
- the message object to log.throwable
- theThrowable
to log, including its stack trace.
-
fatal
Logs a message which is only to be constructed if the logging level is theFATAL
level.- Parameters:
messageSupplier
- A function, which when called, produces the desired log message; the format depends on the message factory.- Since:
- 2.4
-
fatal
Logs a message (only to be constructed if the logging level is theFATAL
level) including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
messageSupplier
- A function, which when called, produces the desired log message; the format depends on the message factory.throwable
- theThrowable
to log, including its stack trace.- Since:
- 2.4
-
fatal
Logs a message with parameters at fatal level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.
-
fatal
Logs a message with parameters at fatal level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.
-
fatal
Logs a message with parameters at fatal level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.
-
fatal
Logs a message with parameters at fatal level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.
-
fatal
Logs a message with parameters at fatal level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.
-
fatal
void fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at fatal level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.
-
fatal
void fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at fatal level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.
-
fatal
void fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at fatal level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.
-
fatal
void fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at fatal level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.
-
fatal
void fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at fatal level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.p9
- parameter to the message.
-
fatal
Logs a message with parameters at fatal level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.
-
fatal
Logs a message with parameters at fatal level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.
-
fatal
Logs a message with parameters at fatal level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.
-
fatal
Logs a message with parameters at fatal level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.
-
fatal
Logs a message with parameters at fatal level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.
-
fatal
Logs a message with parameters at fatal level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.
-
fatal
void fatal(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at fatal level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.
-
fatal
void fatal(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at fatal level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.
-
fatal
void fatal(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at fatal level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.
-
fatal
void fatal(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at fatal level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.p9
- parameter to the message.
-
getLevel
Level getLevel()Gets the Level associated with the Logger.- Returns:
- the Level associate with the Logger.
-
getMessageFactory
Gets the message factory used to convert message Objects and Strings/CharSequences into actual log Messages.Since version 2.6, Log4j internally uses message factories that implement the
MessageFactory2
interface. From version 2.6.2, the return type of this method was changed fromMessageFactory
to<MF extends MessageFactory> MF
. The returned factory will always implementMessageFactory2
, but the return type of this method could not be changed toMessageFactory2
without breaking binary compatibility.- Returns:
- the message factory, as an instance of
MessageFactory2
-
getFlowMessageFactory
FlowMessageFactory getFlowMessageFactory()Gets the flow message factory used to convert messages into flow messages.- Returns:
- the flow message factory, as an instance of
FlowMessageFactory
. - Since:
- 2.20
-
getName
String getName()Gets the logger name.- Returns:
- the logger name.
-
info
Logs a message with the specific Marker at theINFO
level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message string to be logged
-
info
Logs a message with the specific Marker at theINFO
level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message string to be loggedthrowable
- A Throwable or null.
-
info
Logs a message which is only to be constructed if the logging level is theINFO
level with the specified Marker. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
.- Parameters:
marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message.- Since:
- 2.4
-
info
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
throwable
passed as parameter. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
.- Parameters:
marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message.throwable
- A Throwable or null.- Since:
- 2.4
-
info
Logs a message CharSequence with theINFO
level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message CharSequence to log.
-
info
Logs a CharSequence at theINFO
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message CharSequence to log.throwable
- theThrowable
to log, including its stack trace.
-
info
Logs a message object with theINFO
level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message object to log.
-
info
Logs a message at theINFO
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message object to log.throwable
- theThrowable
to log, including its stack trace.
-
info
Logs a message object with theINFO
level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message object to log.
-
info
Logs a message with parameters at theINFO
level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.params
- parameters to the message.- See Also:
-
info
Logs a message with parameters which are only to be constructed if the logging level is theINFO
level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.paramSuppliers
- An array of functions, which when called, produce the desired log message parameters.- Since:
- 2.4
-
info
Logs a message at theINFO
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message object to log.throwable
- theThrowable
to log, including its stack trace.
-
info
Logs a message which is only to be constructed if the logging level is theINFO
level with the specified Marker.- Parameters:
marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message; the format depends on the message factory.- Since:
- 2.4
-
info
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
throwable
passed as parameter.- Parameters:
marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message; the format depends on the message factory.throwable
- A Throwable or null.- Since:
- 2.4
-
info
Logs a message with the specific Marker at theINFO
level.- Parameters:
message
- the message string to be logged
-
info
Logs a message with the specific Marker at theINFO
level.- Parameters:
message
- the message string to be loggedthrowable
- A Throwable or null.
-
info
Logs a message which is only to be constructed if the logging level is theINFO
level. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
.- Parameters:
messageSupplier
- A function, which when called, produces the desired log message.- Since:
- 2.4
-
info
Logs a message (only to be constructed if the logging level is theINFO
level) including the stack trace of theThrowable
throwable
passed as parameter. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
.- Parameters:
messageSupplier
- A function, which when called, produces the desired log message.throwable
- theThrowable
to log, including its stack trace.- Since:
- 2.4
-
info
Logs a message CharSequence with theINFO
level.- Parameters:
message
- the message CharSequence to log.
-
info
Logs a CharSequence at theINFO
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
message
- the message CharSequence to log.throwable
- theThrowable
to log, including its stack trace.
-
info
Logs a message object with theINFO
level.- Parameters:
message
- the message object to log.
-
info
Logs a message at theINFO
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
message
- the message object to log.throwable
- theThrowable
to log, including its stack trace.
-
info
Logs a message object with theINFO
level.- Parameters:
message
- the message string to log.
-
info
Logs a message with parameters at theINFO
level.- Parameters:
message
- the message to log; the format depends on the message factory.params
- parameters to the message.- See Also:
-
info
Logs a message with parameters which are only to be constructed if the logging level is theINFO
level.- Parameters:
message
- the message to log; the format depends on the message factory.paramSuppliers
- An array of functions, which when called, produce the desired log message parameters.- Since:
- 2.4
-
info
Logs a message at theINFO
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
message
- the message object to log.throwable
- theThrowable
to log, including its stack trace.
-
info
Logs a message which is only to be constructed if the logging level is theINFO
level.- Parameters:
messageSupplier
- A function, which when called, produces the desired log message; the format depends on the message factory.- Since:
- 2.4
-
info
Logs a message (only to be constructed if the logging level is theINFO
level) including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
messageSupplier
- A function, which when called, produces the desired log message; the format depends on the message factory.throwable
- theThrowable
to log, including its stack trace.- Since:
- 2.4
-
info
Logs a message with parameters at info level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.
-
info
Logs a message with parameters at info level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.
-
info
Logs a message with parameters at info level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.
-
info
Logs a message with parameters at info level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.
-
info
Logs a message with parameters at info level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.
-
info
void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at info level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.
-
info
void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at info level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.
-
info
void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at info level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.
-
info
void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at info level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.
-
info
void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at info level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.p9
- parameter to the message.
-
info
Logs a message with parameters at info level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.
-
info
Logs a message with parameters at info level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.
-
info
Logs a message with parameters at info level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.
-
info
Logs a message with parameters at info level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.
-
info
Logs a message with parameters at info level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.
-
info
Logs a message with parameters at info level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.
-
info
void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at info level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.
-
info
void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at info level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.
-
info
void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at info level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.
-
info
void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at info level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.p9
- parameter to the message.
-
isDebugEnabled
boolean isDebugEnabled()Checks whether this Logger is enabled for theDEBUG
Level.- Returns:
- boolean -
true
if this Logger is enabled for level DEBUG,false
otherwise.
-
isDebugEnabled
Checks whether this Logger is enabled for theDEBUG
Level.- Parameters:
marker
- The Marker to check- Returns:
- boolean -
true
if this Logger is enabled for level DEBUG,false
otherwise.
-
isEnabled
Checks whether this Logger is enabled for the given Level.Note that passing in
OFF
always returnstrue
.- Parameters:
level
- the Level to check- Returns:
- boolean -
true
if this Logger is enabled for level,false
otherwise.
-
isEnabled
Checks whether this Logger is enabled for the given Level and Marker.- Parameters:
level
- The Level to checkmarker
- The Marker to check- Returns:
- boolean -
true
if this Logger is enabled for level and marker,false
otherwise.
-
isErrorEnabled
boolean isErrorEnabled()Checks whether this Logger is enabled for theERROR
Level.- Returns:
- boolean -
true
if this Logger is enabled for levelERROR
,false
otherwise.
-
isErrorEnabled
Checks whether this Logger is enabled for theERROR
Level.- Parameters:
marker
- The Marker to check- Returns:
- boolean -
true
if this Logger is enabled for levelERROR
,false
otherwise.
-
isFatalEnabled
boolean isFatalEnabled()Checks whether this Logger is enabled for theFATAL
Level.- Returns:
- boolean -
true
if this Logger is enabled for levelFATAL
,false
otherwise.
-
isFatalEnabled
Checks whether this Logger is enabled for theFATAL
Level.- Parameters:
marker
- The Marker to check- Returns:
- boolean -
true
if this Logger is enabled for levelFATAL
,false
otherwise.
-
isInfoEnabled
boolean isInfoEnabled()Checks whether this Logger is enabled for theINFO
Level.- Returns:
- boolean -
true
if this Logger is enabled for level INFO,false
otherwise.
-
isInfoEnabled
Checks whether this Logger is enabled for theINFO
Level.- Parameters:
marker
- The Marker to check- Returns:
- boolean -
true
if this Logger is enabled for level INFO,false
otherwise.
-
isTraceEnabled
boolean isTraceEnabled()Checks whether this Logger is enabled for theTRACE
level.- Returns:
- boolean -
true
if this Logger is enabled for level TRACE,false
otherwise.
-
isTraceEnabled
Checks whether this Logger is enabled for theTRACE
level.- Parameters:
marker
- The Marker to check- Returns:
- boolean -
true
if this Logger is enabled for level TRACE,false
otherwise.
-
isWarnEnabled
boolean isWarnEnabled()Checks whether this Logger is enabled for theWARN
Level.- Returns:
- boolean -
true
if this Logger is enabled for levelWARN
,false
otherwise.
-
isWarnEnabled
Checks whether this Logger is enabled for theWARN
Level.- Parameters:
marker
- The Marker to check- Returns:
- boolean -
true
if this Logger is enabled for levelWARN
,false
otherwise.
-
log
Logs a message with the specific Marker at the given level.- Parameters:
level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message string to be logged
-
log
Logs a message with the specific Marker at the given level.- Parameters:
level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message string to be loggedthrowable
- A Throwable or null.
-
log
Logs a message which is only to be constructed if the logging level is the specified level with the specified Marker. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
.- Parameters:
level
- the logging levelmarker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message.- Since:
- 2.4
-
log
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. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
.- Parameters:
level
- the logging levelmarker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message.throwable
- A Throwable or null.- Since:
- 2.4
-
log
Logs a message CharSequence with the given level.- Parameters:
level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message CharSequence to log.
-
log
Logs a CharSequence at the given level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message CharSequence to log.throwable
- theThrowable
to log, including its stack trace.
-
log
Logs a message object with the given level.- Parameters:
level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message object to log.
-
log
Logs a message at the given level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message to log.throwable
- theThrowable
to log, including its stack trace.
-
log
Logs a message object with the given level.- Parameters:
level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message object to log.
-
log
Logs a message with parameters at the given level.- Parameters:
level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.params
- parameters to the message.- See Also:
-
log
Logs a message with parameters which are only to be constructed if the logging level is the specified level.- Parameters:
level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.paramSuppliers
- An array of functions, which when called, produce the desired log message parameters.- Since:
- 2.4
-
log
Logs a message at the given level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message to log.throwable
- theThrowable
to log, including its stack trace.
-
log
Logs a message (only to be constructed if the logging level is the specified level) with the specified Marker.- Parameters:
level
- the logging levelmarker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message; the format depends on the message factory.- Since:
- 2.4
-
log
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.- Parameters:
level
- the logging levelmarker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message; the format depends on the message factory.throwable
- A Throwable or null.- Since:
- 2.4
-
log
Logs a message with the specific Marker at the given level.- Parameters:
level
- the logging levelmessage
- the message string to be logged
-
log
Logs a message with the specific Marker at the given level.- Parameters:
level
- the logging levelmessage
- the message string to be loggedthrowable
- A Throwable or null.
-
log
Logs a message which is only to be constructed if the logging level is the specified level. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
.- Parameters:
level
- the logging levelmessageSupplier
- A function, which when called, produces the desired log message.- Since:
- 2.4
-
log
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. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
.- Parameters:
level
- the logging levelmessageSupplier
- A function, which when called, produces the desired log message.throwable
- theThrowable
to log, including its stack log.- Since:
- 2.4
-
log
Logs a message CharSequence with the given level.- Parameters:
level
- the logging levelmessage
- the message CharSequence to log.
-
log
Logs a CharSequence at the given level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
level
- the logging levelmessage
- the message CharSequence to log.throwable
- theThrowable
to log, including its stack trace.
-
log
Logs a message object with the given level.- Parameters:
level
- the logging levelmessage
- the message object to log.
-
log
Logs a message at the given level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
level
- the logging levelmessage
- the message to log.throwable
- theThrowable
to log, including its stack trace.
-
log
Logs a message object with the given level.- Parameters:
level
- the logging levelmessage
- the message string to log.
-
log
Logs a message with parameters at the given level.- Parameters:
level
- the logging levelmessage
- the message to log; the format depends on the message factory.params
- parameters to the message.- See Also:
-
log
Logs a message with parameters which are only to be constructed if the logging level is the specified level.- Parameters:
level
- the logging levelmessage
- the message to log; the format depends on the message factory.paramSuppliers
- An array of functions, which when called, produce the desired log message parameters.- Since:
- 2.4
-
log
Logs a message at the given level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
level
- the logging levelmessage
- the message to log.throwable
- theThrowable
to log, including its stack trace.
-
log
Logs a message which is only to be constructed if the logging level is the specified level.- Parameters:
level
- the logging levelmessageSupplier
- A function, which when called, produces the desired log message; the format depends on the message factory.- Since:
- 2.4
-
log
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.- Parameters:
level
- the logging levelmessageSupplier
- A function, which when called, produces the desired log message; the format depends on the message factory.throwable
- theThrowable
to log, including its stack log.- Since:
- 2.4
-
log
Logs a message with parameters at the specified level.- Parameters:
level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.
-
log
Logs a message with parameters at the specified level.- Parameters:
level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.
-
log
Logs a message with parameters at the specified level.- Parameters:
level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.
-
log
Logs a message with parameters at the specified level.- Parameters:
level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.
-
log
void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4) Logs a message with parameters at the specified level.- Parameters:
level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.
-
log
void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at the specified level.- Parameters:
level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.
-
log
void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at the specified level.- Parameters:
level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.
-
log
void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at the specified level.- Parameters:
level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.
-
log
void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at the specified level.- Parameters:
level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.
-
log
void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at the specified level.- Parameters:
level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.p9
- parameter to the message.
-
log
Logs a message with parameters at the specified level.- Parameters:
level
- the logging levelmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.
-
log
Logs a message with parameters at the specified level.- Parameters:
level
- the logging levelmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.
-
log
Logs a message with parameters at the specified level.- Parameters:
level
- the logging levelmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.
-
log
Logs a message with parameters at the specified level.- Parameters:
level
- the logging levelmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.
-
log
Logs a message with parameters at the specified level.- Parameters:
level
- the logging levelmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.
-
log
void log(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at the specified level.- Parameters:
level
- the logging levelmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.
-
log
void log(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at the specified level.- Parameters:
level
- the logging levelmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.
-
log
void log(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at the specified level.- Parameters:
level
- the logging levelmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.
-
log
void log(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at the specified level.- Parameters:
level
- the logging levelmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.
-
log
void log(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at the specified level.- Parameters:
level
- the logging levelmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.p9
- parameter to the message.
-
printf
Logs a formatted message using the specified format string and arguments.- Parameters:
level
- The logging Level.marker
- the marker data specific to this log statement.format
- The format String.params
- Arguments specified by the format.
-
printf
Logs a formatted message using the specified format string and arguments.- Parameters:
level
- The logging Level.format
- The format String.params
- Arguments specified by the format.
-
throwing
Logs aThrowable
to be thrown. This may be coded as:throw logger.throwing(Level.DEBUG, myException);
- Type Parameters:
T
- the Throwable type.- Parameters:
level
- The logging Level.throwable
- The Throwable.- Returns:
- the Throwable.
-
throwing
Logs aThrowable
to be thrown at theERROR
level. This may be coded as:throw logger.throwing(myException);
- Type Parameters:
T
- the Throwable type.- Parameters:
throwable
- The Throwable.- Returns:
- the Throwable.
-
trace
Logs a message with the specific Marker at theTRACE
level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message string to be logged
-
trace
Logs a message with the specific Marker at theTRACE
level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message string to be loggedthrowable
- A Throwable or null.
-
trace
Logs a message which is only to be constructed if the logging level is theTRACE
level with the specified Marker. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
.- Parameters:
marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message.- Since:
- 2.4
-
trace
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
throwable
passed as parameter. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
.- Parameters:
marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message.throwable
- A Throwable or null.- Since:
- 2.4
-
trace
Logs a message CharSequence with theTRACE
level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message CharSequence to log.
-
trace
Logs a CharSequence at theTRACE
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message CharSequence to log.throwable
- theThrowable
to log, including its stack trace.- See Also:
-
trace
Logs a message object with theTRACE
level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message object to log.
-
trace
Logs a message at theTRACE
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message object to log.throwable
- theThrowable
to log, including its stack trace.- See Also:
-
trace
Logs a message object with theTRACE
level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message string to log.
-
trace
Logs a message with parameters at theTRACE
level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.params
- parameters to the message.- See Also:
-
trace
Logs a message with parameters which are only to be constructed if the logging level is theTRACE
level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.paramSuppliers
- An array of functions, which when called, produce the desired log message parameters.- Since:
- 2.4
-
trace
Logs a message at theTRACE
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message object to log.throwable
- theThrowable
to log, including its stack trace.- See Also:
-
trace
Logs a message which is only to be constructed if the logging level is theTRACE
level with the specified Marker.- Parameters:
marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message; the format depends on the message factory.- Since:
- 2.4
-
trace
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
throwable
passed as parameter.- Parameters:
marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message; the format depends on the message factory.throwable
- A Throwable or null.- Since:
- 2.4
-
trace
Logs a message with the specific Marker at theTRACE
level.- Parameters:
message
- the message string to be logged
-
trace
Logs a message with the specific Marker at theTRACE
level.- Parameters:
message
- the message string to be loggedthrowable
- A Throwable or null.
-
trace
Logs a message which is only to be constructed if the logging level is theTRACE
level. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
.- Parameters:
messageSupplier
- A function, which when called, produces the desired log message.- Since:
- 2.4
-
trace
Logs a message (only to be constructed if the logging level is theTRACE
level) including the stack trace of theThrowable
throwable
passed as parameter. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
.- Parameters:
messageSupplier
- A function, which when called, produces the desired log message.throwable
- theThrowable
to log, including its stack trace.- Since:
- 2.4
-
trace
Logs a message CharSequence with theTRACE
level.- Parameters:
message
- the message CharSequence to log.
-
trace
Logs a CharSequence at theTRACE
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
message
- the message CharSequence to log.throwable
- theThrowable
to log, including its stack trace.- See Also:
-
trace
Logs a message object with theTRACE
level.- Parameters:
message
- the message object to log.
-
trace
Logs a message at theTRACE
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
message
- the message object to log.throwable
- theThrowable
to log, including its stack trace.- See Also:
-
trace
Logs a message object with theTRACE
level.- Parameters:
message
- the message string to log.
-
trace
Logs a message with parameters at theTRACE
level.- Parameters:
message
- the message to log; the format depends on the message factory.params
- parameters to the message.- See Also:
-
trace
Logs a message with parameters which are only to be constructed if the logging level is theTRACE
level.- Parameters:
message
- the message to log; the format depends on the message factory.paramSuppliers
- An array of functions, which when called, produce the desired log message parameters.- Since:
- 2.4
-
trace
Logs a message at theTRACE
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
message
- the message object to log.throwable
- theThrowable
to log, including its stack trace.- See Also:
-
trace
Logs a message which is only to be constructed if the logging level is theTRACE
level.- Parameters:
messageSupplier
- A function, which when called, produces the desired log message; the format depends on the message factory.- Since:
- 2.4
-
trace
Logs a message (only to be constructed if the logging level is theTRACE
level) including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
messageSupplier
- A function, which when called, produces the desired log message; the format depends on the message factory.throwable
- theThrowable
to log, including its stack trace.- Since:
- 2.4
-
trace
Logs a message with parameters at trace level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.
-
trace
Logs a message with parameters at trace level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.
-
trace
Logs a message with parameters at trace level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.
-
trace
Logs a message with parameters at trace level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.
-
trace
Logs a message with parameters at trace level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.
-
trace
void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at trace level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.
-
trace
void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at trace level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.
-
trace
void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at trace level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.
-
trace
void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at trace level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.
-
trace
void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at trace level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.p9
- parameter to the message.
-
trace
Logs a message with parameters at trace level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.
-
trace
Logs a message with parameters at trace level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.
-
trace
Logs a message with parameters at trace level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.
-
trace
Logs a message with parameters at trace level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.
-
trace
Logs a message with parameters at trace level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.
-
trace
Logs a message with parameters at trace level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.
-
trace
void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at trace level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.
-
trace
void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at trace level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.
-
trace
void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at trace level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.
-
trace
void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at trace level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.p9
- parameter to the message.
-
traceEntry
EntryMessage traceEntry()Logs entry to a method. Used when the method in question has no parameters or when the parameters should not be logged.- Returns:
- built message
- Since:
- 2.6
-
traceEntry
Logs entry to a method along with its parameters. For example,public void doSomething(String foo, int bar) { LOGGER.traceEntry("Parameters: {} and {}", foo, bar); // do something }
or:public int doSomething(String foo, int bar) { Message m = LOGGER.traceEntry("doSomething(foo={}, bar={})", foo, bar); // do something return traceExit(m, value); }
- Parameters:
format
- The format String for the parameters.params
- The parameters to the method.- Returns:
- The built Message
- Since:
- 2.6
-
traceEntry
Logs entry to a method along with its parameters. For example,public void doSomething(Request foo) { LOGGER.traceEntry(()->gson.toJson(foo)); // do something }
- Parameters:
paramSuppliers
- The Suppliers for the parameters to the method.- Returns:
- built message
- Since:
- 2.6
-
traceEntry
Logs entry to a method along with its parameters. For example,public void doSomething(String foo, int bar) { LOGGER.traceEntry("Parameters: {} and {}", ()->gson.toJson(foo), ()-> bar); // do something }
- Parameters:
format
- The format String for the parameters.paramSuppliers
- The Suppliers for the parameters to the method.- Returns:
- built message
- Since:
- 2.6
-
traceEntry
Logs entry to a method using a Message to describe the parameters.public void doSomething(Request foo) { LOGGER.traceEntry(new JsonMessage(foo)); // do something }
Avoid passing a
ReusableMessage
to this method (therefore, also avoid passing messages created by callinglogger.getMessageFactory().newMessage("some message")
): Log4j will replace such messages with an immutable message to prevent situations where the reused message instance is modified by subsequent calls to the logger before the returnedEntryMessage
is fully processed.- Parameters:
message
- The message. Avoid specifying a ReusableMessage, use immutable messages instead.- Returns:
- the built message
- Since:
- 2.6
- See Also:
-
traceExit
void traceExit()Logs exit from a method. Used for methods that do not return anything.- Since:
- 2.6
-
traceExit
<R> R traceExit(R result) Logs exiting from a method with the result. This may be coded as:return LOGGER.traceExit(myResult);
- Type Parameters:
R
- The type of the parameter and object being returned.- Parameters:
result
- The result being returned from the method call.- Returns:
- the result.
- Since:
- 2.6
-
traceExit
Logs exiting from a method with the result. This may be coded as:return LOGGER.traceExit("Result: {}", myResult);
- Type Parameters:
R
- The type of the parameter and object being returned.- Parameters:
format
- The format String for the result.result
- The result being returned from the method call.- Returns:
- the result.
- Since:
- 2.6
-
traceExit
Logs exiting from a method with no result. Allows custom formatting of the result. This may be coded as:public long doSomething(int a, int b) { EntryMessage m = traceEntry("doSomething(a={}, b={})", a, b); // ... return LOGGER.traceExit(m); }
- Parameters:
message
- The Message containing the formatted result.- Since:
- 2.6
-
traceExit
Logs exiting from a method with the result. Allows custom formatting of the result. This may be coded as:public long doSomething(int a, int b) { EntryMessage m = traceEntry("doSomething(a={}, b={})", a, b); // ... return LOGGER.traceExit(m, myResult); }
- Type Parameters:
R
- The type of the parameter and object being returned.- Parameters:
message
- The Message containing the formatted result.result
- The result being returned from the method call.- Returns:
- the result.
- Since:
- 2.6
-
traceExit
Logs exiting from a method with the result. Allows custom formatting of the result. This may be coded as:return LOGGER.traceExit(new JsonMessage(myResult), myResult);
- Type Parameters:
R
- The type of the parameter and object being returned.- Parameters:
message
- The Message containing the formatted result.result
- The result being returned from the method call.- Returns:
- the result.
- Since:
- 2.6
-
warn
Logs a message with the specific Marker at theWARN
level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message string to be logged
-
warn
Logs a message with the specific Marker at theWARN
level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message string to be loggedthrowable
- A Throwable or null.
-
warn
Logs a message which is only to be constructed if the logging level is theWARN
level with the specified Marker. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
.- Parameters:
marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message.- Since:
- 2.4
-
warn
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
throwable
passed as parameter. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
.- Parameters:
marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message.throwable
- A Throwable or null.- Since:
- 2.4
-
warn
Logs a message CharSequence with theWARN
level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message CharSequence to log.
-
warn
Logs a CharSequence at theWARN
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message CharSequence to log.throwable
- theThrowable
to log, including its stack trace.
-
warn
Logs a message object with theWARN
level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message object to log.
-
warn
Logs a message at theWARN
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message object to log.throwable
- theThrowable
to log, including its stack trace.
-
warn
Logs a message object with theWARN
level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message object to log.
-
warn
Logs a message with parameters at theWARN
level.- Parameters:
marker
- the marker data specific to this log statement.message
- the message to log; the format depends on the message factory.params
- parameters to the message.- See Also:
-
warn
Logs a message with parameters which are only to be constructed if the logging level is theWARN
level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.paramSuppliers
- An array of functions, which when called, produce the desired log message parameters.- Since:
- 2.4
-
warn
Logs a message at theWARN
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message object to log.throwable
- theThrowable
to log, including its stack trace.
-
warn
Logs a message which is only to be constructed if the logging level is theWARN
level with the specified Marker.- Parameters:
marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message; the format depends on the message factory.- Since:
- 2.4
-
warn
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
throwable
passed as parameter.- Parameters:
marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message; the format depends on the message factory.throwable
- A Throwable or null.- Since:
- 2.4
-
warn
Logs a message with the specific Marker at theWARN
level.- Parameters:
message
- the message string to be logged
-
warn
Logs a message with the specific Marker at theWARN
level.- Parameters:
message
- the message string to be loggedthrowable
- A Throwable or null.
-
warn
Logs a message which is only to be constructed if the logging level is theWARN
level. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
.- Parameters:
messageSupplier
- A function, which when called, produces the desired log message.- Since:
- 2.4
-
warn
Logs a message (only to be constructed if the logging level is theWARN
level) including the stack warn of theThrowable
throwable
passed as parameter. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
.- Parameters:
messageSupplier
- A function, which when called, produces the desired log message.throwable
- theThrowable
to log, including its stack warn.- Since:
- 2.4
-
warn
Logs a message CharSequence with theWARN
level.- Parameters:
message
- the message CharSequence to log.
-
warn
Logs a CharSequence at theWARN
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
message
- the message CharSequence to log.throwable
- theThrowable
to log, including its stack trace.
-
warn
Logs a message object with theWARN
level.- Parameters:
message
- the message object to log.
-
warn
Logs a message at theWARN
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
message
- the message object to log.throwable
- theThrowable
to log, including its stack trace.
-
warn
Logs a message object with theWARN
level.- Parameters:
message
- the message string to log.
-
warn
Logs a message with parameters at theWARN
level.- Parameters:
message
- the message to log; the format depends on the message factory.params
- parameters to the message.- See Also:
-
warn
Logs a message with parameters which are only to be constructed if the logging level is theWARN
level.- Parameters:
message
- the message to log; the format depends on the message factory.paramSuppliers
- An array of functions, which when called, produce the desired log message parameters.- Since:
- 2.4
-
warn
Logs a message at theWARN
level including the stack trace of theThrowable
throwable
passed as parameter.- Parameters:
message
- the message object to log.throwable
- theThrowable
to log, including its stack trace.
-
warn
Logs a message which is only to be constructed if the logging level is theWARN
level.- Parameters:
messageSupplier
- A function, which when called, produces the desired log message; the format depends on the message factory.- Since:
- 2.4
-
warn
Logs a message (only to be constructed if the logging level is theWARN
level) including the stack warn of theThrowable
throwable
passed as parameter.- Parameters:
messageSupplier
- A function, which when called, produces the desired log message; the format depends on the message factory.throwable
- theThrowable
to log, including its stack warn.- Since:
- 2.4
-
warn
Logs a message with parameters at warn level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.
-
warn
Logs a message with parameters at warn level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.
-
warn
Logs a message with parameters at warn level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.
-
warn
Logs a message with parameters at warn level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.
-
warn
Logs a message with parameters at warn level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.
-
warn
void warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at warn level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.
-
warn
void warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at warn level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.
-
warn
void warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at warn level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.
-
warn
void warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at warn level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.
-
warn
void warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at warn level.- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.p9
- parameter to the message.
-
warn
Logs a message with parameters at warn level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.
-
warn
Logs a message with parameters at warn level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.
-
warn
Logs a message with parameters at warn level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.
-
warn
Logs a message with parameters at warn level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.
-
warn
Logs a message with parameters at warn level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.
-
warn
Logs a message with parameters at warn level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.
-
warn
void warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at warn level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.
-
warn
void warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at warn level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.
-
warn
void warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at warn level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.
-
warn
void warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at warn level.- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.p9
- parameter to the message.
-
logMessage
default void logMessage(Level level, Marker marker, String fqcn, StackTraceElement location, Message message, Throwable throwable) Logs a Message.- Parameters:
level
- The logging Level to check.marker
- A Marker or null.fqcn
- The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.location
- The location of the caller.message
- The message format.throwable
- theThrowable
to log, including its stack trace.- Since:
- 2.13.0
-
atTrace
Construct a trace log event.- Returns:
- a LogBuilder.
- Since:
- 2.13.0
-
atDebug
Construct a trace log event.- Returns:
- a LogBuilder.
- Since:
- 2.13.0
-
atInfo
Construct a trace log event.- Returns:
- a LogBuilder.
- Since:
- 2.13.0
-
atWarn
Construct a trace log event.- Returns:
- a LogBuilder.
- Since:
- 2.13.0
-
atError
Construct a trace log event.- Returns:
- a LogBuilder.
- Since:
- 2.13.0
-
atFatal
Construct a trace log event.- Returns:
- a LogBuilder.
- Since:
- 2.13.0
-
always
Construct a log event that will always be logged.- Returns:
- a LogBuilder.
- Since:
- 2.13.0
-
atLevel
Construct a log event.- Parameters:
level
- Any level (ignoreed here).- Returns:
- a LogBuilder.
- Since:
- 2.13.0
-
traceEntry()
instead which performs the same function.