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 t)
Logs an exception or error that has been caught to a specific logging level.
|
protected void |
catching(String fqcn,
Level level,
Throwable t)
Logs a Throwable that has been caught with location information.
|
void |
catching(Throwable t)
Logs an exception or error that has been caught.
|
protected Message |
catchingMsg(Throwable t) |
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 t)
|
void |
debug(Marker marker,
CharSequence message)
Logs a message CharSequence with the
DEBUG level. |
void |
debug(Marker marker,
CharSequence message,
Throwable t)
|
void |
debug(Marker marker,
Message msg)
Logs a message with the specific Marker at the
DEBUG level. |
void |
debug(Marker marker,
MessageSupplier msgSupplier)
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 msgSupplier,
Throwable t)
|
void |
debug(Marker marker,
Message msg,
Throwable t)
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 t)
|
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 t)
|
void |
debug(Marker marker,
Supplier<?> msgSupplier)
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<?> msgSupplier,
Throwable t)
|
void |
debug(Message msg)
Logs a message with the specific Marker at the
DEBUG level. |
void |
debug(MessageSupplier msgSupplier)
Logs a message which is only to be constructed if the logging level is the
DEBUG level. |
void |
debug(MessageSupplier msgSupplier,
Throwable t)
|
void |
debug(Message msg,
Throwable t)
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 t)
|
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 t)
|
void |
debug(Supplier<?> msgSupplier)
Logs a message which is only to be constructed if the logging level is the
DEBUG level. |
void |
debug(Supplier<?> msgSupplier,
Throwable t)
|
protected EntryMessage |
enter(String fqcn,
Message message)
Logs entry to a method with location information.
|
protected EntryMessage |
enter(String fqcn,
MessageSupplier msgSupplier)
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 t)
|
void |
error(Marker marker,
CharSequence message)
Logs a message CharSequence with the
ERROR level. |
void |
error(Marker marker,
CharSequence message,
Throwable t)
|
void |
error(Marker marker,
Message msg)
Logs a message with the specific Marker at the
ERROR level. |
void |
error(Marker marker,
MessageSupplier msgSupplier)
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 msgSupplier,
Throwable t)
|
void |
error(Marker marker,
Message msg,
Throwable t)
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 t)
|
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 t)
|
void |
error(Marker marker,
Supplier<?> msgSupplier)
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<?> msgSupplier,
Throwable t)
|
void |
error(Message msg)
Logs a message with the specific Marker at the
ERROR level. |
void |
error(MessageSupplier msgSupplier)
Logs a message which is only to be constructed if the logging level is the
ERROR level. |
void |
error(MessageSupplier msgSupplier,
Throwable t)
|
void |
error(Message msg,
Throwable t)
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 t)
|
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 t)
|
void |
error(Supplier<?> msgSupplier)
Logs a message which is only to be constructed if the logging level is the
ERROR level. |
void |
error(Supplier<?> msgSupplier,
Throwable t)
|
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 t)
|
void |
fatal(Marker marker,
CharSequence message)
Logs a message CharSequence with the
FATAL level. |
void |
fatal(Marker marker,
CharSequence message,
Throwable t)
|
void |
fatal(Marker marker,
Message msg)
Logs a message with the specific Marker at the
FATAL level. |
void |
fatal(Marker marker,
MessageSupplier msgSupplier)
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 msgSupplier,
Throwable t)
|
void |
fatal(Marker marker,
Message msg,
Throwable t)
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 t)
|
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 t)
|
void |
fatal(Marker marker,
Supplier<?> msgSupplier)
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<?> msgSupplier,
Throwable t)
|
void |
fatal(Message msg)
Logs a message with the specific Marker at the
FATAL level. |
void |
fatal(MessageSupplier msgSupplier)
Logs a message which is only to be constructed if the logging level is the
FATAL level. |
void |
fatal(MessageSupplier msgSupplier,
Throwable t)
|
void |
fatal(Message msg,
Throwable t)
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 t)
|
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 t)
|
void |
fatal(Supplier<?> msgSupplier)
Logs a message which is only to be constructed if the logging level is the
FATAL level. |
void |
fatal(Supplier<?> msgSupplier,
Throwable t)
|
<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 t)
|
void |
info(Marker marker,
CharSequence message)
Logs a message CharSequence with the
INFO level. |
void |
info(Marker marker,
CharSequence message,
Throwable t)
|
void |
info(Marker marker,
Message msg)
Logs a message with the specific Marker at the
INFO level. |
void |
info(Marker marker,
MessageSupplier msgSupplier)
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 msgSupplier,
Throwable t)
|
void |
info(Marker marker,
Message msg,
Throwable t)
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 t)
|
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 t)
|
void |
info(Marker marker,
Supplier<?> msgSupplier)
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<?> msgSupplier,
Throwable t)
|
void |
info(Message msg)
Logs a message with the specific Marker at the
INFO level. |
void |
info(MessageSupplier msgSupplier)
Logs a message which is only to be constructed if the logging level is the
INFO level. |
void |
info(MessageSupplier msgSupplier,
Throwable t)
|
void |
info(Message msg,
Throwable t)
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 t)
|
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 t)
|
void |
info(Supplier<?> msgSupplier)
Logs a message which is only to be constructed if the logging level is the
INFO level. |
void |
info(Supplier<?> msgSupplier,
Throwable t)
|
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 t)
Logs a CharSequence at the given level including the stack trace of the
Throwable t 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 t)
Logs a CharSequence at the given level including the stack trace of the
Throwable t passed as
parameter. |
void |
log(Level level,
Marker marker,
Message msg)
Logs a message with the specific Marker at the given level.
|
void |
log(Level level,
Marker marker,
MessageSupplier msgSupplier)
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 msgSupplier,
Throwable t)
Logs a message (only to be constructed if the logging level is the specified level) with the specified Marker and
including the stack log of the
Throwable t passed as parameter. |
void |
log(Level level,
Marker marker,
Message msg,
Throwable t)
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 t)
Logs a message at the given level including the stack trace of the
Throwable t 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 t)
Logs a message at the given level including the stack trace of the
Throwable t passed as
parameter. |
void |
log(Level level,
Marker marker,
Supplier<?> msgSupplier)
Logs a message (only to be constructed if the logging level is the specified level) with the specified Marker.
|
void |
log(Level level,
Marker marker,
Supplier<?> msgSupplier,
Throwable t)
Logs a message (only to be constructed if the logging level is the specified level) with the specified Marker and
including the stack log of the
Throwable t passed as parameter. |
void |
log(Level level,
Message msg)
Logs a message with the specific Marker at the given level.
|
void |
log(Level level,
MessageSupplier msgSupplier)
Logs a message which is only to be constructed if the logging level is the specified level.
|
void |
log(Level level,
MessageSupplier msgSupplier,
Throwable t)
Logs a message (only to be constructed if the logging level is the specified level) including the stack log of
the
Throwable t passed as parameter. |
void |
log(Level level,
Message msg,
Throwable t)
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 t)
Logs a message at the given level including the stack trace of the
Throwable t 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 t)
Logs a message at the given level including the stack trace of the
Throwable t passed as
parameter. |
void |
log(Level level,
Supplier<?> msgSupplier)
Logs a message which is only to be constructed if the logging level is the specified level.
|
void |
log(Level level,
Supplier<?> msgSupplier,
Throwable t)
Logs a message (only to be constructed if the logging level is the specified level) including the stack log of
the
Throwable t passed as parameter. |
void |
logIfEnabled(String fqcn,
Level level,
Marker marker,
CharSequence message,
Throwable t)
Logs a CharSequence message if the specified level is active.
|
void |
logIfEnabled(String fqcn,
Level level,
Marker marker,
MessageSupplier msgSupplier,
Throwable t)
Logs a message which is only to be constructed if the specified level is active.
|
void |
logIfEnabled(String fqcn,
Level level,
Marker marker,
Message msg,
Throwable t)
Logs a message if the specified level is active.
|
void |
logIfEnabled(String fqcn,
Level level,
Marker marker,
Object message,
Throwable t)
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 t)
Logs a message if the specified level is active.
|
void |
logIfEnabled(String fqcn,
Level level,
Marker marker,
Supplier<?> msgSupplier,
Throwable t)
Logs a message which is only to be constructed if the specified level is active.
|
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 t) |
protected void |
logMessage(String fqcn,
Level level,
Marker marker,
MessageSupplier msgSupplier,
Throwable t) |
protected void |
logMessage(String fqcn,
Level level,
Marker marker,
Object message,
Throwable t) |
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 t) |
protected void |
logMessage(String fqcn,
Level level,
Marker marker,
Supplier<?> msgSupplier,
Throwable t) |
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 t)
Logs an exception or error to be thrown.
|
protected <T extends Throwable> |
throwing(String fqcn,
Level level,
T t)
Logs a Throwable to be thrown.
|
<T extends Throwable> |
throwing(T t)
Logs an exception or error to be thrown.
|
protected Message |
throwingMsg(Throwable t) |
void |
trace(CharSequence message)
Logs a message CharSequence with the
TRACE level. |
void |
trace(CharSequence message,
Throwable t)
|
void |
trace(Marker marker,
CharSequence message)
Logs a message CharSequence with the
TRACE level. |
void |
trace(Marker marker,
CharSequence message,
Throwable t)
|
void |
trace(Marker marker,
Message msg)
Logs a message with the specific Marker at the
TRACE level. |
void |
trace(Marker marker,
MessageSupplier msgSupplier)
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 msgSupplier,
Throwable t)
|
void |
trace(Marker marker,
Message msg,
Throwable t)
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 t)
|
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 t)
|
void |
trace(Marker marker,
Supplier<?> msgSupplier)
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<?> msgSupplier,
Throwable t)
|
void |
trace(Message msg)
Logs a message with the specific Marker at the
TRACE level. |
void |
trace(MessageSupplier msgSupplier)
Logs a message which is only to be constructed if the logging level is the
TRACE level. |
void |
trace(MessageSupplier msgSupplier,
Throwable t)
|
void |
trace(Message msg,
Throwable t)
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 t)
|
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 t)
|
void |
trace(Supplier<?> msgSupplier)
Logs a message which is only to be constructed if the logging level is the
TRACE level. |
void |
trace(Supplier<?> msgSupplier,
Throwable t)
|
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 t)
|
void |
warn(Marker marker,
CharSequence message)
Logs a message CharSequence with the
WARN level. |
void |
warn(Marker marker,
CharSequence message,
Throwable t)
|
void |
warn(Marker marker,
Message msg)
Logs a message with the specific Marker at the
WARN level. |
void |
warn(Marker marker,
MessageSupplier msgSupplier)
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 msgSupplier,
Throwable t)
|
void |
warn(Marker marker,
Message msg,
Throwable t)
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 t)
|
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 t)
|
void |
warn(Marker marker,
Supplier<?> msgSupplier)
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<?> msgSupplier,
Throwable t)
|
void |
warn(Message msg)
Logs a message with the specific Marker at the
WARN level. |
void |
warn(MessageSupplier msgSupplier)
Logs a message which is only to be constructed if the logging level is the
WARN level. |
void |
warn(MessageSupplier msgSupplier,
Throwable t)
|
void |
warn(Message msg,
Throwable t)
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 t)
|
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 t)
|
void |
warn(Supplier<?> msgSupplier)
Logs a message which is only to be constructed if the logging level is the
WARN level. |
void |
warn(Supplier<?> msgSupplier,
Throwable t)
|
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 String name
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 t)
Logger
protected void catching(String fqcn, Level level, Throwable t)
fqcn
- The fully qualified class name of the caller.level
- The logging level.t
- The Throwable.public void catching(Throwable t)
Logger
main()
method), this method is ideal for it.public void debug(Marker marker, CharSequence message)
Logger
DEBUG
level.public void debug(Marker marker, CharSequence message, Throwable t)
Logger
public void debug(Marker marker, Message msg)
Logger
DEBUG
level.public void debug(Marker marker, Message msg, Throwable t)
Logger
DEBUG
level.public void debug(Marker marker, Object message)
Logger
DEBUG
level.public void debug(Marker marker, Object message, Throwable t)
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 t)
Logger
public void debug(Message msg)
Logger
DEBUG
level.public void debug(Message msg, Throwable t)
Logger
DEBUG
level.public void debug(CharSequence message)
Logger
DEBUG
level.public void debug(CharSequence message, Throwable t)
Logger
public void debug(Object message)
Logger
DEBUG
level.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(Supplier<?> msgSupplier)
Logger
DEBUG
level.public void debug(Supplier<?> msgSupplier, Throwable t)
Logger
public void debug(Marker marker, Supplier<?> msgSupplier)
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<?> msgSupplier, Throwable t)
Logger
public void debug(String message, Supplier<?>... paramSuppliers)
Logger
DEBUG
level.public void debug(Marker marker, MessageSupplier msgSupplier)
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 msgSupplier, Throwable t)
Logger
DEBUG
level) with the
specified Marker and including the stack trace of the Throwable
t
passed as parameter. The
MessageSupplier
may or may not use the MessageFactory
to construct the Message
.public void debug(MessageSupplier msgSupplier)
Logger
DEBUG
level. The
MessageSupplier
may or may not use the MessageFactory
to construct the Message
.public void debug(MessageSupplier msgSupplier, Throwable t)
Logger
DEBUG
level) including the
stack trace of the Throwable
t
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 msgSupplier)
fqcn
- The fully qualified class name of the caller.msgSupplier
- 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 msg)
Logger
ERROR
level.public void error(Marker marker, Message msg, Throwable t)
Logger
ERROR
level.public void error(Marker marker, CharSequence message)
Logger
ERROR
level.public void error(Marker marker, CharSequence message, Throwable t)
Logger
public void error(Marker marker, Object message)
Logger
ERROR
level.public void error(Marker marker, Object message, Throwable t)
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 t)
Logger
public void error(Message msg)
Logger
ERROR
level.public void error(Message msg, Throwable t)
Logger
ERROR
level.public void error(CharSequence message)
Logger
ERROR
level.public void error(CharSequence message, Throwable t)
Logger
public void error(Object message)
Logger
ERROR
level.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(Supplier<?> msgSupplier)
Logger
ERROR
level.public void error(Supplier<?> msgSupplier, Throwable t)
Logger
public void error(Marker marker, Supplier<?> msgSupplier)
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<?> msgSupplier, Throwable t)
Logger
public void error(String message, Supplier<?>... paramSuppliers)
Logger
ERROR
level.public void error(Marker marker, MessageSupplier msgSupplier)
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 msgSupplier, Throwable t)
Logger
ERROR
level) with the
specified Marker and including the stack trace of the Throwable
t
passed as parameter. The
MessageSupplier
may or may not use the MessageFactory
to construct the Message
.public void error(MessageSupplier msgSupplier)
Logger
ERROR
level. The
MessageSupplier
may or may not use the MessageFactory
to construct the Message
.public void error(MessageSupplier msgSupplier, Throwable t)
Logger
ERROR
level) including the
stack trace of the Throwable
t
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 msg)
Logger
FATAL
level.public void fatal(Marker marker, Message msg, Throwable t)
Logger
FATAL
level.public void fatal(Marker marker, CharSequence message)
Logger
FATAL
level.public void fatal(Marker marker, CharSequence message, Throwable t)
Logger
public void fatal(Marker marker, Object message)
Logger
FATAL
level.public void fatal(Marker marker, Object message, Throwable t)
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 t)
Logger
public void fatal(Message msg)
Logger
FATAL
level.public void fatal(Message msg, Throwable t)
Logger
FATAL
level.public void fatal(CharSequence message)
Logger
FATAL
level.public void fatal(CharSequence message, Throwable t)
Logger
public void fatal(Object message)
Logger
FATAL
level.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(Supplier<?> msgSupplier)
Logger
FATAL
level.public void fatal(Supplier<?> msgSupplier, Throwable t)
Logger
public void fatal(Marker marker, Supplier<?> msgSupplier)
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<?> msgSupplier, Throwable t)
Logger
public void fatal(String message, Supplier<?>... paramSuppliers)
Logger
FATAL
level.public void fatal(Marker marker, MessageSupplier msgSupplier)
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 msgSupplier, Throwable t)
Logger
FATAL
level) with the
specified Marker and including the stack trace of the Throwable
t
passed as parameter. The
MessageSupplier
may or may not use the MessageFactory
to construct the Message
.public void fatal(MessageSupplier msgSupplier)
Logger
FATAL
level. The
MessageSupplier
may or may not use the MessageFactory
to construct the Message
.public void fatal(MessageSupplier msgSupplier, Throwable t)
Logger
FATAL
level) including the
stack trace of the Throwable
t
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 msg)
Logger
INFO
level.public void info(Marker marker, Message msg, Throwable t)
Logger
INFO
level.public void info(Marker marker, CharSequence message)
Logger
INFO
level.public void info(Marker marker, CharSequence message, Throwable t)
Logger
public void info(Marker marker, Object message)
Logger
INFO
level.public void info(Marker marker, Object message, Throwable t)
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 t)
Logger
public void info(Message msg)
Logger
INFO
level.public void info(Message msg, Throwable t)
Logger
INFO
level.public void info(CharSequence message)
Logger
INFO
level.public void info(CharSequence message, Throwable t)
Logger
public void info(Object message)
Logger
INFO
level.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(Supplier<?> msgSupplier)
Logger
INFO
level.public void info(Supplier<?> msgSupplier, Throwable t)
Logger
public void info(Marker marker, Supplier<?> msgSupplier)
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<?> msgSupplier, Throwable t)
Logger
public void info(String message, Supplier<?>... paramSuppliers)
Logger
INFO
level.public void info(Marker marker, MessageSupplier msgSupplier)
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 msgSupplier, Throwable t)
Logger
INFO
level) with the
specified Marker and including the stack trace of the Throwable
t
passed as parameter. The
MessageSupplier
may or may not use the MessageFactory
to construct the Message
.public void info(MessageSupplier msgSupplier)
Logger
INFO
level. The
MessageSupplier
may or may not use the MessageFactory
to construct the Message
.public void info(MessageSupplier msgSupplier, Throwable t)
Logger
INFO
level) including the
stack trace of the Throwable
t
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 msg)
Logger
public void log(Level level, Marker marker, Message msg, Throwable t)
Logger
public void log(Level level, Marker marker, CharSequence message)
Logger
public void log(Level level, Marker marker, CharSequence message, Throwable t)
Logger
Throwable
t
passed as
parameter.public void log(Level level, Marker marker, Object message)
Logger
public void log(Level level, Marker marker, Object message, Throwable t)
Logger
Throwable
t
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 t)
Logger
Throwable
t
passed as
parameter.public void log(Level level, Message msg)
Logger
public void log(Level level, Message msg, Throwable t)
Logger
public void log(Level level, CharSequence message)
Logger
public void log(Level level, CharSequence message, Throwable t)
Logger
Throwable
t
passed as
parameter.public void log(Level level, Object message)
Logger
public void log(Level level, Object message, Throwable t)
Logger
Throwable
t
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 t)
Logger
Throwable
t
passed as
parameter.public void log(Level level, Supplier<?> msgSupplier)
Logger
public void log(Level level, Supplier<?> msgSupplier, Throwable t)
Logger
Throwable
t
passed as parameter.public void log(Level level, Marker marker, Supplier<?> msgSupplier)
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<?> msgSupplier, Throwable t)
Logger
Throwable
t
passed as parameter.public void log(Level level, String message, Supplier<?>... paramSuppliers)
Logger
public void log(Level level, Marker marker, MessageSupplier msgSupplier)
Logger
MessageSupplier
may or may not use the MessageFactory
to construct the
Message
.public void log(Level level, Marker marker, MessageSupplier msgSupplier, Throwable t)
Logger
Throwable
t
passed as parameter. The MessageSupplier
may or may not use the MessageFactory
to construct the Message
.public void log(Level level, MessageSupplier msgSupplier)
Logger
MessageSupplier
may or may not use the MessageFactory
to construct the Message
.public void log(Level level, MessageSupplier msgSupplier, Throwable t)
Logger
Throwable
t
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.