public interface Logger
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 {@code Supplier
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.
Modifier and Type | Method and Description |
---|---|
default 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 |
atLevel(Level level)
Construct a log event.
|
default LogBuilder |
atTrace()
Construct a trace log event.
|
default LogBuilder |
atWarn()
Construct a trace log event.
|
void |
catching(Level level,
Throwable throwable)
Logs a
Throwable that has been caught to a specific logging level. |
void |
catching(Throwable throwable)
|
void |
debug(CharSequence message)
Logs a message CharSequence with the
DEBUG level. |
void |
debug(CharSequence message,
Throwable throwable)
|
void |
debug(Marker marker,
CharSequence message)
Logs a message CharSequence with the
DEBUG level. |
void |
debug(Marker marker,
CharSequence message,
Throwable throwable)
|
void |
debug(Marker marker,
Message message)
Logs a message with the specific Marker at the
DEBUG level. |
void |
debug(Marker marker,
MessageSupplier messageSupplier)
Logs a message which is only to be constructed if the logging level is the
DEBUG level with
the specified Marker. |
void |
debug(Marker marker,
MessageSupplier messageSupplier,
Throwable throwable)
|
void |
debug(Marker marker,
Message message,
Throwable throwable)
Logs a message with the specific Marker at the
DEBUG level. |
void |
debug(Marker marker,
Object message)
Logs a message object with the
DEBUG level. |
void |
debug(Marker marker,
Object message,
Throwable throwable)
|
void |
debug(Marker marker,
String message)
Logs a message object with the
DEBUG level. |
void |
debug(Marker marker,
String message,
Object... params)
Logs a message with parameters at the
DEBUG level. |
void |
debug(Marker marker,
String message,
Object p0)
Logs a message with parameters at debug level.
|
void |
debug(Marker marker,
String message,
Object p0,
Object p1)
Logs a message with parameters at debug level.
|
void |
debug(Marker marker,
String message,
Object p0,
Object p1,
Object p2)
Logs a message with parameters at debug level.
|
void |
debug(Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3)
Logs a message with parameters at debug level.
|
void |
debug(Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4)
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 |
debug(Marker marker,
String message,
Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is the
DEBUG level. |
void |
debug(Marker marker,
String message,
Throwable throwable)
|
void |
debug(Marker marker,
Supplier<?> messageSupplier)
Logs a message which is only to be constructed if the logging level is the
DEBUG level with
the specified Marker. |
void |
debug(Marker marker,
Supplier<?> messageSupplier,
Throwable throwable)
|
void |
debug(Message message)
Logs a message with the specific Marker at the
DEBUG level. |
void |
debug(MessageSupplier messageSupplier)
Logs a message which is only to be constructed if the logging level is the
DEBUG level. |
void |
debug(MessageSupplier messageSupplier,
Throwable throwable)
|
void |
debug(Message message,
Throwable throwable)
Logs a message with the specific Marker at the
DEBUG level. |
void |
debug(Object message)
Logs a message object with the
DEBUG level. |
void |
debug(Object message,
Throwable throwable)
|
void |
debug(String message)
Logs a message object with the
DEBUG level. |
void |
debug(String message,
Object... params)
Logs a message with parameters at the
DEBUG level. |
void |
debug(String message,
Object p0)
Logs a message with parameters at debug level.
|
void |
debug(String message,
Object p0,
Object p1)
Logs a message with parameters at debug level.
|
void |
debug(String message,
Object p0,
Object p1,
Object p2)
Logs a message with parameters at debug level.
|
void |
debug(String message,
Object p0,
Object p1,
Object p2,
Object p3)
Logs a message with parameters at debug level.
|
void |
debug(String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4)
Logs a message with parameters at debug level.
|
void |
debug(String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5)
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)
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 |
debug(String message,
Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is the
DEBUG level. |
void |
debug(String message,
Throwable throwable)
|
void |
debug(Supplier<?> messageSupplier)
Logs a message which is only to be constructed if the logging level is the
DEBUG level. |
void |
debug(Supplier<?> messageSupplier,
Throwable throwable)
|
void |
entry()
Deprecated.
Use
traceEntry() instead which performs the same function. |
void |
entry(Object... params)
Deprecated.
Use
traceEntry(String, Object...) instead which performs the same function. |
void |
error(CharSequence message)
Logs a message CharSequence with the
ERROR level. |
void |
error(CharSequence message,
Throwable throwable)
|
void |
error(Marker marker,
CharSequence message)
Logs a message CharSequence with the
ERROR level. |
void |
error(Marker marker,
CharSequence message,
Throwable throwable)
|
void |
error(Marker marker,
Message message)
Logs a message with the specific Marker at the
ERROR level. |
void |
error(Marker marker,
MessageSupplier messageSupplier)
Logs a message which is only to be constructed if the logging level is the
ERROR level with
the specified Marker. |
void |
error(Marker marker,
MessageSupplier messageSupplier,
Throwable throwable)
|
void |
error(Marker marker,
Message message,
Throwable throwable)
Logs a message with the specific Marker at the
ERROR level. |
void |
error(Marker marker,
Object message)
Logs a message object with the
ERROR level. |
void |
error(Marker marker,
Object message,
Throwable throwable)
|
void |
error(Marker marker,
String message)
Logs a message object with the
ERROR level. |
void |
error(Marker marker,
String message,
Object... params)
Logs a message with parameters at the
ERROR level. |
void |
error(Marker marker,
String message,
Object p0)
Logs a message with parameters at error level.
|
void |
error(Marker marker,
String message,
Object p0,
Object p1)
Logs a message with parameters at error level.
|
void |
error(Marker marker,
String message,
Object p0,
Object p1,
Object p2)
Logs a message with parameters at error level.
|
void |
error(Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3)
Logs a message with parameters at error level.
|
void |
error(Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4)
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 |
error(Marker marker,
String message,
Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is the
ERROR level. |
void |
error(Marker marker,
String message,
Throwable throwable)
|
void |
error(Marker marker,
Supplier<?> messageSupplier)
Logs a message which is only to be constructed if the logging level is the
ERROR level with
the specified Marker. |
void |
error(Marker marker,
Supplier<?> messageSupplier,
Throwable throwable)
|
void |
error(Message message)
Logs a message with the specific Marker at the
ERROR level. |
void |
error(MessageSupplier messageSupplier)
Logs a message which is only to be constructed if the logging level is the
ERROR level. |
void |
error(MessageSupplier messageSupplier,
Throwable throwable)
|
void |
error(Message message,
Throwable throwable)
Logs a message with the specific Marker at the
ERROR level. |
void |
error(Object message)
Logs a message object with the
ERROR level. |
void |
error(Object message,
Throwable throwable)
|
void |
error(String message)
Logs a message object with the
ERROR level. |
void |
error(String message,
Object... params)
Logs a message with parameters at the
ERROR level. |
void |
error(String message,
Object p0)
Logs a message with parameters at error level.
|
void |
error(String message,
Object p0,
Object p1)
Logs a message with parameters at error level.
|
void |
error(String message,
Object p0,
Object p1,
Object p2)
Logs a message with parameters at error level.
|
void |
error(String message,
Object p0,
Object p1,
Object p2,
Object p3)
Logs a message with parameters at error level.
|
void |
error(String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4)
Logs a message with parameters at error level.
|
void |
error(String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5)
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)
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 |
error(String message,
Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is the
ERROR level. |
void |
error(String message,
Throwable throwable)
|
void |
error(Supplier<?> messageSupplier)
Logs a message which is only to be constructed if the logging level is the
ERROR level. |
void |
error(Supplier<?> messageSupplier,
Throwable throwable)
|
void |
exit()
Deprecated.
Use
traceExit() instead which performs the same function. |
<R> R |
exit(R result)
Deprecated.
Use
traceExit(Object) instead which performs the same function. |
void |
fatal(CharSequence message)
Logs a message CharSequence with the
FATAL level. |
void |
fatal(CharSequence message,
Throwable throwable)
|
void |
fatal(Marker marker,
CharSequence message)
Logs a message CharSequence with the
FATAL level. |
void |
fatal(Marker marker,
CharSequence message,
Throwable throwable)
|
void |
fatal(Marker marker,
Message message)
Logs a message with the specific Marker at the
FATAL level. |
void |
fatal(Marker marker,
MessageSupplier messageSupplier)
Logs a message which is only to be constructed if the logging level is the
FATAL level with
the specified Marker. |
void |
fatal(Marker marker,
MessageSupplier messageSupplier,
Throwable throwable)
|
void |
fatal(Marker marker,
Message message,
Throwable throwable)
Logs a message with the specific Marker at the
FATAL level. |
void |
fatal(Marker marker,
Object message)
Logs a message object with the
FATAL level. |
void |
fatal(Marker marker,
Object message,
Throwable throwable)
|
void |
fatal(Marker marker,
String message)
Logs a message object with the
FATAL level. |
void |
fatal(Marker marker,
String message,
Object... params)
Logs a message with parameters at the
FATAL level. |
void |
fatal(Marker marker,
String message,
Object p0)
Logs a message with parameters at fatal level.
|
void |
fatal(Marker marker,
String message,
Object p0,
Object p1)
Logs a message with parameters at fatal level.
|
void |
fatal(Marker marker,
String message,
Object p0,
Object p1,
Object p2)
Logs a message with parameters at fatal level.
|
void |
fatal(Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3)
Logs a message with parameters at fatal level.
|
void |
fatal(Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4)
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 |
fatal(Marker marker,
String message,
Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is the
FATAL level. |
void |
fatal(Marker marker,
String message,
Throwable throwable)
|
void |
fatal(Marker marker,
Supplier<?> messageSupplier)
Logs a message which is only to be constructed if the logging level is the
FATAL level with
the specified Marker. |
void |
fatal(Marker marker,
Supplier<?> messageSupplier,
Throwable throwable)
|
void |
fatal(Message message)
Logs a message with the specific Marker at the
FATAL level. |
void |
fatal(MessageSupplier messageSupplier)
Logs a message which is only to be constructed if the logging level is the
FATAL level. |
void |
fatal(MessageSupplier messageSupplier,
Throwable throwable)
|
void |
fatal(Message message,
Throwable throwable)
Logs a message with the specific Marker at the
FATAL level. |
void |
fatal(Object message)
Logs a message object with the
FATAL level. |
void |
fatal(Object message,
Throwable throwable)
|
void |
fatal(String message)
Logs a message object with the
FATAL level. |
void |
fatal(String message,
Object... params)
Logs a message with parameters at the
FATAL level. |
void |
fatal(String message,
Object p0)
Logs a message with parameters at fatal level.
|
void |
fatal(String message,
Object p0,
Object p1)
Logs a message with parameters at fatal level.
|
void |
fatal(String message,
Object p0,
Object p1,
Object p2)
Logs a message with parameters at fatal level.
|
void |
fatal(String message,
Object p0,
Object p1,
Object p2,
Object p3)
Logs a message with parameters at fatal level.
|
void |
fatal(String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4)
Logs a message with parameters at fatal level.
|
void |
fatal(String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5)
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)
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 |
fatal(String message,
Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is the
FATAL level. |
void |
fatal(String message,
Throwable throwable)
|
void |
fatal(Supplier<?> messageSupplier)
Logs a message which is only to be constructed if the logging level is the
FATAL level. |
void |
fatal(Supplier<?> messageSupplier,
Throwable throwable)
|
Level |
getLevel()
Gets the Level associated with the Logger.
|
<MF extends MessageFactory> |
getMessageFactory()
Gets the message factory used to convert message Objects and Strings/CharSequences into actual log Messages.
|
String |
getName()
Gets the logger name.
|
void |
info(CharSequence message)
Logs a message CharSequence with the
INFO level. |
void |
info(CharSequence message,
Throwable throwable)
|
void |
info(Marker marker,
CharSequence message)
Logs a message CharSequence with the
INFO level. |
void |
info(Marker marker,
CharSequence message,
Throwable throwable)
|
void |
info(Marker marker,
Message message)
Logs a message with the specific Marker at the
INFO level. |
void |
info(Marker marker,
MessageSupplier messageSupplier)
Logs a message which is only to be constructed if the logging level is the
INFO level with the
specified Marker. |
void |
info(Marker marker,
MessageSupplier messageSupplier,
Throwable throwable)
|
void |
info(Marker marker,
Message message,
Throwable throwable)
Logs a message with the specific Marker at the
INFO level. |
void |
info(Marker marker,
Object message)
Logs a message object with the
INFO level. |
void |
info(Marker marker,
Object message,
Throwable throwable)
|
void |
info(Marker marker,
String message)
Logs a message object with the
INFO level. |
void |
info(Marker marker,
String message,
Object... params)
Logs a message with parameters at the
INFO level. |
void |
info(Marker marker,
String message,
Object p0)
Logs a message with parameters at info level.
|
void |
info(Marker marker,
String message,
Object p0,
Object p1)
Logs a message with parameters at info level.
|
void |
info(Marker marker,
String message,
Object p0,
Object p1,
Object p2)
Logs a message with parameters at info level.
|
void |
info(Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3)
Logs a message with parameters at info level.
|
void |
info(Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4)
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 |
info(Marker marker,
String message,
Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is the
INFO level. |
void |
info(Marker marker,
String message,
Throwable throwable)
|
void |
info(Marker marker,
Supplier<?> messageSupplier)
Logs a message which is only to be constructed if the logging level is the
INFO level with the
specified Marker. |
void |
info(Marker marker,
Supplier<?> messageSupplier,
Throwable throwable)
|
void |
info(Message message)
Logs a message with the specific Marker at the
INFO level. |
void |
info(MessageSupplier messageSupplier)
Logs a message which is only to be constructed if the logging level is the
INFO level. |
void |
info(MessageSupplier messageSupplier,
Throwable throwable)
|
void |
info(Message message,
Throwable throwable)
Logs a message with the specific Marker at the
INFO level. |
void |
info(Object message)
Logs a message object with the
INFO level. |
void |
info(Object message,
Throwable throwable)
|
void |
info(String message)
Logs a message object with the
INFO level. |
void |
info(String message,
Object... params)
Logs a message with parameters at the
INFO level. |
void |
info(String message,
Object p0)
Logs a message with parameters at info level.
|
void |
info(String message,
Object p0,
Object p1)
Logs a message with parameters at info level.
|
void |
info(String message,
Object p0,
Object p1,
Object p2)
Logs a message with parameters at info level.
|
void |
info(String message,
Object p0,
Object p1,
Object p2,
Object p3)
Logs a message with parameters at info level.
|
void |
info(String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4)
Logs a message with parameters at info level.
|
void |
info(String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5)
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)
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 |
info(String message,
Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is the
INFO level. |
void |
info(String message,
Throwable throwable)
|
void |
info(Supplier<?> messageSupplier)
Logs a message which is only to be constructed if the logging level is the
INFO level. |
void |
info(Supplier<?> messageSupplier,
Throwable throwable)
|
boolean |
isDebugEnabled()
Checks whether this Logger is enabled for the
DEBUG Level. |
boolean |
isDebugEnabled(Marker marker)
Checks whether this Logger is enabled for the
DEBUG Level. |
boolean |
isEnabled(Level level)
Checks whether this Logger is enabled for the given Level.
|
boolean |
isEnabled(Level level,
Marker marker)
Checks whether this Logger is enabled for the given Level and Marker.
|
boolean |
isErrorEnabled()
Checks whether this Logger is enabled for the
ERROR Level. |
boolean |
isErrorEnabled(Marker marker)
Checks whether this Logger is enabled for the
ERROR Level. |
boolean |
isFatalEnabled()
Checks whether this Logger is enabled for the
FATAL Level. |
boolean |
isFatalEnabled(Marker marker)
Checks whether this Logger is enabled for the
FATAL Level. |
boolean |
isInfoEnabled()
Checks whether this Logger is enabled for the
INFO Level. |
boolean |
isInfoEnabled(Marker marker)
Checks whether this Logger is enabled for the
INFO Level. |
boolean |
isTraceEnabled()
Checks whether this Logger is enabled for the
TRACE level. |
boolean |
isTraceEnabled(Marker marker)
Checks whether this Logger is enabled for the
TRACE level. |
boolean |
isWarnEnabled()
Checks whether this Logger is enabled for the
WARN Level. |
boolean |
isWarnEnabled(Marker marker)
Checks whether this Logger is enabled for the
WARN 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 the
Throwable throwable passed as
parameter. |
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 the
Throwable throwable passed as
parameter. |
void |
log(Level level,
Marker marker,
Message message)
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 the
Throwable throwable passed as parameter. |
void |
log(Level level,
Marker marker,
Message message,
Throwable throwable)
Logs a message with the specific Marker at the given level.
|
void |
log(Level level,
Marker marker,
Object message)
Logs a message object with the given level.
|
void |
log(Level level,
Marker marker,
Object message,
Throwable throwable)
Logs a message at the given level including the stack trace of the
Throwable throwable passed as
parameter. |
void |
log(Level level,
Marker marker,
String message)
Logs a message object with the given level.
|
void |
log(Level level,
Marker marker,
String message,
Object... params)
Logs a message with parameters at the given level.
|
void |
log(Level level,
Marker marker,
String message,
Object p0)
Logs a message with parameters at the specified level.
|
void |
log(Level level,
Marker marker,
String message,
Object p0,
Object p1)
Logs a message with parameters at the specified level.
|
void |
log(Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2)
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)
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 |
log(Level level,
Marker marker,
String message,
Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is the specified level.
|
void |
log(Level level,
Marker marker,
String message,
Throwable throwable)
Logs a message at the given level including the stack trace of the
Throwable throwable passed as
parameter. |
void |
log(Level level,
Marker marker,
Supplier<?> messageSupplier)
Logs a message (only to be constructed if the logging level is the specified level) with the specified Marker.
|
void |
log(Level level,
Marker marker,
Supplier<?> messageSupplier,
Throwable throwable)
Logs a message (only to be constructed if the logging level is the specified level) with the specified Marker and
including the stack log of the
Throwable throwable passed as parameter. |
void |
log(Level level,
Message message)
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
the
Throwable throwable passed as parameter. |
void |
log(Level level,
Message message,
Throwable throwable)
Logs a message with the specific Marker at the given level.
|
void |
log(Level level,
Object message)
Logs a message object with the given level.
|
void |
log(Level level,
Object message,
Throwable throwable)
Logs a message at the given level including the stack trace of the
Throwable throwable passed as
parameter. |
void |
log(Level level,
String message)
Logs a message object with the given level.
|
void |
log(Level level,
String message,
Object... params)
Logs a message with parameters at the given level.
|
void |
log(Level level,
String message,
Object p0)
Logs a message with parameters at the specified level.
|
void |
log(Level level,
String message,
Object p0,
Object p1)
Logs a message with parameters at the specified level.
|
void |
log(Level level,
String message,
Object p0,
Object p1,
Object p2)
Logs a message with parameters at the specified level.
|
void |
log(Level level,
String message,
Object p0,
Object p1,
Object p2,
Object p3)
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)
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)
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 |
log(Level level,
String message,
Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is the specified level.
|
void |
log(Level level,
String message,
Throwable throwable)
Logs a message at the given level including the stack trace of the
Throwable throwable passed as
parameter. |
void |
log(Level level,
Supplier<?> messageSupplier)
Logs a message which is only to be constructed if the logging level is the specified level.
|
void |
log(Level level,
Supplier<?> messageSupplier,
Throwable throwable)
Logs a message (only to be constructed if the logging level is the specified level) including the stack log of
the
Throwable throwable passed as parameter. |
default void |
logMessage(Level level,
Marker marker,
String fqcn,
StackTraceElement location,
Message message,
Throwable throwable)
Logs a Message.
|
void |
printf(Level level,
Marker marker,
String format,
Object... params)
Logs a formatted message using the specified format string and arguments.
|
void |
printf(Level level,
String format,
Object... params)
Logs a formatted message using the specified format string and arguments.
|
<T extends Throwable> |
throwing(Level level,
T throwable)
Logs a
Throwable to be thrown. |
<T extends Throwable> |
throwing(T throwable)
|
void |
trace(CharSequence message)
Logs a message CharSequence with the
TRACE level. |
void |
trace(CharSequence message,
Throwable throwable)
|
void |
trace(Marker marker,
CharSequence message)
Logs a message CharSequence with the
TRACE level. |
void |
trace(Marker marker,
CharSequence message,
Throwable throwable)
|
void |
trace(Marker marker,
Message message)
Logs a message with the specific Marker at the
TRACE level. |
void |
trace(Marker marker,
MessageSupplier messageSupplier)
Logs a message which is only to be constructed if the logging level is the
TRACE level with
the specified Marker. |
void |
trace(Marker marker,
MessageSupplier messageSupplier,
Throwable throwable)
|
void |
trace(Marker marker,
Message message,
Throwable throwable)
Logs a message with the specific Marker at the
TRACE level. |
void |
trace(Marker marker,
Object message)
Logs a message object with the
TRACE level. |
void |
trace(Marker marker,
Object message,
Throwable throwable)
|
void |
trace(Marker marker,
String message)
Logs a message object with the
TRACE level. |
void |
trace(Marker marker,
String message,
Object... params)
Logs a message with parameters at the
TRACE level. |
void |
trace(Marker marker,
String message,
Object p0)
Logs a message with parameters at trace level.
|
void |
trace(Marker marker,
String message,
Object p0,
Object p1)
Logs a message with parameters at trace level.
|
void |
trace(Marker marker,
String message,
Object p0,
Object p1,
Object p2)
Logs a message with parameters at trace level.
|
void |
trace(Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3)
Logs a message with parameters at trace level.
|
void |
trace(Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4)
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 |
trace(Marker marker,
String message,
Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is the
TRACE level. |
void |
trace(Marker marker,
String message,
Throwable throwable)
|
void |
trace(Marker marker,
Supplier<?> messageSupplier)
Logs a message which is only to be constructed if the logging level is the
TRACE level with
the specified Marker. |
void |
trace(Marker marker,
Supplier<?> messageSupplier,
Throwable throwable)
|
void |
trace(Message message)
Logs a message with the specific Marker at the
TRACE level. |
void |
trace(MessageSupplier messageSupplier)
Logs a message which is only to be constructed if the logging level is the
TRACE level. |
void |
trace(MessageSupplier messageSupplier,
Throwable throwable)
|
void |
trace(Message message,
Throwable throwable)
Logs a message with the specific Marker at the
TRACE level. |
void |
trace(Object message)
Logs a message object with the
TRACE level. |
void |
trace(Object message,
Throwable throwable)
|
void |
trace(String message)
Logs a message object with the
TRACE level. |
void |
trace(String message,
Object... params)
Logs a message with parameters at the
TRACE level. |
void |
trace(String message,
Object p0)
Logs a message with parameters at trace level.
|
void |
trace(String message,
Object p0,
Object p1)
Logs a message with parameters at trace level.
|
void |
trace(String message,
Object p0,
Object p1,
Object p2)
Logs a message with parameters at trace level.
|
void |
trace(String message,
Object p0,
Object p1,
Object p2,
Object p3)
Logs a message with parameters at trace level.
|
void |
trace(String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4)
Logs a message with parameters at trace level.
|
void |
trace(String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5)
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)
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 |
trace(String message,
Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is the
TRACE level. |
void |
trace(String message,
Throwable throwable)
|
void |
trace(Supplier<?> messageSupplier)
Logs a message which is only to be constructed if the logging level is the
TRACE level. |
void |
trace(Supplier<?> messageSupplier,
Throwable throwable)
|
EntryMessage |
traceEntry()
Logs entry to a method.
|
EntryMessage |
traceEntry(Message message)
Logs entry to a method using a Message to describe the parameters.
|
EntryMessage |
traceEntry(String format,
Object... params)
Logs entry to a method along with its parameters.
|
EntryMessage |
traceEntry(String format,
Supplier<?>... paramSuppliers)
Logs entry to a method along with its parameters.
|
EntryMessage |
traceEntry(Supplier<?>... paramSuppliers)
Logs entry to a method along with its parameters.
|
void |
traceExit()
Logs exit from a method.
|
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 |
traceExit(Message message,
R result)
Logs exiting from a method with the result.
|
<R> R |
traceExit(R result)
Logs exiting from a method with the result.
|
<R> R |
traceExit(String format,
R result)
Logs exiting from a method with the result.
|
void |
warn(CharSequence message)
Logs a message CharSequence with the
WARN level. |
void |
warn(CharSequence message,
Throwable throwable)
|
void |
warn(Marker marker,
CharSequence message)
Logs a message CharSequence with the
WARN level. |
void |
warn(Marker marker,
CharSequence message,
Throwable throwable)
|
void |
warn(Marker marker,
Message message)
Logs a message with the specific Marker at the
WARN level. |
void |
warn(Marker marker,
MessageSupplier messageSupplier)
Logs a message which is only to be constructed if the logging level is the
WARN level with the
specified Marker. |
void |
warn(Marker marker,
MessageSupplier messageSupplier,
Throwable throwable)
|
void |
warn(Marker marker,
Message message,
Throwable throwable)
Logs a message with the specific Marker at the
WARN level. |
void |
warn(Marker marker,
Object message)
Logs a message object with the
WARN level. |
void |
warn(Marker marker,
Object message,
Throwable throwable)
|
void |
warn(Marker marker,
String message)
Logs a message object with the
WARN level. |
void |
warn(Marker marker,
String message,
Object... params)
Logs a message with parameters at the
WARN level. |
void |
warn(Marker marker,
String message,
Object p0)
Logs a message with parameters at warn level.
|
void |
warn(Marker marker,
String message,
Object p0,
Object p1)
Logs a message with parameters at warn level.
|
void |
warn(Marker marker,
String message,
Object p0,
Object p1,
Object p2)
Logs a message with parameters at warn level.
|
void |
warn(Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3)
Logs a message with parameters at warn level.
|
void |
warn(Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4)
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 |
warn(Marker marker,
String message,
Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is the
WARN level. |
void |
warn(Marker marker,
String message,
Throwable throwable)
|
void |
warn(Marker marker,
Supplier<?> messageSupplier)
Logs a message which is only to be constructed if the logging level is the
WARN level with the
specified Marker. |
void |
warn(Marker marker,
Supplier<?> messageSupplier,
Throwable throwable)
|
void |
warn(Message message)
Logs a message with the specific Marker at the
WARN level. |
void |
warn(MessageSupplier messageSupplier)
Logs a message which is only to be constructed if the logging level is the
WARN level. |
void |
warn(MessageSupplier messageSupplier,
Throwable throwable)
|
void |
warn(Message message,
Throwable throwable)
Logs a message with the specific Marker at the
WARN level. |
void |
warn(Object message)
Logs a message object with the
WARN level. |
void |
warn(Object message,
Throwable throwable)
|
void |
warn(String message)
Logs a message object with the
WARN level. |
void |
warn(String message,
Object... params)
Logs a message with parameters at the
WARN level. |
void |
warn(String message,
Object p0)
Logs a message with parameters at warn level.
|
void |
warn(String message,
Object p0,
Object p1)
Logs a message with parameters at warn level.
|
void |
warn(String message,
Object p0,
Object p1,
Object p2)
Logs a message with parameters at warn level.
|
void |
warn(String message,
Object p0,
Object p1,
Object p2,
Object p3)
Logs a message with parameters at warn level.
|
void |
warn(String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4)
Logs a message with parameters at warn level.
|
void |
warn(String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5)
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)
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 |
warn(String message,
Supplier<?>... paramSuppliers)
Logs a message with parameters which are only to be constructed if the logging level is the
WARN level. |
void |
warn(String message,
Throwable throwable)
|
void |
warn(Supplier<?> messageSupplier)
Logs a message which is only to be constructed if the logging level is the
WARN level. |
void |
warn(Supplier<?> messageSupplier,
Throwable throwable)
|
void catching(Level level, Throwable throwable)
Throwable
that has been caught to a specific logging level.level
- The logging Level.throwable
- the Throwable.void catching(Throwable throwable)
Throwable
that has been caught at the ERROR
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 a main()
method),
this method is ideal for it.throwable
- the Throwable.void debug(Marker marker, Message message)
DEBUG
level.marker
- the marker data specific to this log statementmessage
- the message string to be loggedvoid debug(Marker marker, Message message, Throwable throwable)
DEBUG
level.marker
- the marker data specific to this log statementmessage
- the message string to be loggedthrowable
- A Throwable or null.void debug(Marker marker, MessageSupplier messageSupplier)
DEBUG
level with
the specified Marker. The MessageSupplier
may or may not use the MessageFactory
to construct the
Message
.marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message.void debug(Marker marker, MessageSupplier messageSupplier, Throwable throwable)
DEBUG
level) with the
specified Marker and including the stack trace of the Throwable
throwable
passed as parameter. The
MessageSupplier
may or may not use the MessageFactory
to construct the Message
.marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message.throwable
- A Throwable or null.void debug(Marker marker, CharSequence message)
DEBUG
level.marker
- the marker data specific to this log statementmessage
- the message CharSequence to log.void debug(Marker marker, CharSequence message, Throwable throwable)
DEBUG
level including the stack trace of the
Throwable
throwable
passed as parameter.marker
- the marker data specific to this log statementmessage
- the message CharSequence to log.throwable
- the Throwable
to log, including its stack trace.void debug(Marker marker, Object message)
DEBUG
level.marker
- the marker data specific to this log statementmessage
- the message object to log.void debug(Marker marker, Object message, Throwable throwable)
DEBUG
level including the stack trace of the Throwable
throwable
passed as parameter.marker
- the marker data specific to this log statementmessage
- the message to log.throwable
- the Throwable
to log, including its stack trace.void debug(Marker marker, String message)
DEBUG
level.marker
- the marker data specific to this log statementmessage
- the message object to log.void debug(Marker marker, String message, Object... params)
DEBUG
level.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.getMessageFactory()
void debug(Marker marker, String message, Supplier<?>... paramSuppliers)
DEBUG
level.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.void debug(Marker marker, String message, Throwable throwable)
DEBUG
level including the stack trace of the Throwable
throwable
passed as parameter.marker
- the marker data specific to this log statementmessage
- the message to log.throwable
- the Throwable
to log, including its stack trace.void debug(Marker marker, Supplier<?> messageSupplier)
DEBUG
level with
the specified Marker.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.void debug(Marker marker, Supplier<?> messageSupplier, Throwable throwable)
DEBUG
level) with the
specified Marker and including the stack trace of the Throwable
throwable
passed as parameter.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.void debug(Message message)
DEBUG
level.message
- the message string to be loggedvoid debug(Message message, Throwable throwable)
DEBUG
level.message
- the message string to be loggedthrowable
- A Throwable or null.void debug(MessageSupplier messageSupplier)
DEBUG
level. The
MessageSupplier
may or may not use the MessageFactory
to construct the Message
.messageSupplier
- A function, which when called, produces the desired log message.void debug(MessageSupplier messageSupplier, Throwable throwable)
DEBUG
level) including the
stack trace of the Throwable
throwable
passed as parameter. The MessageSupplier
may or may
not use the MessageFactory
to construct the Message
.messageSupplier
- A function, which when called, produces the desired log message.throwable
- the Throwable
to log, including its stack trace.void debug(CharSequence message)
DEBUG
level.message
- the message object to log.void debug(CharSequence message, Throwable throwable)
DEBUG
level including the stack trace of the Throwable
throwable
passed as parameter.message
- the message CharSequence to log.throwable
- the Throwable
to log, including its stack trace.void debug(Object message)
DEBUG
level.message
- the message object to log.void debug(Object message, Throwable throwable)
DEBUG
level including the stack trace of the Throwable
throwable
passed as parameter.message
- the message to log.throwable
- the Throwable
to log, including its stack trace.void debug(String message)
DEBUG
level.message
- the message string to log.void debug(String message, Object... params)
DEBUG
level.message
- the message to log; the format depends on the message factory.params
- parameters to the message.getMessageFactory()
void debug(String message, Supplier<?>... paramSuppliers)
DEBUG
level.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.void debug(String message, Throwable throwable)
DEBUG
level including the stack trace of the Throwable
throwable
passed as parameter.message
- the message to log.throwable
- the Throwable
to log, including its stack trace.void debug(Supplier<?> messageSupplier)
DEBUG
level.messageSupplier
- A function, which when called, produces the desired log message; the format depends on the
message factory.void debug(Supplier<?> messageSupplier, Throwable throwable)
DEBUG
level) including the
stack trace of the Throwable
throwable
passed as parameter.messageSupplier
- A function, which when called, produces the desired log message; the format depends on the
message factory.throwable
- the Throwable
to log, including its stack trace.void debug(Marker marker, String message, Object p0)
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.void debug(Marker marker, String message, Object p0, Object p1)
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.void debug(Marker marker, String message, Object p0, Object p1, Object p2)
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.void debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3)
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.void debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4)
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.void debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5)
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.void debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6)
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.void debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7)
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.void debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8)
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.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)
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.void debug(String message, Object p0)
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.void debug(String message, Object p0, Object p1)
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.void debug(String message, Object p0, Object p1, Object p2)
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.void debug(String message, Object p0, Object p1, Object p2, Object p3)
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.void debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4)
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.void debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5)
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.void debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6)
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.void debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7)
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.void debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8)
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.void debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9)
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.@Deprecated void entry()
traceEntry()
instead which performs the same function.@Deprecated void entry(Object... params)
traceEntry(String, Object...)
instead which performs the same function.traceEntry(...)
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.
params
- The parameters to the method.void error(Marker marker, Message message)
ERROR
level.marker
- the marker data specific to this log statementmessage
- the message string to be loggedvoid error(Marker marker, Message message, Throwable throwable)
ERROR
level.marker
- the marker data specific to this log statementmessage
- the message string to be loggedthrowable
- A Throwable or null.void error(Marker marker, MessageSupplier messageSupplier)
ERROR
level with
the specified Marker. The MessageSupplier
may or may not use the MessageFactory
to construct the
Message
.marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message.void error(Marker marker, MessageSupplier messageSupplier, Throwable throwable)
ERROR
level) with the
specified Marker and including the stack trace of the Throwable
throwable
passed as parameter. The
MessageSupplier
may or may not use the MessageFactory
to construct the Message
.marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message.throwable
- A Throwable or null.void error(Marker marker, CharSequence message)
ERROR
level.marker
- the marker data specific to this log statement.message
- the message CharSequence to log.void error(Marker marker, CharSequence message, Throwable throwable)
ERROR
level including the stack trace of the Throwable
throwable
passed as parameter.marker
- the marker data specific to this log statement.message
- the message CharSequence to log.throwable
- the Throwable
to log, including its stack trace.void error(Marker marker, Object message)
ERROR
level.marker
- the marker data specific to this log statement.message
- the message object to log.void error(Marker marker, Object message, Throwable throwable)
ERROR
level including the stack trace of the Throwable
throwable
passed as parameter.marker
- the marker data specific to this log statement.message
- the message object to log.throwable
- the Throwable
to log, including its stack trace.void error(Marker marker, String message)
ERROR
level.marker
- the marker data specific to this log statement.message
- the message object to log.void error(Marker marker, String message, Object... params)
ERROR
level.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.getMessageFactory()
void error(Marker marker, String message, Supplier<?>... paramSuppliers)
ERROR
level.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.void error(Marker marker, String message, Throwable throwable)
ERROR
level including the stack trace of the Throwable
throwable
passed as parameter.marker
- the marker data specific to this log statement.message
- the message object to log.throwable
- the Throwable
to log, including its stack trace.void error(Marker marker, Supplier<?> messageSupplier)
ERROR
level with
the specified Marker.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.void error(Marker marker, Supplier<?> messageSupplier, Throwable throwable)
ERROR
level) with the
specified Marker and including the stack trace of the Throwable
throwable
passed as parameter.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.void error(Message message)
ERROR
level.message
- the message string to be loggedvoid error(Message message, Throwable throwable)
ERROR
level.message
- the message string to be loggedthrowable
- A Throwable or null.void error(MessageSupplier messageSupplier)
ERROR
level. The
MessageSupplier
may or may not use the MessageFactory
to construct the Message
.messageSupplier
- A function, which when called, produces the desired log message.void error(MessageSupplier messageSupplier, Throwable throwable)
ERROR
level) including the
stack trace of the Throwable
throwable
passed as parameter. The MessageSupplier
may or may
not use the MessageFactory
to construct the Message
.messageSupplier
- A function, which when called, produces the desired log message.throwable
- the Throwable
to log, including its stack trace.void error(CharSequence message)
ERROR
level.message
- the message CharSequence to log.void error(CharSequence message, Throwable throwable)
ERROR
level including the stack trace of the Throwable
throwable
passed as parameter.message
- the message CharSequence to log.throwable
- the Throwable
to log, including its stack trace.void error(Object message)
ERROR
level.message
- the message object to log.void error(Object message, Throwable throwable)
ERROR
level including the stack trace of the Throwable
throwable
passed as parameter.message
- the message object to log.throwable
- the Throwable
to log, including its stack trace.void error(String message)
ERROR
level.message
- the message string to log.void error(String message, Object... params)
ERROR
level.message
- the message to log; the format depends on the message factory.params
- parameters to the message.getMessageFactory()
void error(String message, Supplier<?>... paramSuppliers)
ERROR
level.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.void error(String message, Throwable throwable)
ERROR
level including the stack trace of the Throwable
throwable
passed as parameter.message
- the message object to log.throwable
- the Throwable
to log, including its stack trace.void error(Supplier<?> messageSupplier)
ERROR
level.messageSupplier
- A function, which when called, produces the desired log message; the format depends on the
message factory.void error(Supplier<?> messageSupplier, Throwable throwable)
ERROR
level) including the
stack trace of the Throwable
throwable
passed as parameter.messageSupplier
- A function, which when called, produces the desired log message; the format depends on the
message factory.throwable
- the Throwable
to log, including its stack trace.void error(Marker marker, String message, Object p0)
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.void error(Marker marker, String message, Object p0, Object p1)
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.void error(Marker marker, String message, Object p0, Object p1, Object p2)
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.void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3)
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.void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4)
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.void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5)
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.void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6)
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.void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7)
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.void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8)
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.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)
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.void error(String message, Object p0)
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.void error(String message, Object p0, Object p1)
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.void error(String message, Object p0, Object p1, Object p2)
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.void error(String message, Object p0, Object p1, Object p2, Object p3)
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.void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4)
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.void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5)
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.void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6)
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.void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7)
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.void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8)
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.void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9)
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.@Deprecated void exit()
traceExit()
instead which performs the same function.@Deprecated <R> R exit(R result)
traceExit(Object)
instead which performs the same function.return LOGGER.exit(myResult);
R
- The type of the parameter and object being returned.result
- The result being returned from the method call.void fatal(Marker marker, Message message)
FATAL
level.marker
- the marker data specific to this log statementmessage
- the message string to be loggedvoid fatal(Marker marker, Message message, Throwable throwable)
FATAL
level.marker
- the marker data specific to this log statementmessage
- the message string to be loggedthrowable
- A Throwable or null.void fatal(Marker marker, MessageSupplier messageSupplier)
FATAL
level with
the specified Marker. The MessageSupplier
may or may not use the MessageFactory
to construct the
Message
.marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message.void fatal(Marker marker, MessageSupplier messageSupplier, Throwable throwable)
FATAL
level) with the
specified Marker and including the stack trace of the Throwable
throwable
passed as parameter. The
MessageSupplier
may or may not use the MessageFactory
to construct the Message
.marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message.throwable
- A Throwable or null.void fatal(Marker marker, CharSequence message)
FATAL
level.marker
- The marker data specific to this log statement.message
- the message CharSequence to log.void fatal(Marker marker, CharSequence message, Throwable throwable)
FATAL
level including the stack trace of the Throwable
throwable
passed as parameter.marker
- The marker data specific to this log statement.message
- the message CharSequence to log.throwable
- the Throwable
to log, including its stack trace.void fatal(Marker marker, Object message)
FATAL
level.marker
- The marker data specific to this log statement.message
- the message object to log.void fatal(Marker marker, Object message, Throwable throwable)
FATAL
level including the stack trace of the Throwable
throwable
passed as parameter.marker
- The marker data specific to this log statement.message
- the message object to log.throwable
- the Throwable
to log, including its stack trace.void fatal(Marker marker, String message)
FATAL
level.marker
- The marker data specific to this log statement.message
- the message object to log.void fatal(Marker marker, String message, Object... params)
FATAL
level.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.getMessageFactory()
void fatal(Marker marker, String message, Supplier<?>... paramSuppliers)
FATAL
level.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.void fatal(Marker marker, String message, Throwable throwable)
FATAL
level including the stack trace of the Throwable
throwable
passed as parameter.marker
- The marker data specific to this log statement.message
- the message object to log.throwable
- the Throwable
to log, including its stack trace.void fatal(Marker marker, Supplier<?> messageSupplier)
FATAL
level with
the specified Marker.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.void fatal(Marker marker, Supplier<?> messageSupplier, Throwable throwable)
FATAL
level) with the
specified Marker and including the stack trace of the Throwable
throwable
passed as parameter.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.void fatal(Message message)
FATAL
level.message
- the message string to be loggedvoid fatal(Message message, Throwable throwable)
FATAL
level.message
- the message string to be loggedthrowable
- A Throwable or null.void fatal(MessageSupplier messageSupplier)
FATAL
level. The
MessageSupplier
may or may not use the MessageFactory
to construct the Message
.messageSupplier
- A function, which when called, produces the desired log message.void fatal(MessageSupplier messageSupplier, Throwable throwable)
FATAL
level) including the
stack trace of the Throwable
throwable
passed as parameter. The MessageSupplier
may or may
not use the MessageFactory
to construct the Message
.messageSupplier
- A function, which when called, produces the desired log message.throwable
- the Throwable
to log, including its stack trace.void fatal(CharSequence message)
FATAL
level.message
- the message CharSequence to log.void fatal(CharSequence message, Throwable throwable)
FATAL
level including the stack trace of the Throwable
throwable
passed as parameter.message
- the message CharSequence to log.throwable
- the Throwable
to log, including its stack trace.void fatal(Object message)
FATAL
level.message
- the message object to log.void fatal(Object message, Throwable throwable)
FATAL
level including the stack trace of the Throwable
throwable
passed as parameter.message
- the message object to log.throwable
- the Throwable
to log, including its stack trace.void fatal(String message)
FATAL
level.message
- the message string to log.void fatal(String message, Object... params)
FATAL
level.message
- the message to log; the format depends on the message factory.params
- parameters to the message.getMessageFactory()
void fatal(String message, Supplier<?>... paramSuppliers)
FATAL
level.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.void fatal(String message, Throwable throwable)
FATAL
level including the stack trace of the Throwable
throwable
passed as parameter.message
- the message object to log.throwable
- the Throwable
to log, including its stack trace.void fatal(Supplier<?> messageSupplier)
FATAL
level.messageSupplier
- A function, which when called, produces the desired log message; the format depends on the
message factory.void fatal(Supplier<?> messageSupplier, Throwable throwable)
FATAL
level) including the
stack trace of the Throwable
throwable
passed as parameter.messageSupplier
- A function, which when called, produces the desired log message; the format depends on the
message factory.throwable
- the Throwable
to log, including its stack trace.void fatal(Marker marker, String message, Object p0)
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.void fatal(Marker marker, String message, Object p0, Object p1)
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.void fatal(Marker marker, String message, Object p0, Object p1, Object p2)
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.void fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3)
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.void fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4)
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.void fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5)
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.void fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6)
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.void fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7)
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.void fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8)
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.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)
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.void fatal(String message, Object p0)
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.void fatal(String message, Object p0, Object p1)
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.void fatal(String message, Object p0, Object p1, Object p2)
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.void fatal(String message, Object p0, Object p1, Object p2, Object p3)
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.void fatal(String message, Object p0, Object p1, Object p2, Object p3, Object p4)
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.void fatal(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5)
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.void fatal(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6)
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.void fatal(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7)
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.void fatal(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8)
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.void fatal(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9)
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.Level getLevel()
<MF extends MessageFactory> MF getMessageFactory()
MessageFactory2
interface.
From version 2.6.2, the return type of this method was changed from MessageFactory
to
<MF extends MessageFactory> MF
. The returned factory will always implement MessageFactory2
,
but the return type of this method could not be changed to MessageFactory2
without breaking binary
compatibility.MessageFactory2
void info(Marker marker, Message message)
INFO
level.marker
- the marker data specific to this log statementmessage
- the message string to be loggedvoid info(Marker marker, Message message, Throwable throwable)
INFO
level.marker
- the marker data specific to this log statementmessage
- the message string to be loggedthrowable
- A Throwable or null.void info(Marker marker, MessageSupplier messageSupplier)
INFO
level with the
specified Marker. The MessageSupplier
may or may not use the MessageFactory
to construct the
Message
.marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message.void info(Marker marker, MessageSupplier messageSupplier, Throwable throwable)
INFO
level) with the
specified Marker and including the stack trace of the Throwable
throwable
passed as parameter. The
MessageSupplier
may or may not use the MessageFactory
to construct the Message
.marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message.throwable
- A Throwable or null.void info(Marker marker, CharSequence message)
INFO
level.marker
- the marker data specific to this log statementmessage
- the message CharSequence to log.void info(Marker marker, CharSequence message, Throwable throwable)
INFO
level including the stack trace of the Throwable
throwable
passed as parameter.marker
- the marker data specific to this log statementmessage
- the message CharSequence to log.throwable
- the Throwable
to log, including its stack trace.void info(Marker marker, Object message)
INFO
level.marker
- the marker data specific to this log statementmessage
- the message object to log.void info(Marker marker, Object message, Throwable throwable)
INFO
level including the stack trace of the Throwable
throwable
passed as parameter.marker
- the marker data specific to this log statementmessage
- the message object to log.throwable
- the Throwable
to log, including its stack trace.void info(Marker marker, String message)
INFO
level.marker
- the marker data specific to this log statementmessage
- the message object to log.void info(Marker marker, String message, Object... params)
INFO
level.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.getMessageFactory()
void info(Marker marker, String message, Supplier<?>... paramSuppliers)
INFO
level.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.void info(Marker marker, String message, Throwable throwable)
INFO
level including the stack trace of the Throwable
throwable
passed as parameter.marker
- the marker data specific to this log statementmessage
- the message object to log.throwable
- the Throwable
to log, including its stack trace.void info(Marker marker, Supplier<?> messageSupplier)
INFO
level with the
specified Marker.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.void info(Marker marker, Supplier<?> messageSupplier, Throwable throwable)
INFO
level) with the
specified Marker and including the stack trace of the Throwable
throwable
passed as parameter.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.void info(Message message)
INFO
level.message
- the message string to be loggedvoid info(Message message, Throwable throwable)
INFO
level.message
- the message string to be loggedthrowable
- A Throwable or null.void info(MessageSupplier messageSupplier)
INFO
level. The
MessageSupplier
may or may not use the MessageFactory
to construct the Message
.messageSupplier
- A function, which when called, produces the desired log message.void info(MessageSupplier messageSupplier, Throwable throwable)
INFO
level) including the
stack trace of the Throwable
throwable
passed as parameter. The MessageSupplier
may or may
not use the MessageFactory
to construct the Message
.messageSupplier
- A function, which when called, produces the desired log message.throwable
- the Throwable
to log, including its stack trace.void info(CharSequence message)
INFO
level.message
- the message CharSequence to log.void info(CharSequence message, Throwable throwable)
INFO
level including the stack trace of the Throwable
throwable
passed as parameter.message
- the message CharSequence to log.throwable
- the Throwable
to log, including its stack trace.void info(Object message)
INFO
level.message
- the message object to log.void info(Object message, Throwable throwable)
INFO
level including the stack trace of the Throwable
throwable
passed as parameter.message
- the message object to log.throwable
- the Throwable
to log, including its stack trace.void info(String message)
INFO
level.message
- the message string to log.void info(String message, Object... params)
INFO
level.message
- the message to log; the format depends on the message factory.params
- parameters to the message.getMessageFactory()
void info(String message, Supplier<?>... paramSuppliers)
INFO
level.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.void info(String message, Throwable throwable)
INFO
level including the stack trace of the Throwable
throwable
passed as parameter.message
- the message object to log.throwable
- the Throwable
to log, including its stack trace.void info(Supplier<?> messageSupplier)
INFO
level.messageSupplier
- A function, which when called, produces the desired log message; the format depends on the
message factory.void info(Supplier<?> messageSupplier, Throwable throwable)
INFO
level) including the
stack trace of the Throwable
throwable
passed as parameter.messageSupplier
- A function, which when called, produces the desired log message; the format depends on the
message factory.throwable
- the Throwable
to log, including its stack trace.void info(Marker marker, String message, Object p0)
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.void info(Marker marker, String message, Object p0, Object p1)
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.void info(Marker marker, String message, Object p0, Object p1, Object p2)
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.void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3)
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.void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4)
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.void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5)
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.void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6)
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.void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7)
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.void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8)
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.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)
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.void info(String message, Object p0)
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.void info(String message, Object p0, Object p1)
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.void info(String message, Object p0, Object p1, Object p2)
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.void info(String message, Object p0, Object p1, Object p2, Object p3)
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.void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4)
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.void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5)
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.void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6)
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.void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7)
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.void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8)
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.void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9)
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.boolean isDebugEnabled()
DEBUG
Level.true
if this Logger is enabled for level DEBUG, false
otherwise.boolean isDebugEnabled(Marker marker)
DEBUG
Level.marker
- The Marker to checktrue
if this Logger is enabled for level DEBUG, false
otherwise.boolean isEnabled(Level level)
Note that passing in OFF
always returns true
.
level
- the Level to checktrue
if this Logger is enabled for level, false
otherwise.boolean isEnabled(Level level, Marker marker)
level
- The Level to checkmarker
- The Marker to checktrue
if this Logger is enabled for level and marker, false
otherwise.boolean isErrorEnabled()
ERROR
Level.true
if this Logger is enabled for level ERROR
, false
otherwise.boolean isErrorEnabled(Marker marker)
ERROR
Level.marker
- The Marker to checktrue
if this Logger is enabled for level ERROR
, false
otherwise.boolean isFatalEnabled()
FATAL
Level.true
if this Logger is enabled for level FATAL
, false
otherwise.boolean isFatalEnabled(Marker marker)
FATAL
Level.marker
- The Marker to checktrue
if this Logger is enabled for level FATAL
, false
otherwise.boolean isInfoEnabled()
INFO
Level.true
if this Logger is enabled for level INFO, false
otherwise.boolean isInfoEnabled(Marker marker)
INFO
Level.marker
- The Marker to checktrue
if this Logger is enabled for level INFO, false
otherwise.boolean isTraceEnabled()
TRACE
level.true
if this Logger is enabled for level TRACE, false
otherwise.boolean isTraceEnabled(Marker marker)
TRACE
level.marker
- The Marker to checktrue
if this Logger is enabled for level TRACE, false
otherwise.boolean isWarnEnabled()
WARN
Level.true
if this Logger is enabled for level WARN
, false
otherwise.boolean isWarnEnabled(Marker marker)
WARN
Level.marker
- The Marker to checktrue
if this Logger is enabled for level WARN
, false
otherwise.void log(Level level, Marker marker, Message message)
level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message string to be loggedvoid log(Level level, Marker marker, Message message, Throwable throwable)
level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message string to be loggedthrowable
- A Throwable or null.void log(Level level, Marker marker, MessageSupplier messageSupplier)
MessageSupplier
may or may not use the MessageFactory
to construct the
Message
.level
- the logging levelmarker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message.void log(Level level, Marker marker, MessageSupplier messageSupplier, Throwable throwable)
Throwable
throwable
passed as parameter. The MessageSupplier
may or may not use the MessageFactory
to construct the Message
.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.void log(Level level, Marker marker, CharSequence message)
level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message CharSequence to log.void log(Level level, Marker marker, CharSequence message, Throwable throwable)
Throwable
throwable
passed as
parameter.level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message CharSequence to log.throwable
- the Throwable
to log, including its stack trace.void log(Level level, Marker marker, Object message)
level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message object to log.void log(Level level, Marker marker, Object message, Throwable throwable)
Throwable
throwable
passed as
parameter.level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message to log.throwable
- the Throwable
to log, including its stack trace.void log(Level level, Marker marker, String message)
level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message object to log.void log(Level level, Marker marker, String message, Object... params)
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.getMessageFactory()
void log(Level level, Marker marker, String message, Supplier<?>... paramSuppliers)
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.void log(Level level, Marker marker, String message, Throwable throwable)
Throwable
throwable
passed as
parameter.level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message to log.throwable
- the Throwable
to log, including its stack trace.void log(Level level, Marker marker, Supplier<?> messageSupplier)
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.void log(Level level, Marker marker, Supplier<?> messageSupplier, Throwable throwable)
Throwable
throwable
passed as parameter.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.void log(Level level, Message message)
level
- the logging levelmessage
- the message string to be loggedvoid log(Level level, Message message, Throwable throwable)
level
- the logging levelmessage
- the message string to be loggedthrowable
- A Throwable or null.void log(Level level, MessageSupplier messageSupplier)
MessageSupplier
may or may not use the MessageFactory
to construct the Message
.level
- the logging levelmessageSupplier
- A function, which when called, produces the desired log message.void log(Level level, MessageSupplier messageSupplier, Throwable throwable)
Throwable
throwable
passed as parameter. The MessageSupplier
may or may not use the
MessageFactory
to construct the Message
.level
- the logging levelmessageSupplier
- A function, which when called, produces the desired log message.throwable
- the Throwable
to log, including its stack log.void log(Level level, CharSequence message)
level
- the logging levelmessage
- the message CharSequence to log.void log(Level level, CharSequence message, Throwable throwable)
Throwable
throwable
passed as
parameter.level
- the logging levelmessage
- the message CharSequence to log.throwable
- the Throwable
to log, including its stack trace.void log(Level level, Object message)
level
- the logging levelmessage
- the message object to log.void log(Level level, Object message, Throwable throwable)
Throwable
throwable
passed as
parameter.level
- the logging levelmessage
- the message to log.throwable
- the Throwable
to log, including its stack trace.void log(Level level, String message)
level
- the logging levelmessage
- the message string to log.void log(Level level, String message, Object... params)
level
- the logging levelmessage
- the message to log; the format depends on the message factory.params
- parameters to the message.getMessageFactory()
void log(Level level, String message, Supplier<?>... paramSuppliers)
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.void log(Level level, String message, Throwable throwable)
Throwable
throwable
passed as
parameter.level
- the logging levelmessage
- the message to log.throwable
- the Throwable
to log, including its stack trace.void log(Level level, Supplier<?> messageSupplier)
level
- the logging levelmessageSupplier
- A function, which when called, produces the desired log message; the format depends on the
message factory.void log(Level level, Supplier<?> messageSupplier, Throwable throwable)
Throwable
throwable
passed as parameter.level
- the logging levelmessageSupplier
- A function, which when called, produces the desired log message; the format depends on the
message factory.throwable
- the Throwable
to log, including its stack log.void log(Level level, Marker marker, String message, Object p0)
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.void log(Level level, Marker marker, String message, Object p0, Object p1)
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.void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2)
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.void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3)
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.void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4)
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.void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5)
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.void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6)
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.void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7)
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.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)
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.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)
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.void log(Level level, String message, Object p0)
level
- the logging levelmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.void log(Level level, String message, Object p0, Object p1)
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.void log(Level level, String message, Object p0, Object p1, Object p2)
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.void log(Level level, String message, Object p0, Object p1, Object p2, Object p3)
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.void log(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4)
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.void log(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5)
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.void log(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6)
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.void log(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7)
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.void log(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8)
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.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)
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.void printf(Level level, Marker marker, String format, Object... params)
level
- The logging Level.marker
- the marker data specific to this log statement.format
- The format String.params
- Arguments specified by the format.void printf(Level level, String format, Object... params)
level
- The logging Level.format
- The format String.params
- Arguments specified by the format.<T extends Throwable> T throwing(Level level, T throwable)
Throwable
to be thrown. This may be coded as:
throw logger.throwing(Level.DEBUG, myException);
T
- the Throwable type.level
- The logging Level.throwable
- The Throwable.<T extends Throwable> T throwing(T throwable)
Throwable
to be thrown at the ERROR
level.
This may be coded as:
throw logger.throwing(myException);
T
- the Throwable type.throwable
- The Throwable.void trace(Marker marker, Message message)
TRACE
level.marker
- the marker data specific to this log statementmessage
- the message string to be loggedvoid trace(Marker marker, Message message, Throwable throwable)
TRACE
level.marker
- the marker data specific to this log statementmessage
- the message string to be loggedthrowable
- A Throwable or null.void trace(Marker marker, MessageSupplier messageSupplier)
TRACE
level with
the specified Marker. The MessageSupplier
may or may not use the MessageFactory
to construct the
Message
.marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message.void trace(Marker marker, MessageSupplier messageSupplier, Throwable throwable)
TRACE
level) with the
specified Marker and including the stack trace of the Throwable
throwable
passed as parameter. The
MessageSupplier
may or may not use the MessageFactory
to construct the Message
.marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message.throwable
- A Throwable or null.void trace(Marker marker, CharSequence message)
TRACE
level.marker
- the marker data specific to this log statementmessage
- the message CharSequence to log.void trace(Marker marker, CharSequence message, Throwable throwable)
TRACE
level including the stack trace of the Throwable
throwable
passed as parameter.marker
- the marker data specific to this log statementmessage
- the message CharSequence to log.throwable
- the Throwable
to log, including its stack trace.debug(String)
void trace(Marker marker, Object message)
TRACE
level.marker
- the marker data specific to this log statementmessage
- the message object to log.void trace(Marker marker, Object message, Throwable throwable)
TRACE
level including the stack trace of the Throwable
throwable
passed as parameter.marker
- the marker data specific to this log statementmessage
- the message object to log.throwable
- the Throwable
to log, including its stack trace.debug(String)
void trace(Marker marker, String message)
TRACE
level.marker
- the marker data specific to this log statementmessage
- the message string to log.void trace(Marker marker, String message, Object... params)
TRACE
level.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.getMessageFactory()
void trace(Marker marker, String message, Supplier<?>... paramSuppliers)
TRACE
level.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.void trace(Marker marker, String message, Throwable throwable)
TRACE
level including the stack trace of the Throwable
throwable
passed as parameter.marker
- the marker data specific to this log statementmessage
- the message object to log.throwable
- the Throwable
to log, including its stack trace.debug(String)
void trace(Marker marker, Supplier<?> messageSupplier)
TRACE
level with
the specified Marker.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.void trace(Marker marker, Supplier<?> messageSupplier, Throwable throwable)
TRACE
level) with the
specified Marker and including the stack trace of the Throwable
throwable
passed as parameter.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.void trace(Message message)
TRACE
level.message
- the message string to be loggedvoid trace(Message message, Throwable throwable)
TRACE
level.message
- the message string to be loggedthrowable
- A Throwable or null.void trace(MessageSupplier messageSupplier)
TRACE
level. The
MessageSupplier
may or may not use the MessageFactory
to construct the Message
.messageSupplier
- A function, which when called, produces the desired log message.void trace(MessageSupplier messageSupplier, Throwable throwable)
TRACE
level) including the
stack trace of the Throwable
throwable
passed as parameter. The MessageSupplier
may or may
not use the MessageFactory
to construct the Message
.messageSupplier
- A function, which when called, produces the desired log message.throwable
- the Throwable
to log, including its stack trace.void trace(CharSequence message)
TRACE
level.message
- the message CharSequence to log.void trace(CharSequence message, Throwable throwable)
TRACE
level including the stack trace of the Throwable
throwable
passed as parameter.message
- the message CharSequence to log.throwable
- the Throwable
to log, including its stack trace.debug(String)
void trace(Object message)
TRACE
level.message
- the message object to log.void trace(Object message, Throwable throwable)
TRACE
level including the stack trace of the Throwable
throwable
passed as parameter.message
- the message object to log.throwable
- the Throwable
to log, including its stack trace.debug(String)
void trace(String message)
TRACE
level.message
- the message string to log.void trace(String message, Object... params)
TRACE
level.message
- the message to log; the format depends on the message factory.params
- parameters to the message.getMessageFactory()
void trace(String message, Supplier<?>... paramSuppliers)
TRACE
level.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.void trace(String message, Throwable throwable)
TRACE
level including the stack trace of the Throwable
throwable
passed as parameter.message
- the message object to log.throwable
- the Throwable
to log, including its stack trace.debug(String)
void trace(Supplier<?> messageSupplier)
TRACE
level.messageSupplier
- A function, which when called, produces the desired log message; the format depends on the
message factory.void trace(Supplier<?> messageSupplier, Throwable throwable)
TRACE
level) including the
stack trace of the Throwable
throwable
passed as parameter.messageSupplier
- A function, which when called, produces the desired log message; the format depends on the
message factory.throwable
- the Throwable
to log, including its stack trace.void trace(Marker marker, String message, Object p0)
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.void trace(Marker marker, String message, Object p0, Object p1)
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.void trace(Marker marker, String message, Object p0, Object p1, Object p2)
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.void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3)
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.void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4)
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.void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5)
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.void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6)
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.void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7)
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.void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8)
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.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)
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.void trace(String message, Object p0)
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.void trace(String message, Object p0, Object p1)
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.void trace(String message, Object p0, Object p1, Object p2)
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.void trace(String message, Object p0, Object p1, Object p2, Object p3)
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.void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4)
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.void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5)
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.void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6)
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.void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7)
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.void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8)
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.void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9)
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.EntryMessage traceEntry()
EntryMessage traceEntry(String format, Object... params)
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); }
format
- The format String for the parameters.params
- The parameters to the method.EntryMessage traceEntry(Supplier<?>... paramSuppliers)
public void doSomething(Request foo) { LOGGER.traceEntry(()->gson.toJson(foo)); // do something }
paramSuppliers
- The Suppliers for the parameters to the method.EntryMessage traceEntry(String format, Supplier<?>... paramSuppliers)
public void doSomething(String foo, int bar) { LOGGER.traceEntry("Parameters: {} and {}", ()->gson.toJson(foo), ()-> bar); // do something }
format
- The format String for the parameters.paramSuppliers
- The Suppliers for the parameters to the method.EntryMessage traceEntry(Message message)
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
calling logger.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 returned EntryMessage
is fully processed.
message
- The message. Avoid specifying a ReusableMessage, use immutable messages instead.ReusableMessage
void traceExit()
<R> R traceExit(R result)
return LOGGER.traceExit(myResult);
R
- The type of the parameter and object being returned.result
- The result being returned from the method call.<R> R traceExit(String format, R result)
return LOGGER.traceExit("Result: {}", myResult);
R
- The type of the parameter and object being returned.format
- The format String for the result.result
- The result being returned from the method call.void traceExit(EntryMessage message)
public long doSomething(int a, int b) { EntryMessage m = traceEntry("doSomething(a={}, b={})", a, b); // ... return LOGGER.traceExit(m); }
message
- The Message containing the formatted result.<R> R traceExit(EntryMessage message, R result)
public long doSomething(int a, int b) { EntryMessage m = traceEntry("doSomething(a={}, b={})", a, b); // ... return LOGGER.traceExit(m, myResult); }
R
- The type of the parameter and object being returned.message
- The Message containing the formatted result.result
- The result being returned from the method call.<R> R traceExit(Message message, R result)
return LOGGER.traceExit(new JsonMessage(myResult), myResult);
R
- The type of the parameter and object being returned.message
- The Message containing the formatted result.result
- The result being returned from the method call.void warn(Marker marker, Message message)
WARN
level.marker
- the marker data specific to this log statementmessage
- the message string to be loggedvoid warn(Marker marker, Message message, Throwable throwable)
WARN
level.marker
- the marker data specific to this log statementmessage
- the message string to be loggedthrowable
- A Throwable or null.void warn(Marker marker, MessageSupplier messageSupplier)
WARN
level with the
specified Marker. The MessageSupplier
may or may not use the MessageFactory
to construct the
Message
.marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message.void warn(Marker marker, MessageSupplier messageSupplier, Throwable throwable)
WARN
level) with the
specified Marker and including the stack warn of the Throwable
throwable
passed as parameter. The
MessageSupplier
may or may not use the MessageFactory
to construct the Message
.marker
- the marker data specific to this log statementmessageSupplier
- A function, which when called, produces the desired log message.throwable
- A Throwable or null.void warn(Marker marker, CharSequence message)
WARN
level.marker
- the marker data specific to this log statementmessage
- the message CharSequence to log.void warn(Marker marker, CharSequence message, Throwable throwable)
WARN
level including the stack trace of the Throwable
throwable
passed as parameter.marker
- the marker data specific to this log statementmessage
- the message CharSequence to log.throwable
- the Throwable
to log, including its stack trace.void warn(Marker marker, Object message)
WARN
level.marker
- the marker data specific to this log statementmessage
- the message object to log.void warn(Marker marker, Object message, Throwable throwable)
WARN
level including the stack trace of the Throwable
throwable
passed as parameter.marker
- the marker data specific to this log statementmessage
- the message object to log.throwable
- the Throwable
to log, including its stack trace.void warn(Marker marker, String message)
WARN
level.marker
- the marker data specific to this log statementmessage
- the message object to log.void warn(Marker marker, String message, Object... params)
WARN
level.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.getMessageFactory()
void warn(Marker marker, String message, Supplier<?>... paramSuppliers)
WARN
level.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.void warn(Marker marker, String message, Throwable throwable)
WARN
level including the stack trace of the Throwable
throwable
passed as parameter.marker
- the marker data specific to this log statementmessage
- the message object to log.throwable
- the Throwable
to log, including its stack trace.void warn(Marker marker, Supplier<?> messageSupplier)
WARN
level with the
specified Marker.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.void warn(Marker marker, Supplier<?> messageSupplier, Throwable throwable)
WARN
level) with the
specified Marker and including the stack warn of the Throwable
throwable
passed as parameter.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.void warn(Message message)
WARN
level.message
- the message string to be loggedvoid warn(Message message, Throwable throwable)
WARN
level.message
- the message string to be loggedthrowable
- A Throwable or null.void warn(MessageSupplier messageSupplier)
WARN
level. The
MessageSupplier
may or may not use the MessageFactory
to construct the Message
.messageSupplier
- A function, which when called, produces the desired log message.void warn(MessageSupplier messageSupplier, Throwable throwable)
WARN
level) including the
stack warn of the Throwable
throwable
passed as parameter. The MessageSupplier
may or may
not use the MessageFactory
to construct the Message
.messageSupplier
- A function, which when called, produces the desired log message.throwable
- the Throwable
to log, including its stack warn.void warn(CharSequence message)
WARN
level.message
- the message CharSequence to log.void warn(CharSequence message, Throwable throwable)
WARN
level including the stack trace of the Throwable
throwable
passed as parameter.message
- the message CharSequence to log.throwable
- the Throwable
to log, including its stack trace.void warn(Object message)
WARN
level.message
- the message object to log.void warn(Object message, Throwable throwable)
WARN
level including the stack trace of the Throwable
throwable
passed as parameter.message
- the message object to log.throwable
- the Throwable
to log, including its stack trace.void warn(String message)
WARN
level.message
- the message string to log.void warn(String message, Object... params)
WARN
level.message
- the message to log; the format depends on the message factory.params
- parameters to the message.getMessageFactory()
void warn(String message, Supplier<?>... paramSuppliers)
WARN
level.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.void warn(String message, Throwable throwable)
WARN
level including the stack trace of the Throwable
throwable
passed as parameter.message
- the message object to log.throwable
- the Throwable
to log, including its stack trace.void warn(Supplier<?> messageSupplier)
WARN
level.messageSupplier
- A function, which when called, produces the desired log message; the format depends on the
message factory.void warn(Supplier<?> messageSupplier, Throwable throwable)
WARN
level) including the
stack warn of the Throwable
throwable
passed as parameter.messageSupplier
- A function, which when called, produces the desired log message; the format depends on the
message factory.throwable
- the Throwable
to log, including its stack warn.void warn(Marker marker, String message, Object p0)
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.void warn(Marker marker, String message, Object p0, Object p1)
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.void warn(Marker marker, String message, Object p0, Object p1, Object p2)
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.void warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3)
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.void warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4)
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.void warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5)
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.void warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6)
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.void warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7)
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.void warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8)
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.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)
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.void warn(String message, Object p0)
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.void warn(String message, Object p0, Object p1)
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.void warn(String message, Object p0, Object p1, Object p2)
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.void warn(String message, Object p0, Object p1, Object p2, Object p3)
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.void warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4)
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.void warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5)
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.void warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6)
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.void warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7)
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.void warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8)
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.void warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9)
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.default void logMessage(Level level, Marker marker, String fqcn, StackTraceElement location, Message message, Throwable throwable)
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
- the Throwable
to log, including its stack trace.default LogBuilder atTrace()
default LogBuilder atDebug()
default LogBuilder atInfo()
default LogBuilder atWarn()
default LogBuilder atError()
default LogBuilder atFatal()
default LogBuilder always()
default LogBuilder atLevel(Level level)
level
- Any level (ignoreed here).Copyright © 1999-1969 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.