public abstract class AbstractLogger extends Object implements ExtendedLogger, LocationAwareLogger, Serializable
Modifier and Type | Field and Description |
---|---|
static Marker |
CATCHING_MARKER
Marker for catching exceptions.
|
static Class<? extends FlowMessageFactory> |
DEFAULT_FLOW_MESSAGE_FACTORY_CLASS
The default FlowMessageFactory class.
|
static Class<? extends MessageFactory> |
DEFAULT_MESSAGE_FACTORY_CLASS
The default MessageFactory class.
|
static Marker |
ENTRY_MARKER
Marker for method entry tracing.
|
static Marker |
EXCEPTION_MARKER
Marker for exception tracing.
|
static Marker |
EXIT_MARKER
Marker for method exit tracing.
|
static Marker |
FLOW_MARKER
Marker for flow tracing.
|
protected ThreadLocal<DefaultLogBuilder> |
logBuilder |
protected String |
name |
static Marker |
THROWING_MARKER
Marker for throwing exceptions.
|
Constructor and Description |
---|
AbstractLogger()
Creates a new logger named after this class (or subclass).
|
AbstractLogger(String name)
Creates a new named logger.
|
AbstractLogger(String name,
MessageFactory messageFactory)
Creates a new named logger with a particular
MessageFactory . |
Modifier and Type | Method and Description |
---|---|
LogBuilder |
always()
Construct a fatal log event.
|
LogBuilder |
atDebug()
Construct a debug log event.
|
LogBuilder |
atError()
Construct an error log event.
|
LogBuilder |
atFatal()
Construct a fatal log event.
|
LogBuilder |
atInfo()
Construct an informational log event.
|
LogBuilder |
atLevel(Level level)
Construct a log event.
|
LogBuilder |
atTrace()
Construct a trace log event.
|
LogBuilder |
atWarn()
Construct a warning log event.
|
void |
catching(Level level,
Throwable throwable)
Logs a
Throwable that has been caught to a specific logging level. |
protected void |
catching(String fqcn,
Level level,
Throwable throwable)
Logs a Throwable that has been caught with location information.
|
void |
catching(Throwable throwable)
|
protected Message |
catchingMsg(Throwable throwable) |
static void |
checkMessageFactory(ExtendedLogger logger,
MessageFactory messageFactory)
Checks that the message factory a logger was created with is the same as the given messageFactory.
|
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)
|
protected EntryMessage |
enter(String fqcn,
Message message)
Logs entry to a method with location information.
|
protected EntryMessage |
enter(String fqcn,
MessageSupplier messageSupplier)
Deprecated.
|
protected EntryMessage |
enter(String fqcn,
String format,
MessageSupplier... paramSuppliers)
Deprecated.
|
protected EntryMessage |
enter(String fqcn,
String format,
Object... params)
Logs entry to a method with location information.
|
protected EntryMessage |
enter(String fqcn,
String format,
Supplier<?>... paramSuppliers)
Logs entry to a method with location information.
|
void |
entry()
Deprecated.
|
void |
entry(Object... params)
Logs entry to a method along with its parameters (consider using one of the
traceEntry(...) methods instead.) |
protected void |
entry(String fqcn,
Object... params)
Logs entry to a method with location information.
|
protected EntryMessage |
entryMsg(String format,
MessageSupplier... paramSuppliers) |
protected EntryMessage |
entryMsg(String format,
Object... params) |
protected EntryMessage |
entryMsg(String format,
Supplier<?>... paramSuppliers) |
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.
|
<R> R |
exit(R result)
Deprecated.
|
protected <R> R |
exit(String fqcn,
R result)
Logs exiting from a method with the result and location information.
|
protected <R> R |
exit(String fqcn,
String format,
R result)
Logs exiting from a method with the result and location information.
|
protected Message |
exitMsg(String format,
Object result) |
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)
|
<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.
|
static int |
getRecursionDepth()
Returns the depth of nested logging calls in the current Thread: zero if no logging call has been made,
one if a single logging call without nested logging calls has been made, or more depending on the level of
nesting.
|
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.
|
protected void |
log(Level level,
Marker marker,
String fqcn,
StackTraceElement location,
Message message,
Throwable throwable) |
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. |
void |
logIfEnabled(String fqcn,
Level level,
Marker marker,
CharSequence message,
Throwable throwable)
Logs a CharSequence message if the specified level is active.
|
void |
logIfEnabled(String fqcn,
Level level,
Marker marker,
MessageSupplier messageSupplier,
Throwable throwable)
Logs a message which is only to be constructed if the specified level is active.
|
void |
logIfEnabled(String fqcn,
Level level,
Marker marker,
Message message,
Throwable throwable)
Logs a message if the specified level is active.
|
void |
logIfEnabled(String fqcn,
Level level,
Marker marker,
Object message,
Throwable throwable)
Logs a message if the specified level is active.
|
void |
logIfEnabled(String fqcn,
Level level,
Marker marker,
String message)
Logs a message if the specified level is active.
|
void |
logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Object... params)
Logs a message if the specified level is active.
|
void |
logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Object p0)
Logs a message if the specified level is active.
|
void |
logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1)
Logs a message if the specified level is active.
|
void |
logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2)
Logs a message if the specified level is active.
|
void |
logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3)
Logs a message if the specified level is active.
|
void |
logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4)
Logs a message if the specified level is active.
|
void |
logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5)
Logs a message if the specified level is active.
|
void |
logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6)
Logs a message if the specified level is active.
|
void |
logIfEnabled(String fqcn,
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 if the specified level is active.
|
void |
logIfEnabled(String fqcn,
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 if the specified level is active.
|
void |
logIfEnabled(String fqcn,
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 if the specified level is active.
|
void |
logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Supplier<?>... paramSuppliers)
Logs a message whose parameters are only to be constructed if the specified level is active.
|
void |
logIfEnabled(String fqcn,
Level level,
Marker marker,
String message,
Throwable throwable)
Logs a message if the specified level is active.
|
void |
logIfEnabled(String fqcn,
Level level,
Marker marker,
Supplier<?> messageSupplier,
Throwable throwable)
Logs a message which is only to be constructed if the specified level is active.
|
void |
logMessage(Level level,
Marker marker,
String fqcn,
StackTraceElement location,
Message message,
Throwable throwable)
Logs a Message.
|
protected void |
logMessage(String fqcn,
Level level,
Marker marker,
CharSequence message,
Throwable throwable) |
protected void |
logMessage(String fqcn,
Level level,
Marker marker,
MessageSupplier messageSupplier,
Throwable throwable) |
protected void |
logMessage(String fqcn,
Level level,
Marker marker,
Object message,
Throwable throwable) |
protected void |
logMessage(String fqcn,
Level level,
Marker marker,
String message) |
protected void |
logMessage(String fqcn,
Level level,
Marker marker,
String message,
Object... params) |
protected void |
logMessage(String fqcn,
Level level,
Marker marker,
String message,
Object p0) |
protected void |
logMessage(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1) |
protected void |
logMessage(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2) |
protected void |
logMessage(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3) |
protected void |
logMessage(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4) |
protected void |
logMessage(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5) |
protected void |
logMessage(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6) |
protected void |
logMessage(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7) |
protected void |
logMessage(String fqcn,
Level level,
Marker marker,
String message,
Object p0,
Object p1,
Object p2,
Object p3,
Object p4,
Object p5,
Object p6,
Object p7,
Object p8) |
protected void |
logMessage(String fqcn,
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) |
protected void |
logMessage(String fqcn,
Level level,
Marker marker,
String message,
Supplier<?>... paramSuppliers) |
protected void |
logMessage(String fqcn,
Level level,
Marker marker,
String message,
Throwable throwable) |
protected void |
logMessage(String fqcn,
Level level,
Marker marker,
Supplier<?> messageSupplier,
Throwable throwable) |
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.
|
protected boolean |
requiresLocation() |
<T extends Throwable> |
throwing(Level level,
T throwable)
Logs a
Throwable to be thrown. |
protected <T extends Throwable> |
throwing(String fqcn,
Level level,
T throwable)
Logs a Throwable to be thrown.
|
<T extends Throwable> |
throwing(T throwable)
|
protected Message |
throwingMsg(Throwable 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)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static final Marker FLOW_MARKER
public static final Marker ENTRY_MARKER
public static final Marker EXIT_MARKER
public static final Marker EXCEPTION_MARKER
public static final Marker THROWING_MARKER
public static final Marker CATCHING_MARKER
public static final Class<? extends MessageFactory> DEFAULT_MESSAGE_FACTORY_CLASS
public static final Class<? extends FlowMessageFactory> DEFAULT_FLOW_MESSAGE_FACTORY_CLASS
protected final transient ThreadLocal<DefaultLogBuilder> logBuilder
public AbstractLogger()
public AbstractLogger(String name)
name
- the logger namepublic AbstractLogger(String name, MessageFactory messageFactory)
MessageFactory
.name
- the logger namemessageFactory
- the message factory, if null then use the default message factory.public static void checkMessageFactory(ExtendedLogger logger, MessageFactory messageFactory)
DEFAULT_MESSAGE_FACTORY_CLASS
.logger
- The logger to checkmessageFactory
- The message factory to check.public void catching(Level level, Throwable throwable)
Logger
Throwable
that has been caught to a specific logging level.protected void catching(String fqcn, Level level, Throwable throwable)
fqcn
- The fully qualified class name of the caller.level
- The logging level.throwable
- The Throwable.public void catching(Throwable throwable)
Logger
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.protected Message catchingMsg(Throwable throwable)
public void debug(Marker marker, CharSequence message)
Logger
DEBUG
level.public void debug(Marker marker, CharSequence message, Throwable throwable)
Logger
public void debug(Marker marker, Message message)
Logger
DEBUG
level.public void debug(Marker marker, Message message, Throwable throwable)
Logger
DEBUG
level.public void debug(Marker marker, Object message)
Logger
DEBUG
level.public void debug(Marker marker, Object message, Throwable throwable)
Logger
public void debug(Marker marker, String message)
Logger
DEBUG
level.public void debug(Marker marker, String message, Object... params)
Logger
DEBUG
level.debug
in interface Logger
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.Logger.getMessageFactory()
public void debug(Marker marker, String message, Throwable throwable)
Logger
public void debug(Message message)
Logger
DEBUG
level.public void debug(Message message, Throwable throwable)
Logger
DEBUG
level.public void debug(CharSequence message)
Logger
DEBUG
level.public void debug(CharSequence message, Throwable throwable)
Logger
public void debug(Object message)
Logger
DEBUG
level.public void debug(Object message, Throwable throwable)
Logger
public void debug(String message)
Logger
DEBUG
level.public void debug(String message, Object... params)
Logger
DEBUG
level.debug
in interface Logger
message
- the message to log; the format depends on the message factory.params
- parameters to the message.Logger.getMessageFactory()
public void debug(String message, Throwable throwable)
Logger
public void debug(Supplier<?> messageSupplier)
Logger
DEBUG
level.public void debug(Supplier<?> messageSupplier, Throwable throwable)
Logger
public void debug(Marker marker, Supplier<?> messageSupplier)
Logger
DEBUG
level with
the specified Marker.public void debug(Marker marker, String message, Supplier<?>... paramSuppliers)
Logger
DEBUG
level.public void debug(Marker marker, Supplier<?> messageSupplier, Throwable throwable)
Logger
public void debug(String message, Supplier<?>... paramSuppliers)
Logger
DEBUG
level.public void debug(Marker marker, MessageSupplier messageSupplier)
Logger
DEBUG
level with
the specified Marker. The MessageSupplier
may or may not use the MessageFactory
to construct the
Message
.public void debug(Marker marker, MessageSupplier messageSupplier, Throwable throwable)
Logger
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
.public void debug(MessageSupplier messageSupplier)
Logger
DEBUG
level. The
MessageSupplier
may or may not use the MessageFactory
to construct the Message
.public void debug(MessageSupplier messageSupplier, Throwable throwable)
Logger
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
.public void debug(Marker marker, String message, Object p0)
Logger
public void debug(Marker marker, String message, Object p0, Object p1)
Logger
public void debug(Marker marker, String message, Object p0, Object p1, Object p2)
Logger
public void debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3)
Logger
debug
in interface Logger
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.public void debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4)
Logger
debug
in interface Logger
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.public void debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5)
Logger
debug
in interface Logger
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.public void debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6)
Logger
debug
in interface Logger
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.public void debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7)
Logger
debug
in interface Logger
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.public void debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8)
Logger
debug
in interface Logger
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.public 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)
Logger
debug
in interface Logger
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.public void debug(String message, Object p0)
Logger
public void debug(String message, Object p0, Object p1)
Logger
public void debug(String message, Object p0, Object p1, Object p2)
Logger
public void debug(String message, Object p0, Object p1, Object p2, Object p3)
Logger
public void debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4)
Logger
public void debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5)
Logger
debug
in interface Logger
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.public void debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6)
Logger
debug
in interface Logger
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.public void debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7)
Logger
debug
in interface Logger
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.public void debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8)
Logger
debug
in interface Logger
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.public void debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9)
Logger
debug
in interface Logger
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.protected EntryMessage enter(String fqcn, String format, Supplier<?>... paramSuppliers)
fqcn
- The fully qualified class name of the caller.format
- Format String for the parameters.paramSuppliers
- The Suppliers of the parameters.@Deprecated protected EntryMessage enter(String fqcn, String format, MessageSupplier... paramSuppliers)
fqcn
- The fully qualified class name of the caller.format
- The format String for the parameters.paramSuppliers
- The parameters to the method.protected EntryMessage enter(String fqcn, String format, Object... params)
fqcn
- The fully qualified class name of the caller.format
- The format String for the parameters.params
- The parameters to the method.@Deprecated protected EntryMessage enter(String fqcn, MessageSupplier messageSupplier)
fqcn
- The fully qualified class name of the caller.messageSupplier
- The Supplier of the Message.protected EntryMessage enter(String fqcn, Message message)
fqcn
- The fully qualified class name of the caller.message
- the Message.@Deprecated public void entry()
Logger
public void entry(Object... params)
Logger
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.
protected void entry(String fqcn, Object... params)
fqcn
- The fully qualified class name of the caller.params
- The parameters to the method.protected EntryMessage entryMsg(String format, Object... params)
protected EntryMessage entryMsg(String format, MessageSupplier... paramSuppliers)
protected EntryMessage entryMsg(String format, Supplier<?>... paramSuppliers)
public void error(Marker marker, Message message)
Logger
ERROR
level.public void error(Marker marker, Message message, Throwable throwable)
Logger
ERROR
level.public void error(Marker marker, CharSequence message)
Logger
ERROR
level.public void error(Marker marker, CharSequence message, Throwable throwable)
Logger
public void error(Marker marker, Object message)
Logger
ERROR
level.public void error(Marker marker, Object message, Throwable throwable)
Logger
public void error(Marker marker, String message)
Logger
ERROR
level.public void error(Marker marker, String message, Object... params)
Logger
ERROR
level.error
in interface Logger
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.Logger.getMessageFactory()
public void error(Marker marker, String message, Throwable throwable)
Logger
public void error(Message message)
Logger
ERROR
level.public void error(Message message, Throwable throwable)
Logger
ERROR
level.public void error(CharSequence message)
Logger
ERROR
level.public void error(CharSequence message, Throwable throwable)
Logger
public void error(Object message)
Logger
ERROR
level.public void error(Object message, Throwable throwable)
Logger
public void error(String message)
Logger
ERROR
level.public void error(String message, Object... params)
Logger
ERROR
level.error
in interface Logger
message
- the message to log; the format depends on the message factory.params
- parameters to the message.Logger.getMessageFactory()
public void error(String message, Throwable throwable)
Logger
public void error(Supplier<?> messageSupplier)
Logger
ERROR
level.public void error(Supplier<?> messageSupplier, Throwable throwable)
Logger
public void error(Marker marker, Supplier<?> messageSupplier)
Logger
ERROR
level with
the specified Marker.public void error(Marker marker, String message, Supplier<?>... paramSuppliers)
Logger
ERROR
level.public void error(Marker marker, Supplier<?> messageSupplier, Throwable throwable)
Logger
public void error(String message, Supplier<?>... paramSuppliers)
Logger
ERROR
level.public void error(Marker marker, MessageSupplier messageSupplier)
Logger
ERROR
level with
the specified Marker. The MessageSupplier
may or may not use the MessageFactory
to construct the
Message
.public void error(Marker marker, MessageSupplier messageSupplier, Throwable throwable)
Logger
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
.public void error(MessageSupplier messageSupplier)
Logger
ERROR
level. The
MessageSupplier
may or may not use the MessageFactory
to construct the Message
.public void error(MessageSupplier messageSupplier, Throwable throwable)
Logger
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
.public void error(Marker marker, String message, Object p0)
Logger
public void error(Marker marker, String message, Object p0, Object p1)
Logger
public void error(Marker marker, String message, Object p0, Object p1, Object p2)
Logger
public void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3)
Logger
error
in interface Logger
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.public void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4)
Logger
error
in interface Logger
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.public void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5)
Logger
error
in interface Logger
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.public void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6)
Logger
error
in interface Logger
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.public void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7)
Logger
error
in interface Logger
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.public void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8)
Logger
error
in interface Logger
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.public 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)
Logger
error
in interface Logger
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.public void error(String message, Object p0)
Logger
public void error(String message, Object p0, Object p1)
Logger
public void error(String message, Object p0, Object p1, Object p2)
Logger
public void error(String message, Object p0, Object p1, Object p2, Object p3)
Logger
public void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4)
Logger
public void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5)
Logger
error
in interface Logger
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.public void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6)
Logger
error
in interface Logger
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.public void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7)
Logger
error
in interface Logger
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.public void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8)
Logger
error
in interface Logger
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.public void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9)
Logger
error
in interface Logger
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 public void exit()
Logger
@Deprecated public <R> R exit(R result)
Logger
return LOGGER.exit(myResult);
protected <R> R exit(String fqcn, R result)
R
- The type of the parameter and object being returned.fqcn
- The fully qualified class name of the caller.result
- The result being returned from the method call.protected <R> R exit(String fqcn, String format, R result)
R
- The type of the parameter and object being returned.fqcn
- The fully qualified class name of the caller.result
- The result being returned from the method call.public void fatal(Marker marker, Message message)
Logger
FATAL
level.public void fatal(Marker marker, Message message, Throwable throwable)
Logger
FATAL
level.public void fatal(Marker marker, CharSequence message)
Logger
FATAL
level.public void fatal(Marker marker, CharSequence message, Throwable throwable)
Logger
public void fatal(Marker marker, Object message)
Logger
FATAL
level.public void fatal(Marker marker, Object message, Throwable throwable)
Logger
public void fatal(Marker marker, String message)
Logger
FATAL
level.public void fatal(Marker marker, String message, Object... params)
Logger
FATAL
level.fatal
in interface Logger
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.Logger.getMessageFactory()
public void fatal(Marker marker, String message, Throwable throwable)
Logger
public void fatal(Message message)
Logger
FATAL
level.public void fatal(Message message, Throwable throwable)
Logger
FATAL
level.public void fatal(CharSequence message)
Logger
FATAL
level.public void fatal(CharSequence message, Throwable throwable)
Logger
public void fatal(Object message)
Logger
FATAL
level.public void fatal(Object message, Throwable throwable)
Logger
public void fatal(String message)
Logger
FATAL
level.public void fatal(String message, Object... params)
Logger
FATAL
level.fatal
in interface Logger
message
- the message to log; the format depends on the message factory.params
- parameters to the message.Logger.getMessageFactory()
public void fatal(String message, Throwable throwable)
Logger
public void fatal(Supplier<?> messageSupplier)
Logger
FATAL
level.public void fatal(Supplier<?> messageSupplier, Throwable throwable)
Logger
public void fatal(Marker marker, Supplier<?> messageSupplier)
Logger
FATAL
level with
the specified Marker.public void fatal(Marker marker, String message, Supplier<?>... paramSuppliers)
Logger
FATAL
level.public void fatal(Marker marker, Supplier<?> messageSupplier, Throwable throwable)
Logger
public void fatal(String message, Supplier<?>... paramSuppliers)
Logger
FATAL
level.public void fatal(Marker marker, MessageSupplier messageSupplier)
Logger
FATAL
level with
the specified Marker. The MessageSupplier
may or may not use the MessageFactory
to construct the
Message
.public void fatal(Marker marker, MessageSupplier messageSupplier, Throwable throwable)
Logger
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
.public void fatal(MessageSupplier messageSupplier)
Logger
FATAL
level. The
MessageSupplier
may or may not use the MessageFactory
to construct the Message
.public void fatal(MessageSupplier messageSupplier, Throwable throwable)
Logger
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
.public void fatal(Marker marker, String message, Object p0)
Logger
public void fatal(Marker marker, String message, Object p0, Object p1)
Logger
public void fatal(Marker marker, String message, Object p0, Object p1, Object p2)
Logger
public void fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3)
Logger
fatal
in interface Logger
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.public void fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4)
Logger
fatal
in interface Logger
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.public void fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5)
Logger
fatal
in interface Logger
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.public void fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6)
Logger
fatal
in interface Logger
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.public void fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7)
Logger
fatal
in interface Logger
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.public void fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8)
Logger
fatal
in interface Logger
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.public 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)
Logger
fatal
in interface Logger
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.public void fatal(String message, Object p0)
Logger
public void fatal(String message, Object p0, Object p1)
Logger
public void fatal(String message, Object p0, Object p1, Object p2)
Logger
public void fatal(String message, Object p0, Object p1, Object p2, Object p3)
Logger
public void fatal(String message, Object p0, Object p1, Object p2, Object p3, Object p4)
Logger
public void fatal(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5)
Logger
fatal
in interface Logger
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.public void fatal(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6)
Logger
fatal
in interface Logger
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.public void fatal(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7)
Logger
fatal
in interface Logger
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.public void fatal(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8)
Logger
fatal
in interface Logger
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.public void fatal(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9)
Logger
fatal
in interface Logger
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.public <MF extends MessageFactory> MF getMessageFactory()
Logger
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.getMessageFactory
in interface Logger
MessageFactory2
public void info(Marker marker, Message message)
Logger
INFO
level.public void info(Marker marker, Message message, Throwable throwable)
Logger
INFO
level.public void info(Marker marker, CharSequence message)
Logger
INFO
level.public void info(Marker marker, CharSequence message, Throwable throwable)
Logger
public void info(Marker marker, Object message)
Logger
INFO
level.public void info(Marker marker, Object message, Throwable throwable)
Logger
public void info(Marker marker, String message)
Logger
INFO
level.public void info(Marker marker, String message, Object... params)
Logger
INFO
level.info
in interface Logger
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.Logger.getMessageFactory()
public void info(Marker marker, String message, Throwable throwable)
Logger
public void info(Message message)
Logger
INFO
level.public void info(Message message, Throwable throwable)
Logger
INFO
level.public void info(CharSequence message)
Logger
INFO
level.public void info(CharSequence message, Throwable throwable)
Logger
public void info(Object message)
Logger
INFO
level.public void info(Object message, Throwable throwable)
Logger
public void info(String message)
Logger
INFO
level.public void info(String message, Object... params)
Logger
INFO
level.info
in interface Logger
message
- the message to log; the format depends on the message factory.params
- parameters to the message.Logger.getMessageFactory()
public void info(String message, Throwable throwable)
Logger
public void info(Supplier<?> messageSupplier)
Logger
INFO
level.public void info(Supplier<?> messageSupplier, Throwable throwable)
Logger
public void info(Marker marker, Supplier<?> messageSupplier)
Logger
INFO
level with the
specified Marker.public void info(Marker marker, String message, Supplier<?>... paramSuppliers)
Logger
INFO
level.public void info(Marker marker, Supplier<?> messageSupplier, Throwable throwable)
Logger
public void info(String message, Supplier<?>... paramSuppliers)
Logger
INFO
level.public void info(Marker marker, MessageSupplier messageSupplier)
Logger
INFO
level with the
specified Marker. The MessageSupplier
may or may not use the MessageFactory
to construct the
Message
.public void info(Marker marker, MessageSupplier messageSupplier, Throwable throwable)
Logger
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
.public void info(MessageSupplier messageSupplier)
Logger
INFO
level. The
MessageSupplier
may or may not use the MessageFactory
to construct the Message
.public void info(MessageSupplier messageSupplier, Throwable throwable)
Logger
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
.public void info(Marker marker, String message, Object p0)
Logger
public void info(Marker marker, String message, Object p0, Object p1)
Logger
public void info(Marker marker, String message, Object p0, Object p1, Object p2)
Logger
public void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3)
Logger
info
in interface Logger
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.public void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4)
Logger
info
in interface Logger
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.public void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5)
Logger
info
in interface Logger
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.public void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6)
Logger
info
in interface Logger
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.public void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7)
Logger
info
in interface Logger
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.public void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8)
Logger
info
in interface Logger
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.public 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)
Logger
info
in interface Logger
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.public void info(String message, Object p0)
Logger
public void info(String message, Object p0, Object p1)
Logger
public void info(String message, Object p0, Object p1, Object p2)
Logger
public void info(String message, Object p0, Object p1, Object p2, Object p3)
Logger
public void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4)
Logger
public void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5)
Logger
info
in interface Logger
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.public void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6)
Logger
info
in interface Logger
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.public void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7)
Logger
info
in interface Logger
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.public void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8)
Logger
info
in interface Logger
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.public void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9)
Logger
info
in interface Logger
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.public boolean isDebugEnabled()
Logger
DEBUG
Level.isDebugEnabled
in interface Logger
true
if this Logger is enabled for level DEBUG, false
otherwise.public boolean isDebugEnabled(Marker marker)
Logger
DEBUG
Level.isDebugEnabled
in interface Logger
marker
- The Marker to checktrue
if this Logger is enabled for level DEBUG, false
otherwise.public boolean isEnabled(Level level)
Logger
Note that passing in OFF
always returns true
.
public boolean isEnabled(Level level, Marker marker)
Logger
public boolean isErrorEnabled()
Logger
ERROR
Level.isErrorEnabled
in interface Logger
true
if this Logger is enabled for level ERROR
, false
otherwise.public boolean isErrorEnabled(Marker marker)
Logger
ERROR
Level.isErrorEnabled
in interface Logger
marker
- The Marker to checktrue
if this Logger is enabled for level ERROR
, false
otherwise.public boolean isFatalEnabled()
Logger
FATAL
Level.isFatalEnabled
in interface Logger
true
if this Logger is enabled for level FATAL
, false
otherwise.public boolean isFatalEnabled(Marker marker)
Logger
FATAL
Level.isFatalEnabled
in interface Logger
marker
- The Marker to checktrue
if this Logger is enabled for level FATAL
, false
otherwise.public boolean isInfoEnabled()
Logger
INFO
Level.isInfoEnabled
in interface Logger
true
if this Logger is enabled for level INFO, false
otherwise.public boolean isInfoEnabled(Marker marker)
Logger
INFO
Level.isInfoEnabled
in interface Logger
marker
- The Marker to checktrue
if this Logger is enabled for level INFO, false
otherwise.public boolean isTraceEnabled()
Logger
TRACE
level.isTraceEnabled
in interface Logger
true
if this Logger is enabled for level TRACE, false
otherwise.public boolean isTraceEnabled(Marker marker)
Logger
TRACE
level.isTraceEnabled
in interface Logger
marker
- The Marker to checktrue
if this Logger is enabled for level TRACE, false
otherwise.public boolean isWarnEnabled()
Logger
WARN
Level.isWarnEnabled
in interface Logger
true
if this Logger is enabled for level WARN
, false
otherwise.public boolean isWarnEnabled(Marker marker)
Logger
WARN
Level.isWarnEnabled
in interface Logger
marker
- The Marker to checktrue
if this Logger is enabled for level WARN
, false
otherwise.public void log(Level level, Marker marker, Message message)
Logger
public void log(Level level, Marker marker, Message message, Throwable throwable)
Logger
public void log(Level level, Marker marker, CharSequence message)
Logger
public void log(Level level, Marker marker, CharSequence message, Throwable throwable)
Logger
Throwable
throwable
passed as
parameter.public void log(Level level, Marker marker, Object message)
Logger
public void log(Level level, Marker marker, Object message, Throwable throwable)
Logger
Throwable
throwable
passed as
parameter.public void log(Level level, Marker marker, String message)
Logger
public void log(Level level, Marker marker, String message, Object... params)
Logger
log
in interface Logger
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.Logger.getMessageFactory()
public void log(Level level, Marker marker, String message, Throwable throwable)
Logger
Throwable
throwable
passed as
parameter.public void log(Level level, Message message)
Logger
public void log(Level level, Message message, Throwable throwable)
Logger
public void log(Level level, CharSequence message)
Logger
public void log(Level level, CharSequence message, Throwable throwable)
Logger
Throwable
throwable
passed as
parameter.public void log(Level level, Object message)
Logger
public void log(Level level, Object message, Throwable throwable)
Logger
Throwable
throwable
passed as
parameter.public void log(Level level, String message)
Logger
public void log(Level level, String message, Object... params)
Logger
log
in interface Logger
level
- the logging levelmessage
- the message to log; the format depends on the message factory.params
- parameters to the message.Logger.getMessageFactory()
public void log(Level level, String message, Throwable throwable)
Logger
Throwable
throwable
passed as
parameter.public void log(Level level, Supplier<?> messageSupplier)
Logger
public void log(Level level, Supplier<?> messageSupplier, Throwable throwable)
Logger
Throwable
throwable
passed as parameter.public void log(Level level, Marker marker, Supplier<?> messageSupplier)
Logger
public void log(Level level, Marker marker, String message, Supplier<?>... paramSuppliers)
Logger
log
in interface Logger
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.public void log(Level level, Marker marker, Supplier<?> messageSupplier, Throwable throwable)
Logger
Throwable
throwable
passed as parameter.public void log(Level level, String message, Supplier<?>... paramSuppliers)
Logger
public void log(Level level, Marker marker, MessageSupplier messageSupplier)
Logger
MessageSupplier
may or may not use the MessageFactory
to construct the
Message
.public void log(Level level, Marker marker, MessageSupplier messageSupplier, Throwable throwable)
Logger
Throwable
throwable
passed as parameter. The MessageSupplier
may or may not use the MessageFactory
to construct the Message
.public void log(Level level, MessageSupplier messageSupplier)
Logger
MessageSupplier
may or may not use the MessageFactory
to construct the Message
.public void log(Level level, MessageSupplier messageSupplier, Throwable throwable)
Logger
Throwable
throwable
passed as parameter. The MessageSupplier
may or may not use the
MessageFactory
to construct the Message
.public void log(Level level, Marker marker, String message, Object p0)
Logger
public void log(Level level, Marker marker, String message, Object p0, Object p1)
Logger
public void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2)
Logger
public void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3)
Logger
log
in interface Logger
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.public void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4)
Logger
log
in interface Logger
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.public void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5)
Logger
log
in interface Logger
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.public void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6)
Logger
log
in interface Logger
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.public void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7)
Logger
log
in interface Logger
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.public 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)
Logger
log
in interface Logger
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.public 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)
Logger
log
in interface Logger
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.public void log(Level level, String message, Object p0)
Logger
public void log(Level level, String message, Object p0, Object p1)
Logger
public void log(Level level, String message, Object p0, Object p1, Object p2)
Logger
public void log(Level level, String message, Object p0, Object p1, Object p2, Object p3)
Logger
public void log(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4)
Logger
log
in interface Logger
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.public void log(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5)
Logger
log
in interface Logger
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.public void log(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6)
Logger
log
in interface Logger
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.public void log(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7)
Logger
log
in interface Logger
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.public void log(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8)
Logger
log
in interface Logger
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.public 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)
Logger
log
in interface Logger
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.public void logIfEnabled(String fqcn, Level level, Marker marker, Message message, Throwable throwable)
ExtendedLogger
logIfEnabled
in interface ExtendedLogger
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.level
- The logging Level to check.marker
- A Marker or null.message
- The Message.throwable
- the exception to log, including its stack trace.public void logIfEnabled(String fqcn, Level level, Marker marker, MessageSupplier messageSupplier, Throwable throwable)
ExtendedLogger
logIfEnabled
in interface ExtendedLogger
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.level
- The logging Level to check.marker
- A Marker or null.messageSupplier
- A function, which when called, produces the desired log message.throwable
- the exception to log, including its stack trace.public void logIfEnabled(String fqcn, Level level, Marker marker, Object message, Throwable throwable)
ExtendedLogger
logIfEnabled
in interface ExtendedLogger
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.level
- The logging Level to check.marker
- A Marker or null.message
- The message.throwable
- the exception to log, including its stack trace.public void logIfEnabled(String fqcn, Level level, Marker marker, CharSequence message, Throwable throwable)
ExtendedLogger
logIfEnabled
in interface ExtendedLogger
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.level
- The logging Level to check.marker
- A Marker or null.message
- The CharSequence message.throwable
- the exception to log, including its stack trace.public void logIfEnabled(String fqcn, Level level, Marker marker, Supplier<?> messageSupplier, Throwable throwable)
ExtendedLogger
logIfEnabled
in interface ExtendedLogger
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.level
- The logging Level to check.marker
- A Marker or null.messageSupplier
- A function, which when called, produces the desired log message.throwable
- the exception to log, including its stack trace.public void logIfEnabled(String fqcn, Level level, Marker marker, String message)
ExtendedLogger
logIfEnabled
in interface ExtendedLogger
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.level
- The logging Level to check.marker
- A Marker or null.message
- The message.public void logIfEnabled(String fqcn, Level level, Marker marker, String message, Supplier<?>... paramSuppliers)
ExtendedLogger
logIfEnabled
in interface ExtendedLogger
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.level
- The logging Level to check.marker
- A Marker or null.message
- The message format.paramSuppliers
- An array of functions, which when called, produce the desired log message parameters.public void logIfEnabled(String fqcn, Level level, Marker marker, String message, Object... params)
ExtendedLogger
logIfEnabled
in interface ExtendedLogger
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.level
- The logging Level to check.marker
- A Marker or null.message
- The message format.params
- The message parameters.public void logIfEnabled(String fqcn, Level level, Marker marker, String message, Object p0)
ExtendedLogger
logIfEnabled
in interface ExtendedLogger
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.level
- The logging Level to check.marker
- A Marker or null.message
- The message format.p0
- the message parameterspublic void logIfEnabled(String fqcn, Level level, Marker marker, String message, Object p0, Object p1)
ExtendedLogger
logIfEnabled
in interface ExtendedLogger
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.level
- The logging Level to check.marker
- A Marker or null.message
- The message format.p0
- the message parametersp1
- the message parameterspublic void logIfEnabled(String fqcn, Level level, Marker marker, String message, Object p0, Object p1, Object p2)
ExtendedLogger
logIfEnabled
in interface ExtendedLogger
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.level
- The logging Level to check.marker
- A Marker or null.message
- The message format.p0
- the message parametersp1
- the message parametersp2
- the message parameterspublic void logIfEnabled(String fqcn, Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3)
ExtendedLogger
logIfEnabled
in interface ExtendedLogger
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.level
- The logging Level to check.marker
- A Marker or null.message
- The message format.p0
- the message parametersp1
- the message parametersp2
- the message parametersp3
- the message parameterspublic void logIfEnabled(String fqcn, Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4)
ExtendedLogger
logIfEnabled
in interface ExtendedLogger
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.level
- The logging Level to check.marker
- A Marker or null.message
- The message format.p0
- the message parametersp1
- the message parametersp2
- the message parametersp3
- the message parametersp4
- the message parameterspublic void logIfEnabled(String fqcn, Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5)
ExtendedLogger
logIfEnabled
in interface ExtendedLogger
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.level
- The logging Level to check.marker
- A Marker or null.message
- The message format.p0
- the message parametersp1
- the message parametersp2
- the message parametersp3
- the message parametersp4
- the message parametersp5
- the message parameterspublic void logIfEnabled(String fqcn, Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6)
ExtendedLogger
logIfEnabled
in interface ExtendedLogger
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.level
- The logging Level to check.marker
- A Marker or null.message
- The message format.p0
- the message parametersp1
- the message parametersp2
- the message parametersp3
- the message parametersp4
- the message parametersp5
- the message parametersp6
- the message parameterspublic void logIfEnabled(String fqcn, Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7)
ExtendedLogger
logIfEnabled
in interface ExtendedLogger
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.level
- The logging Level to check.marker
- A Marker or null.message
- The message format.p0
- the message parametersp1
- the message parametersp2
- the message parametersp3
- the message parametersp4
- the message parametersp5
- the message parametersp6
- the message parametersp7
- the message parameterspublic void logIfEnabled(String fqcn, Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8)
ExtendedLogger
logIfEnabled
in interface ExtendedLogger
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.level
- The logging Level to check.marker
- A Marker or null.message
- The message format.p0
- the message parametersp1
- the message parametersp2
- the message parametersp3
- the message parametersp4
- the message parametersp5
- the message parametersp6
- the message parametersp7
- the message parametersp8
- the message parameterspublic void logIfEnabled(String fqcn, 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)
ExtendedLogger
logIfEnabled
in interface ExtendedLogger
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.level
- The logging Level to check.marker
- A Marker or null.message
- The message format.p0
- the message parametersp1
- the message parametersp2
- the message parametersp3
- the message parametersp4
- the message parametersp5
- the message parametersp6
- the message parametersp7
- the message parametersp8
- the message parametersp9
- the message parameterspublic void logIfEnabled(String fqcn, Level level, Marker marker, String message, Throwable throwable)
ExtendedLogger
logIfEnabled
in interface ExtendedLogger
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.level
- The logging Level to check.marker
- A Marker or null.message
- The message.throwable
- the exception to log, including its stack trace.protected void logMessage(String fqcn, Level level, Marker marker, CharSequence message, Throwable throwable)
protected void logMessage(String fqcn, Level level, Marker marker, Object message, Throwable throwable)
protected void logMessage(String fqcn, Level level, Marker marker, MessageSupplier messageSupplier, Throwable throwable)
protected void logMessage(String fqcn, Level level, Marker marker, Supplier<?> messageSupplier, Throwable throwable)
protected void logMessage(String fqcn, Level level, Marker marker, String message, Throwable throwable)
protected void logMessage(String fqcn, Level level, Marker marker, String message)
protected void logMessage(String fqcn, Level level, Marker marker, String message, Object... params)
protected void logMessage(String fqcn, Level level, Marker marker, String message, Object p0)
protected void logMessage(String fqcn, Level level, Marker marker, String message, Object p0, Object p1)
protected void logMessage(String fqcn, Level level, Marker marker, String message, Object p0, Object p1, Object p2)
protected void logMessage(String fqcn, Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3)
protected void logMessage(String fqcn, Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4)
protected void logMessage(String fqcn, Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5)
protected void logMessage(String fqcn, Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6)
protected void logMessage(String fqcn, Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7)
protected void logMessage(String fqcn, Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8)
protected void logMessage(String fqcn, 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)
protected void logMessage(String fqcn, Level level, Marker marker, String message, Supplier<?>... paramSuppliers)
public void logMessage(Level level, Marker marker, String fqcn, StackTraceElement location, Message message, Throwable throwable)
Logger
logMessage
in interface Logger
logMessage
in interface LocationAwareLogger
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.protected void log(Level level, Marker marker, String fqcn, StackTraceElement location, Message message, Throwable throwable)
public void printf(Level level, Marker marker, String format, Object... params)
Logger
public void printf(Level level, String format, Object... params)
Logger
public static int getRecursionDepth()
public <T extends Throwable> T throwing(T throwable)
Logger
public <T extends Throwable> T throwing(Level level, T throwable)
Logger
Throwable
to be thrown. This may be coded as:
throw logger.throwing(Level.DEBUG, myException);
protected <T extends Throwable> T throwing(String fqcn, Level level, T throwable)
T
- the type of the Throwable.fqcn
- the fully qualified class name of this Logger implementation.level
- The logging Level.throwable
- The Throwable.protected Message throwingMsg(Throwable throwable)
public void trace(Marker marker, Message message)
Logger
TRACE
level.public void trace(Marker marker, Message message, Throwable throwable)
Logger
TRACE
level.public void trace(Marker marker, CharSequence message)
Logger
TRACE
level.public void trace(Marker marker, CharSequence message, Throwable throwable)
Logger
TRACE
level including the stack trace of the Throwable
throwable
passed as parameter.trace
in interface Logger
marker
- the marker data specific to this log statementmessage
- the message CharSequence to log.throwable
- the Throwable
to log, including its stack trace.Logger.debug(String)
public void trace(Marker marker, Object message)
Logger
TRACE
level.public void trace(Marker marker, Object message, Throwable throwable)
Logger
TRACE
level including the stack trace of the Throwable
throwable
passed as parameter.trace
in interface Logger
marker
- the marker data specific to this log statementmessage
- the message object to log.throwable
- the Throwable
to log, including its stack trace.Logger.debug(String)
public void trace(Marker marker, String message)
Logger
TRACE
level.public void trace(Marker marker, String message, Object... params)
Logger
TRACE
level.trace
in interface Logger
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.Logger.getMessageFactory()
public void trace(Marker marker, String message, Throwable throwable)
Logger
TRACE
level including the stack trace of the Throwable
throwable
passed as parameter.trace
in interface Logger
marker
- the marker data specific to this log statementmessage
- the message object to log.throwable
- the Throwable
to log, including its stack trace.Logger.debug(String)
public void trace(Message message)
Logger
TRACE
level.public void trace(Message message, Throwable throwable)
Logger
TRACE
level.public void trace(CharSequence message)
Logger
TRACE
level.public void trace(CharSequence message, Throwable throwable)
Logger
TRACE
level including the stack trace of the Throwable
throwable
passed as parameter.trace
in interface Logger
message
- the message CharSequence to log.throwable
- the Throwable
to log, including its stack trace.Logger.debug(String)
public void trace(Object message)
Logger
TRACE
level.public void trace(Object message, Throwable throwable)
Logger
TRACE
level including the stack trace of the Throwable
throwable
passed as parameter.trace
in interface Logger
message
- the message object to log.throwable
- the Throwable
to log, including its stack trace.Logger.debug(String)
public void trace(String message)
Logger
TRACE
level.public void trace(String message, Object... params)
Logger
TRACE
level.trace
in interface Logger
message
- the message to log; the format depends on the message factory.params
- parameters to the message.Logger.getMessageFactory()
public void trace(String message, Throwable throwable)
Logger
TRACE
level including the stack trace of the Throwable
throwable
passed as parameter.trace
in interface Logger
message
- the message object to log.throwable
- the Throwable
to log, including its stack trace.Logger.debug(String)
public void trace(Supplier<?> messageSupplier)
Logger
TRACE
level.public void trace(Supplier<?> messageSupplier, Throwable throwable)
Logger
public void trace(Marker marker, Supplier<?> messageSupplier)
Logger
TRACE
level with
the specified Marker.public void trace(Marker marker, String message, Supplier<?>... paramSuppliers)
Logger
TRACE
level.public void trace(Marker marker, Supplier<?> messageSupplier, Throwable throwable)
Logger
public void trace(String message, Supplier<?>... paramSuppliers)
Logger
TRACE
level.public void trace(Marker marker, MessageSupplier messageSupplier)
Logger
TRACE
level with
the specified Marker. The MessageSupplier
may or may not use the MessageFactory
to construct the
Message
.public void trace(Marker marker, MessageSupplier messageSupplier, Throwable throwable)
Logger
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
.public void trace(MessageSupplier messageSupplier)
Logger
TRACE
level. The
MessageSupplier
may or may not use the MessageFactory
to construct the Message
.public void trace(MessageSupplier messageSupplier, Throwable throwable)
Logger
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
.public void trace(Marker marker, String message, Object p0)
Logger
public void trace(Marker marker, String message, Object p0, Object p1)
Logger
public void trace(Marker marker, String message, Object p0, Object p1, Object p2)
Logger
public void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3)
Logger
trace
in interface Logger
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.public void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4)
Logger
trace
in interface Logger
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.public void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5)
Logger
trace
in interface Logger
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.public void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6)
Logger
trace
in interface Logger
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.public void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7)
Logger
trace
in interface Logger
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.public void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8)
Logger
trace
in interface Logger
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.public 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)
Logger
trace
in interface Logger
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.public void trace(String message, Object p0)
Logger
public void trace(String message, Object p0, Object p1)
Logger
public void trace(String message, Object p0, Object p1, Object p2)
Logger
public void trace(String message, Object p0, Object p1, Object p2, Object p3)
Logger
public void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4)
Logger
public void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5)
Logger
trace
in interface Logger
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.public void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6)
Logger
trace
in interface Logger
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.public void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7)
Logger
trace
in interface Logger
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.public void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8)
Logger
trace
in interface Logger
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.public void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9)
Logger
trace
in interface Logger
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.public EntryMessage traceEntry()
Logger
traceEntry
in interface Logger
public EntryMessage traceEntry(String format, Object... params)
Logger
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); }
traceEntry
in interface Logger
format
- The format String for the parameters.params
- The parameters to the method.public EntryMessage traceEntry(Supplier<?>... paramSuppliers)
Logger
public void doSomething(Request foo) { LOGGER.traceEntry(()->gson.toJson(foo)); // do something }
traceEntry
in interface Logger
paramSuppliers
- The Suppliers for the parameters to the method.public EntryMessage traceEntry(String format, Supplier<?>... paramSuppliers)
Logger
public void doSomething(String foo, int bar) { LOGGER.traceEntry("Parameters: {} and {}", ()->gson.toJson(foo), ()-> bar); // do something }
traceEntry
in interface Logger
format
- The format String for the parameters.paramSuppliers
- The Suppliers for the parameters to the method.public EntryMessage traceEntry(Message message)
Logger
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.
traceEntry
in interface Logger
message
- The message. Avoid specifying a ReusableMessage, use immutable messages instead.ReusableMessage
public void traceExit()
Logger
public <R> R traceExit(R result)
Logger
return LOGGER.traceExit(myResult);
public <R> R traceExit(String format, R result)
Logger
return LOGGER.traceExit("Result: {}", myResult);
public void traceExit(EntryMessage message)
Logger
public long doSomething(int a, int b) { EntryMessage m = traceEntry("doSomething(a={}, b={})", a, b); // ... return LOGGER.traceExit(m); }
public <R> R traceExit(EntryMessage message, R result)
Logger
public long doSomething(int a, int b) { EntryMessage m = traceEntry("doSomething(a={}, b={})", a, b); // ... return LOGGER.traceExit(m, myResult); }
public <R> R traceExit(Message message, R result)
Logger
return LOGGER.traceExit(new JsonMessage(myResult), myResult);
public void warn(Marker marker, Message message)
Logger
WARN
level.public void warn(Marker marker, Message message, Throwable throwable)
Logger
WARN
level.public void warn(Marker marker, CharSequence message)
Logger
WARN
level.public void warn(Marker marker, CharSequence message, Throwable throwable)
Logger
public void warn(Marker marker, Object message)
Logger
WARN
level.public void warn(Marker marker, Object message, Throwable throwable)
Logger
public void warn(Marker marker, String message)
Logger
WARN
level.public void warn(Marker marker, String message, Object... params)
Logger
WARN
level.warn
in interface Logger
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.Logger.getMessageFactory()
public void warn(Marker marker, String message, Throwable throwable)
Logger
public void warn(Message message)
Logger
WARN
level.public void warn(Message message, Throwable throwable)
Logger
WARN
level.public void warn(CharSequence message)
Logger
WARN
level.public void warn(CharSequence message, Throwable throwable)
Logger
public void warn(Object message)
Logger
WARN
level.public void warn(Object message, Throwable throwable)
Logger
public void warn(String message)
Logger
WARN
level.public void warn(String message, Object... params)
Logger
WARN
level.warn
in interface Logger
message
- the message to log; the format depends on the message factory.params
- parameters to the message.Logger.getMessageFactory()
public void warn(String message, Throwable throwable)
Logger
public void warn(Supplier<?> messageSupplier)
Logger
WARN
level.public void warn(Supplier<?> messageSupplier, Throwable throwable)
Logger
public void warn(Marker marker, Supplier<?> messageSupplier)
Logger
WARN
level with the
specified Marker.public void warn(Marker marker, String message, Supplier<?>... paramSuppliers)
Logger
WARN
level.public void warn(Marker marker, Supplier<?> messageSupplier, Throwable throwable)
Logger
public void warn(String message, Supplier<?>... paramSuppliers)
Logger
WARN
level.public void warn(Marker marker, MessageSupplier messageSupplier)
Logger
WARN
level with the
specified Marker. The MessageSupplier
may or may not use the MessageFactory
to construct the
Message
.public void warn(Marker marker, MessageSupplier messageSupplier, Throwable throwable)
Logger
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
.public void warn(MessageSupplier messageSupplier)
Logger
WARN
level. The
MessageSupplier
may or may not use the MessageFactory
to construct the Message
.public void warn(MessageSupplier messageSupplier, Throwable throwable)
Logger
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
.public void warn(Marker marker, String message, Object p0)
Logger
public void warn(Marker marker, String message, Object p0, Object p1)
Logger
public void warn(Marker marker, String message, Object p0, Object p1, Object p2)
Logger
public void warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3)
Logger
warn
in interface Logger
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.public void warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4)
Logger
warn
in interface Logger
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.public void warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5)
Logger
warn
in interface Logger
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.public void warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6)
Logger
warn
in interface Logger
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.public void warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7)
Logger
warn
in interface Logger
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.public void warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8)
Logger
warn
in interface Logger
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.public 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)
Logger
warn
in interface Logger
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.public void warn(String message, Object p0)
Logger
public void warn(String message, Object p0, Object p1)
Logger
public void warn(String message, Object p0, Object p1, Object p2)
Logger
public void warn(String message, Object p0, Object p1, Object p2, Object p3)
Logger
public void warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4)
Logger
public void warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5)
Logger
warn
in interface Logger
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.public void warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6)
Logger
warn
in interface Logger
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.public void warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7)
Logger
warn
in interface Logger
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.public void warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8)
Logger
warn
in interface Logger
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.public void warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9)
Logger
warn
in interface Logger
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.protected boolean requiresLocation()
public LogBuilder atTrace()
public LogBuilder atDebug()
public LogBuilder atInfo()
public LogBuilder atWarn()
public LogBuilder atError()
public LogBuilder atFatal()
public LogBuilder always()
public LogBuilder atLevel(Level level)
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.