Class AbstractLogger
- All Implemented Interfaces:
Serializable
,Logger
,ExtendedLogger
,LocationAwareLogger
- Direct Known Subclasses:
ExtendedLoggerWrapper
,SimpleLogger
,StatusLogger
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Marker
Marker for catching exceptions.static final Class<? extends FlowMessageFactory>
The default FlowMessageFactory class.static final Class<? extends MessageFactory>
The default MessageFactory class.static final Marker
Marker for method entry tracing.static final Marker
Marker for exception tracing.static final Marker
Marker for method exit tracing.static final Marker
Marker for flow tracing.protected final String
static final Marker
Marker for throwing exceptions. -
Constructor Summary
ModifierConstructorDescriptionConstructs an instance named after this class.AbstractLogger
(String name) Constructs an instance using the provided name.AbstractLogger
(String name, MessageFactory messageFactory) Constructs an instance using the provided name andMessageFactory
.protected
AbstractLogger
(String name, MessageFactory messageFactory, FlowMessageFactory flowMessageFactory) The canonical constructor. -
Method Summary
Modifier and TypeMethodDescriptionalways()
Construct a log event that will always be logged.atDebug()
Construct a debug log event.atError()
Construct an error log event.atFatal()
Construct a fatal log event.atInfo()
Construct an informational log event.Construct a log event.atTrace()
Construct a trace log event.atWarn()
Construct a warning log event.protected void
Logs a Throwable that has been caught with location information.void
void
Logs aThrowable
that has been caught to a specific logging level.protected Message
catchingMsg
(Throwable throwable) static void
checkMessageFactory
(ExtendedLogger logger, MessageFactory messageFactory) Checks that the message factory a logger was created with is the same as the given messageFactory.void
debug
(CharSequence message) Logs a message CharSequence with theDEBUG
level.void
debug
(CharSequence message, Throwable throwable) void
Logs a message object with theDEBUG
level.void
void
Logs a message object with theDEBUG
level.void
Logs a message with parameters at debug level.void
Logs a message with parameters at theDEBUG
level.void
Logs a message with parameters at debug level.void
Logs a message with parameters at debug level.void
Logs a message with parameters at debug level.void
Logs a message with parameters at debug level.void
Logs a message with parameters at debug level.void
Logs a message with parameters at debug level.void
debug
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at debug level.void
debug
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at debug level.void
debug
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at debug level.void
void
Logs a message with parameters which are only to be constructed if the logging level is theDEBUG
level.void
debug
(Marker marker, CharSequence message) Logs a message CharSequence with theDEBUG
level.void
debug
(Marker marker, CharSequence message, Throwable throwable) void
Logs a message object with theDEBUG
level.void
void
Logs a message object with theDEBUG
level.void
Logs a message with parameters at debug level.void
Logs a message with parameters at theDEBUG
level.void
Logs a message with parameters at debug level.void
Logs a message with parameters at debug level.void
Logs a message with parameters at debug level.void
Logs a message with parameters at debug level.void
debug
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at debug level.void
debug
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at debug level.void
debug
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at debug level.void
debug
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at debug level.void
debug
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at debug level.void
void
Logs a message with parameters which are only to be constructed if the logging level is theDEBUG
level.void
Logs a message with the specific Marker at theDEBUG
level.void
Logs a message with the specific Marker at theDEBUG
level.void
debug
(Marker marker, MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theDEBUG
level with the specified Marker.void
debug
(Marker marker, MessageSupplier messageSupplier, Throwable throwable) void
Logs a message which is only to be constructed if the logging level is theDEBUG
level with the specified Marker.void
void
Logs a message with the specific Marker at theDEBUG
level.void
Logs a message with the specific Marker at theDEBUG
level.void
debug
(MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theDEBUG
level.void
debug
(MessageSupplier messageSupplier, Throwable throwable) void
Logs a message which is only to be constructed if the logging level is theDEBUG
level.void
protected EntryMessage
Logs entry to a method with location information.protected EntryMessage
enter
(String fqcn, String format, MessageSupplier... paramSuppliers) Deprecated.protected EntryMessage
Logs entry to a method with location information.protected EntryMessage
Logs entry to a method with location information.protected EntryMessage
enter
(String fqcn, MessageSupplier messageSupplier) Deprecated.void
entry()
Deprecated.void
Deprecated.protected void
Logs entry to a method with location information.protected EntryMessage
protected EntryMessage
entryMsg
(String format, MessageSupplier... paramSuppliers) protected EntryMessage
void
error
(CharSequence message) Logs a message CharSequence with theERROR
level.void
error
(CharSequence message, Throwable throwable) void
Logs a message object with theERROR
level.void
void
Logs a message object with theERROR
level.void
Logs a message with parameters at error level.void
Logs a message with parameters at theERROR
level.void
Logs a message with parameters at error level.void
Logs a message with parameters at error level.void
Logs a message with parameters at error level.void
Logs a message with parameters at error level.void
Logs a message with parameters at error level.void
Logs a message with parameters at error level.void
error
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at error level.void
error
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at error level.void
error
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at error level.void
void
Logs a message with parameters which are only to be constructed if the logging level is theERROR
level.void
error
(Marker marker, CharSequence message) Logs a message CharSequence with theERROR
level.void
error
(Marker marker, CharSequence message, Throwable throwable) void
Logs a message object with theERROR
level.void
void
Logs a message object with theERROR
level.void
Logs a message with parameters at error level.void
Logs a message with parameters at theERROR
level.void
Logs a message with parameters at error level.void
Logs a message with parameters at error level.void
Logs a message with parameters at error level.void
Logs a message with parameters at error level.void
error
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at error level.void
error
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at error level.void
error
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at error level.void
error
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at error level.void
error
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at error level.void
void
Logs a message with parameters which are only to be constructed if the logging level is theERROR
level.void
Logs a message with the specific Marker at theERROR
level.void
Logs a message with the specific Marker at theERROR
level.void
error
(Marker marker, MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theERROR
level with the specified Marker.void
error
(Marker marker, MessageSupplier messageSupplier, Throwable throwable) void
Logs a message which is only to be constructed if the logging level is theERROR
level with the specified Marker.void
void
Logs a message with the specific Marker at theERROR
level.void
Logs a message with the specific Marker at theERROR
level.void
error
(MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theERROR
level.void
error
(MessageSupplier messageSupplier, Throwable throwable) void
Logs a message which is only to be constructed if the logging level is theERROR
level.void
void
exit()
Deprecated.protected <R> R
Logs exiting from a method with the result and location information.protected <R> R
Logs exiting from a method with the result and location information.<R> R
exit
(R result) Deprecated.protected Message
void
fatal
(CharSequence message) Logs a message CharSequence with theFATAL
level.void
fatal
(CharSequence message, Throwable throwable) void
Logs a message object with theFATAL
level.void
void
Logs a message object with theFATAL
level.void
Logs a message with parameters at fatal level.void
Logs a message with parameters at theFATAL
level.void
Logs a message with parameters at fatal level.void
Logs a message with parameters at fatal level.void
Logs a message with parameters at fatal level.void
Logs a message with parameters at fatal level.void
Logs a message with parameters at fatal level.void
Logs a message with parameters at fatal level.void
fatal
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at fatal level.void
fatal
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at fatal level.void
fatal
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at fatal level.void
void
Logs a message with parameters which are only to be constructed if the logging level is theFATAL
level.void
fatal
(Marker marker, CharSequence message) Logs a message CharSequence with theFATAL
level.void
fatal
(Marker marker, CharSequence message, Throwable throwable) void
Logs a message object with theFATAL
level.void
void
Logs a message object with theFATAL
level.void
Logs a message with parameters at fatal level.void
Logs a message with parameters at theFATAL
level.void
Logs a message with parameters at fatal level.void
Logs a message with parameters at fatal level.void
Logs a message with parameters at fatal level.void
Logs a message with parameters at fatal level.void
fatal
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at fatal level.void
fatal
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at fatal level.void
fatal
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at fatal level.void
fatal
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at fatal level.void
fatal
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at fatal level.void
void
Logs a message with parameters which are only to be constructed if the logging level is theFATAL
level.void
Logs a message with the specific Marker at theFATAL
level.void
Logs a message with the specific Marker at theFATAL
level.void
fatal
(Marker marker, MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theFATAL
level with the specified Marker.void
fatal
(Marker marker, MessageSupplier messageSupplier, Throwable throwable) void
Logs a message which is only to be constructed if the logging level is theFATAL
level with the specified Marker.void
void
Logs a message with the specific Marker at theFATAL
level.void
Logs a message with the specific Marker at theFATAL
level.void
fatal
(MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theFATAL
level.void
fatal
(MessageSupplier messageSupplier, Throwable throwable) void
Logs a message which is only to be constructed if the logging level is theFATAL
level.void
Gets the flow message factory used to convert messages into flow messages.protected LogBuilder
getLogBuilder
(Level level) Returns a log builder that logs at the specified level.<MF extends MessageFactory>
MFGets the message factory used to convert message Objects and Strings/CharSequences into actual log Messages.getName()
Gets the logger name.static int
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 theINFO
level.void
info
(CharSequence message, Throwable throwable) void
Logs a message object with theINFO
level.void
void
Logs a message object with theINFO
level.void
Logs a message with parameters at info level.void
Logs a message with parameters at theINFO
level.void
Logs a message with parameters at info level.void
Logs a message with parameters at info level.void
Logs a message with parameters at info level.void
Logs a message with parameters at info level.void
Logs a message with parameters at info level.void
Logs a message with parameters at info level.void
info
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at info level.void
info
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at info level.void
info
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at info level.void
void
Logs a message with parameters which are only to be constructed if the logging level is theINFO
level.void
info
(Marker marker, CharSequence message) Logs a message CharSequence with theINFO
level.void
info
(Marker marker, CharSequence message, Throwable throwable) void
Logs a message object with theINFO
level.void
void
Logs a message object with theINFO
level.void
Logs a message with parameters at info level.void
Logs a message with parameters at theINFO
level.void
Logs a message with parameters at info level.void
Logs a message with parameters at info level.void
Logs a message with parameters at info level.void
Logs a message with parameters at info level.void
info
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at info level.void
info
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at info level.void
info
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at info level.void
info
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at info level.void
info
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at info level.void
void
Logs a message with parameters which are only to be constructed if the logging level is theINFO
level.void
Logs a message with the specific Marker at theINFO
level.void
Logs a message with the specific Marker at theINFO
level.void
info
(Marker marker, MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theINFO
level with the specified Marker.void
info
(Marker marker, MessageSupplier messageSupplier, Throwable throwable) void
Logs a message which is only to be constructed if the logging level is theINFO
level with the specified Marker.void
void
Logs a message with the specific Marker at theINFO
level.void
Logs a message with the specific Marker at theINFO
level.void
info
(MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theINFO
level.void
info
(MessageSupplier messageSupplier, Throwable throwable) void
Logs a message which is only to be constructed if the logging level is theINFO
level.void
boolean
Checks whether this Logger is enabled for theDEBUG
Level.boolean
isDebugEnabled
(Marker marker) Checks whether this Logger is enabled for theDEBUG
Level.boolean
Checks whether this Logger is enabled for the given Level.boolean
Checks whether this Logger is enabled for the given Level and Marker.boolean
Checks whether this Logger is enabled for theERROR
Level.boolean
isErrorEnabled
(Marker marker) Checks whether this Logger is enabled for theERROR
Level.boolean
Checks whether this Logger is enabled for theFATAL
Level.boolean
isFatalEnabled
(Marker marker) Checks whether this Logger is enabled for theFATAL
Level.boolean
Checks whether this Logger is enabled for theINFO
Level.boolean
isInfoEnabled
(Marker marker) Checks whether this Logger is enabled for theINFO
Level.boolean
Checks whether this Logger is enabled for theTRACE
level.boolean
isTraceEnabled
(Marker marker) Checks whether this Logger is enabled for theTRACE
level.boolean
Checks whether this Logger is enabled for theWARN
Level.boolean
isWarnEnabled
(Marker marker) Checks whether this Logger is enabled for theWARN
Level.void
log
(Level level, CharSequence message) Logs a message CharSequence with the given level.void
log
(Level level, CharSequence message, Throwable throwable) Logs a CharSequence at the given level including the stack trace of theThrowable
throwable
passed as parameter.void
Logs a message object with the given level.void
Logs a message at the given level including the stack trace of theThrowable
throwable
passed as parameter.void
Logs a message object with the given level.void
Logs a message with parameters at the specified level.void
Logs a message with parameters at the given level.void
Logs a message with parameters at the specified level.void
Logs a message with parameters at the specified level.void
Logs a message with parameters at the specified level.void
Logs a message with parameters at the specified level.void
Logs a message with parameters at the specified level.void
log
(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at the specified level.void
log
(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at the specified level.void
log
(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at the specified level.void
log
(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at the specified level.void
Logs a message at the given level including the stack trace of theThrowable
throwable
passed as parameter.void
Logs a message with parameters which are only to be constructed if the logging level is the specified level.void
log
(Level level, Marker marker, CharSequence message) Logs a message CharSequence with the given level.void
log
(Level level, Marker marker, CharSequence message, Throwable throwable) Logs a CharSequence at the given level including the stack trace of theThrowable
throwable
passed as parameter.void
Logs a message object with the given level.void
Logs a message at the given level including the stack trace of theThrowable
throwable
passed as parameter.void
Logs a message object with the given level.void
Logs a message with parameters at the specified level.void
Logs a message with parameters at the given level.void
Logs a message with parameters at the specified level.void
Logs a message with parameters at the specified level.void
Logs a message with parameters at the specified level.void
log
(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4) Logs a message with parameters at the specified level.void
log
(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at the specified level.void
log
(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at the specified level.void
log
(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at the specified level.void
log
(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at the specified level.void
log
(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at the specified level.protected void
log
(Level level, Marker marker, String fqcn, StackTraceElement location, Message message, Throwable throwable) void
Logs a message at the given level including the stack trace of theThrowable
throwable
passed as parameter.void
Logs a message with parameters which are only to be constructed if the logging level is the specified level.void
Logs a message with the specific Marker at the given level.void
Logs a message with the specific Marker at the given level.void
log
(Level level, Marker marker, MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is the specified level with the specified Marker.void
log
(Level level, Marker marker, MessageSupplier messageSupplier, Throwable throwable) Logs a message (only to be constructed if the logging level is the specified level) with the specified Marker and including the stack log of theThrowable
throwable
passed as parameter.void
Logs a message (only to be constructed if the logging level is the specified level) with the specified Marker.void
Logs a message (only to be constructed if the logging level is the specified level) with the specified Marker and including the stack log of theThrowable
throwable
passed as parameter.void
Logs a message with the specific Marker at the given level.void
Logs a message with the specific Marker at the given level.void
log
(Level level, MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is the specified level.void
log
(Level level, MessageSupplier messageSupplier, Throwable throwable) Logs a message (only to be constructed if the logging level is the specified level) including the stack log of theThrowable
throwable
passed as parameter.void
Logs a message which is only to be constructed if the logging level is the specified level.void
Logs a message (only to be constructed if the logging level is the specified level) including the stack log of theThrowable
throwable
passed as parameter.void
logIfEnabled
(String fqcn, Level level, Marker marker, CharSequence message, Throwable throwable) Logs a CharSequence message if the specified level is active.void
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
Logs a message if the specified level is active.void
Logs a message if the specified level is active.void
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
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
Logs a message if the specified level is active.void
logIfEnabled
(String fqcn, Level level, Marker marker, MessageSupplier messageSupplier, Throwable throwable) Logs a message which is only to be constructed if the specified level is active.void
logIfEnabled
(String fqcn, Level level, Marker marker, Supplier<?> messageSupplier, Throwable throwable) Logs a message which is only to be constructed if the specified level is active.protected void
logMessage
(String fqcn, Level level, Marker marker, CharSequence message, Throwable throwable) protected void
protected void
logMessage
(String fqcn, Level level, Marker marker, String message) protected void
protected void
protected void
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
protected void
protected void
logMessage
(String fqcn, Level level, Marker marker, MessageSupplier messageSupplier, Throwable throwable) protected void
logMessage
(String fqcn, Level level, Marker marker, Supplier<?> messageSupplier, Throwable throwable) void
logMessage
(Level level, Marker marker, String fqcn, StackTraceElement location, Message message, Throwable throwable) Logs a Message.void
Logs a formatted message using the specified format string and arguments.void
Logs a formatted message using the specified format string and arguments.protected boolean
protected <T extends Throwable>
TLogs a Throwable to be thrown.<T extends Throwable>
TLogs aThrowable
to be thrown.<T extends Throwable>
Tthrowing
(T throwable) protected Message
throwingMsg
(Throwable throwable) void
trace
(CharSequence message) Logs a message CharSequence with theTRACE
level.void
trace
(CharSequence message, Throwable throwable) void
Logs a message object with theTRACE
level.void
void
Logs a message object with theTRACE
level.void
Logs a message with parameters at trace level.void
Logs a message with parameters at theTRACE
level.void
Logs a message with parameters at trace level.void
Logs a message with parameters at trace level.void
Logs a message with parameters at trace level.void
Logs a message with parameters at trace level.void
Logs a message with parameters at trace level.void
Logs a message with parameters at trace level.void
trace
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at trace level.void
trace
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at trace level.void
trace
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at trace level.void
void
Logs a message with parameters which are only to be constructed if the logging level is theTRACE
level.void
trace
(Marker marker, CharSequence message) Logs a message CharSequence with theTRACE
level.void
trace
(Marker marker, CharSequence message, Throwable throwable) void
Logs a message object with theTRACE
level.void
void
Logs a message object with theTRACE
level.void
Logs a message with parameters at trace level.void
Logs a message with parameters at theTRACE
level.void
Logs a message with parameters at trace level.void
Logs a message with parameters at trace level.void
Logs a message with parameters at trace level.void
Logs a message with parameters at trace level.void
trace
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at trace level.void
trace
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at trace level.void
trace
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at trace level.void
trace
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at trace level.void
trace
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at trace level.void
void
Logs a message with parameters which are only to be constructed if the logging level is theTRACE
level.void
Logs a message with the specific Marker at theTRACE
level.void
Logs a message with the specific Marker at theTRACE
level.void
trace
(Marker marker, MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theTRACE
level with the specified Marker.void
trace
(Marker marker, MessageSupplier messageSupplier, Throwable throwable) void
Logs a message which is only to be constructed if the logging level is theTRACE
level with the specified Marker.void
void
Logs a message with the specific Marker at theTRACE
level.void
Logs a message with the specific Marker at theTRACE
level.void
trace
(MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theTRACE
level.void
trace
(MessageSupplier messageSupplier, Throwable throwable) void
Logs a message which is only to be constructed if the logging level is theTRACE
level.void
Logs entry to a method.traceEntry
(String format, Object... params) Logs entry to a method along with its parameters.traceEntry
(String format, Supplier<?>... paramSuppliers) Logs entry to a method along with its parameters.traceEntry
(Message message) Logs entry to a method using a Message to describe the parameters.traceEntry
(Supplier<?>... paramSuppliers) Logs entry to a method along with its parameters.void
Logs exit from a method.<R> R
Logs exiting from a method with the result.void
traceExit
(EntryMessage message) Logs exiting from a method with no result.<R> R
traceExit
(EntryMessage message, R result) Logs exiting from a method with the result.<R> R
Logs exiting from a method with the result.<R> R
traceExit
(R result) Logs exiting from a method with the result.void
warn
(CharSequence message) Logs a message CharSequence with theWARN
level.void
warn
(CharSequence message, Throwable throwable) void
Logs a message object with theWARN
level.void
void
Logs a message object with theWARN
level.void
Logs a message with parameters at warn level.void
Logs a message with parameters at theWARN
level.void
Logs a message with parameters at warn level.void
Logs a message with parameters at warn level.void
Logs a message with parameters at warn level.void
Logs a message with parameters at warn level.void
Logs a message with parameters at warn level.void
Logs a message with parameters at warn level.void
warn
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at warn level.void
warn
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at warn level.void
warn
(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at warn level.void
void
Logs a message with parameters which are only to be constructed if the logging level is theWARN
level.void
warn
(Marker marker, CharSequence message) Logs a message CharSequence with theWARN
level.void
warn
(Marker marker, CharSequence message, Throwable throwable) void
Logs a message object with theWARN
level.void
void
Logs a message object with theWARN
level.void
Logs a message with parameters at warn level.void
Logs a message with parameters at theWARN
level.void
Logs a message with parameters at warn level.void
Logs a message with parameters at warn level.void
Logs a message with parameters at warn level.void
Logs a message with parameters at warn level.void
warn
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at warn level.void
warn
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at warn level.void
warn
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at warn level.void
warn
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at warn level.void
warn
(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at warn level.void
void
Logs a message with parameters which are only to be constructed if the logging level is theWARN
level.void
Logs a message with the specific Marker at theWARN
level.void
Logs a message with the specific Marker at theWARN
level.void
warn
(Marker marker, MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theWARN
level with the specified Marker.void
warn
(Marker marker, MessageSupplier messageSupplier, Throwable throwable) void
Logs a message which is only to be constructed if the logging level is theWARN
level with the specified Marker.void
void
Logs a message with the specific Marker at theWARN
level.void
Logs a message with the specific Marker at theWARN
level.void
warn
(MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theWARN
level.void
warn
(MessageSupplier messageSupplier, Throwable throwable) void
Logs a message which is only to be constructed if the logging level is theWARN
level.void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
FLOW_MARKER
Marker for flow tracing. -
ENTRY_MARKER
Marker for method entry tracing. -
EXIT_MARKER
Marker for method exit tracing. -
EXCEPTION_MARKER
Marker for exception tracing. -
THROWING_MARKER
Marker for throwing exceptions. -
CATCHING_MARKER
Marker for catching exceptions. -
DEFAULT_MESSAGE_FACTORY_CLASS
The default MessageFactory class. -
DEFAULT_FLOW_MESSAGE_FACTORY_CLASS
The default FlowMessageFactory class.- Since:
- 2.6
-
name
-
-
Constructor Details
-
AbstractLogger
public AbstractLogger()Constructs an instance named after this class. -
AbstractLogger
Constructs an instance using the provided name.- Parameters:
name
- the logger name (if null, will be derived from this class or subclass)
-
AbstractLogger
Constructs an instance using the provided name andMessageFactory
.- Parameters:
name
- the logger name (if null, will be derived from this class)messageFactory
- theMessage
factory (if null,ParameterizedMessageFactory
will be used)
-
AbstractLogger
protected AbstractLogger(String name, MessageFactory messageFactory, FlowMessageFactory flowMessageFactory) The canonical constructor.- Parameters:
name
- the logger name (if null, will be derived from this class)messageFactory
- theMessage
factory (if null,ParameterizedMessageFactory
will be used)flowMessageFactory
- theFlowMessage
factory (if null,DefaultFlowMessageFactory
will be used)- Since:
- 2.24.0
-
-
Method Details
-
checkMessageFactory
Checks that the message factory a logger was created with is the same as the given messageFactory. If they are different log a warning to the StatusLogger. A null MessageFactory translates to the default MessageFactoryDEFAULT_MESSAGE_FACTORY_CLASS
.- Parameters:
logger
- The logger to checkmessageFactory
- The message factory to check.
-
catching
Description copied from interface:Logger
Logs aThrowable
that has been caught to a specific logging level. -
catching
Logs a Throwable that has been caught with location information.- Parameters:
fqcn
- The fully qualified class name of the caller.level
- The logging level.throwable
- The Throwable.
-
catching
Description copied from interface:Logger
Logs aThrowable
that has been caught at theERROR
level. Normally, one may wish to provide additional information with an exception while logging it; in these cases, one would not use this method. In other cases where simply logging the fact that an exception was swallowed somewhere (e.g., at the top of the stack trace in amain()
method), this method is ideal for it. -
catchingMsg
-
debug
Description copied from interface:Logger
Logs a message CharSequence with theDEBUG
level. -
debug
Description copied from interface:Logger
-
debug
Description copied from interface:Logger
Logs a message with the specific Marker at theDEBUG
level. -
debug
Description copied from interface:Logger
Logs a message with the specific Marker at theDEBUG
level. -
debug
Description copied from interface:Logger
Logs a message object with theDEBUG
level. -
debug
Description copied from interface:Logger
-
debug
Description copied from interface:Logger
Logs a message object with theDEBUG
level. -
debug
Description copied from interface:Logger
Logs a message with parameters at theDEBUG
level. -
debug
Description copied from interface:Logger
-
debug
Description copied from interface:Logger
Logs a message with the specific Marker at theDEBUG
level. -
debug
Description copied from interface:Logger
Logs a message with the specific Marker at theDEBUG
level. -
debug
Description copied from interface:Logger
Logs a message CharSequence with theDEBUG
level. -
debug
Description copied from interface:Logger
-
debug
Description copied from interface:Logger
Logs a message object with theDEBUG
level. -
debug
Description copied from interface:Logger
-
debug
Description copied from interface:Logger
Logs a message object with theDEBUG
level. -
debug
Description copied from interface:Logger
Logs a message with parameters at theDEBUG
level. -
debug
Description copied from interface:Logger
-
debug
Description copied from interface:Logger
Logs a message which is only to be constructed if the logging level is theDEBUG
level. -
debug
Description copied from interface:Logger
-
debug
Description copied from interface:Logger
Logs a message which is only to be constructed if the logging level is theDEBUG
level with the specified Marker. -
debug
Description copied from interface:Logger
Logs a message with parameters which are only to be constructed if the logging level is theDEBUG
level. -
debug
Description copied from interface:Logger
-
debug
Description copied from interface:Logger
Logs a message with parameters which are only to be constructed if the logging level is theDEBUG
level. -
debug
Description copied from interface:Logger
Logs a message which is only to be constructed if the logging level is theDEBUG
level with the specified Marker. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
. -
debug
Description copied from interface:Logger
Logs a message (only to be constructed if the logging level is theDEBUG
level) with the specified Marker and including the stack trace of theThrowable
throwable
passed as parameter. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
. -
debug
Description copied from interface:Logger
Logs a message which is only to be constructed if the logging level is theDEBUG
level. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
. -
debug
Description copied from interface:Logger
Logs a message (only to be constructed if the logging level is theDEBUG
level) including the stack trace of theThrowable
throwable
passed as parameter. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
. -
debug
Description copied from interface:Logger
Logs a message with parameters at debug level. -
debug
Description copied from interface:Logger
Logs a message with parameters at debug level. -
debug
Description copied from interface:Logger
Logs a message with parameters at debug level. -
debug
Description copied from interface:Logger
Logs a message with parameters at debug level.- Specified by:
debug
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.
-
debug
public void debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4) Description copied from interface:Logger
Logs a message with parameters at debug level.- Specified by:
debug
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.
-
debug
public void debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Description copied from interface:Logger
Logs a message with parameters at debug level.- Specified by:
debug
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.
-
debug
public void debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Description copied from interface:Logger
Logs a message with parameters at debug level.- Specified by:
debug
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.
-
debug
public void debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Description copied from interface:Logger
Logs a message with parameters at debug level.- Specified by:
debug
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.
-
debug
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) Description copied from interface:Logger
Logs a message with parameters at debug level.- Specified by:
debug
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.
-
debug
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) Description copied from interface:Logger
Logs a message with parameters at debug level.- Specified by:
debug
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.p9
- parameter to the message.
-
debug
Description copied from interface:Logger
Logs a message with parameters at debug level. -
debug
Description copied from interface:Logger
Logs a message with parameters at debug level. -
debug
Description copied from interface:Logger
Logs a message with parameters at debug level. -
debug
Description copied from interface:Logger
Logs a message with parameters at debug level. -
debug
Description copied from interface:Logger
Logs a message with parameters at debug level. -
debug
Description copied from interface:Logger
Logs a message with parameters at debug level.- Specified by:
debug
in interfaceLogger
- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.
-
debug
public void debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Description copied from interface:Logger
Logs a message with parameters at debug level.- Specified by:
debug
in interfaceLogger
- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.
-
debug
public void debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Description copied from interface:Logger
Logs a message with parameters at debug level.- Specified by:
debug
in interfaceLogger
- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.
-
debug
public void debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Description copied from interface:Logger
Logs a message with parameters at debug level.- Specified by:
debug
in interfaceLogger
- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.
-
debug
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) Description copied from interface:Logger
Logs a message with parameters at debug level.- Specified by:
debug
in interfaceLogger
- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.p9
- parameter to the message.
-
enter
Logs entry to a method with location information.- Parameters:
fqcn
- The fully qualified class name of the caller.format
- Format String for the parameters.paramSuppliers
- The Suppliers of the parameters.- Since:
- 2.6
-
enter
@Deprecated protected EntryMessage enter(String fqcn, String format, MessageSupplier... paramSuppliers) Deprecated.Logs entry to a method with location information.- Parameters:
fqcn
- The fully qualified class name of the caller.format
- The format String for the parameters.paramSuppliers
- The parameters to the method.- Since:
- 2.6
-
enter
Logs entry to a method with location information.- Parameters:
fqcn
- The fully qualified class name of the caller.format
- The format String for the parameters.params
- The parameters to the method.- Since:
- 2.6
-
enter
Deprecated.Logs entry to a method with location information.- Parameters:
fqcn
- The fully qualified class name of the caller.messageSupplier
- The Supplier of the Message.- Since:
- 2.6
-
enter
Logs entry to a method with location information.- Parameters:
fqcn
- The fully qualified class name of the caller.message
- the Message.- Since:
- 2.6
-
entry
Deprecated.Description copied from interface:Logger
Logs entry to a method. Used when the method in question has no parameters or when the parameters should not be logged. -
entry
Deprecated.Description copied from interface:Logger
Logs entry to a method along with its parameters (consider using one of thetraceEntry(...)
methods instead.)For example:
public void doSomething(String foo, int bar) { LOGGER.entry(foo, bar); // do something }
The use of methods such as this are more effective when combined with aspect-oriented programming or other bytecode manipulation tools. It can be rather tedious (and messy) to use this type of method manually.
-
entry
Logs entry to a method with location information.- Parameters:
fqcn
- The fully qualified class name of the caller.params
- The parameters to the method.
-
entryMsg
- Since:
- 2.6
-
entryMsg
- Since:
- 2.6
-
entryMsg
- Since:
- 2.6
-
error
Description copied from interface:Logger
Logs a message with the specific Marker at theERROR
level. -
error
Description copied from interface:Logger
Logs a message with the specific Marker at theERROR
level. -
error
Description copied from interface:Logger
Logs a message CharSequence with theERROR
level. -
error
Description copied from interface:Logger
-
error
Description copied from interface:Logger
Logs a message object with theERROR
level. -
error
Description copied from interface:Logger
-
error
Description copied from interface:Logger
Logs a message object with theERROR
level. -
error
Description copied from interface:Logger
Logs a message with parameters at theERROR
level. -
error
Description copied from interface:Logger
-
error
Description copied from interface:Logger
Logs a message with the specific Marker at theERROR
level. -
error
Description copied from interface:Logger
Logs a message with the specific Marker at theERROR
level. -
error
Description copied from interface:Logger
Logs a message CharSequence with theERROR
level. -
error
Description copied from interface:Logger
-
error
Description copied from interface:Logger
Logs a message object with theERROR
level. -
error
Description copied from interface:Logger
-
error
Description copied from interface:Logger
Logs a message object with theERROR
level. -
error
Description copied from interface:Logger
Logs a message with parameters at theERROR
level. -
error
Description copied from interface:Logger
-
error
Description copied from interface:Logger
Logs a message which is only to be constructed if the logging level is theERROR
level. -
error
Description copied from interface:Logger
-
error
Description copied from interface:Logger
Logs a message which is only to be constructed if the logging level is theERROR
level with the specified Marker. -
error
Description copied from interface:Logger
Logs a message with parameters which are only to be constructed if the logging level is theERROR
level. -
error
Description copied from interface:Logger
-
error
Description copied from interface:Logger
Logs a message with parameters which are only to be constructed if the logging level is theERROR
level. -
error
Description copied from interface:Logger
Logs a message which is only to be constructed if the logging level is theERROR
level with the specified Marker. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
. -
error
Description copied from interface:Logger
Logs a message (only to be constructed if the logging level is theERROR
level) with the specified Marker and including the stack trace of theThrowable
throwable
passed as parameter. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
. -
error
Description copied from interface:Logger
Logs a message which is only to be constructed if the logging level is theERROR
level. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
. -
error
Description copied from interface:Logger
Logs a message (only to be constructed if the logging level is theERROR
level) including the stack trace of theThrowable
throwable
passed as parameter. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
. -
error
Description copied from interface:Logger
Logs a message with parameters at error level. -
error
Description copied from interface:Logger
Logs a message with parameters at error level. -
error
Description copied from interface:Logger
Logs a message with parameters at error level. -
error
Description copied from interface:Logger
Logs a message with parameters at error level.- Specified by:
error
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.
-
error
public void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4) Description copied from interface:Logger
Logs a message with parameters at error level.- Specified by:
error
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.
-
error
public void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Description copied from interface:Logger
Logs a message with parameters at error level.- Specified by:
error
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.
-
error
public void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Description copied from interface:Logger
Logs a message with parameters at error level.- Specified by:
error
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.
-
error
public void error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Description copied from interface:Logger
Logs a message with parameters at error level.- Specified by:
error
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.
-
error
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) Description copied from interface:Logger
Logs a message with parameters at error level.- Specified by:
error
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.
-
error
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) Description copied from interface:Logger
Logs a message with parameters at error level.- Specified by:
error
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.p9
- parameter to the message.
-
error
Description copied from interface:Logger
Logs a message with parameters at error level. -
error
Description copied from interface:Logger
Logs a message with parameters at error level. -
error
Description copied from interface:Logger
Logs a message with parameters at error level. -
error
Description copied from interface:Logger
Logs a message with parameters at error level. -
error
Description copied from interface:Logger
Logs a message with parameters at error level. -
error
Description copied from interface:Logger
Logs a message with parameters at error level.- Specified by:
error
in interfaceLogger
- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.
-
error
public void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Description copied from interface:Logger
Logs a message with parameters at error level.- Specified by:
error
in interfaceLogger
- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.
-
error
public void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Description copied from interface:Logger
Logs a message with parameters at error level.- Specified by:
error
in interfaceLogger
- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.
-
error
public void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Description copied from interface:Logger
Logs a message with parameters at error level.- Specified by:
error
in interfaceLogger
- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.
-
error
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) Description copied from interface:Logger
Logs a message with parameters at error level.- Specified by:
error
in interfaceLogger
- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.p9
- parameter to the message.
-
exit
Deprecated.Description copied from interface:Logger
Logs exit from a method. Used for methods that do not return anything. -
exit
Deprecated.Description copied from interface:Logger
Logs exiting from a method with the result. This may be coded as:return LOGGER.exit(myResult);
-
exit
Logs exiting from a method with the result and location information.- Type Parameters:
R
- The type of the parameter and object being returned.- Parameters:
fqcn
- The fully qualified class name of the caller.result
- The result being returned from the method call.- Returns:
- the return value passed to this method.
-
exit
Logs exiting from a method with the result and location information.- Type Parameters:
R
- The type of the parameter and object being returned.- Parameters:
fqcn
- The fully qualified class name of the caller.result
- The result being returned from the method call.- Returns:
- the return value passed to this method.
- Since:
- 2.6
-
exitMsg
- Since:
- 2.6
-
fatal
Description copied from interface:Logger
Logs a message with the specific Marker at theFATAL
level. -
fatal
Description copied from interface:Logger
Logs a message with the specific Marker at theFATAL
level. -
fatal
Description copied from interface:Logger
Logs a message CharSequence with theFATAL
level. -
fatal
Description copied from interface:Logger
-
fatal
Description copied from interface:Logger
Logs a message object with theFATAL
level. -
fatal
Description copied from interface:Logger
-
fatal
Description copied from interface:Logger
Logs a message object with theFATAL
level. -
fatal
Description copied from interface:Logger
Logs a message with parameters at theFATAL
level. -
fatal
Description copied from interface:Logger
-
fatal
Description copied from interface:Logger
Logs a message with the specific Marker at theFATAL
level. -
fatal
Description copied from interface:Logger
Logs a message with the specific Marker at theFATAL
level. -
fatal
Description copied from interface:Logger
Logs a message CharSequence with theFATAL
level. -
fatal
Description copied from interface:Logger
-
fatal
Description copied from interface:Logger
Logs a message object with theFATAL
level. -
fatal
Description copied from interface:Logger
-
fatal
Description copied from interface:Logger
Logs a message object with theFATAL
level. -
fatal
Description copied from interface:Logger
Logs a message with parameters at theFATAL
level. -
fatal
Description copied from interface:Logger
-
fatal
Description copied from interface:Logger
Logs a message which is only to be constructed if the logging level is theFATAL
level. -
fatal
Description copied from interface:Logger
-
fatal
Description copied from interface:Logger
Logs a message which is only to be constructed if the logging level is theFATAL
level with the specified Marker. -
fatal
Description copied from interface:Logger
Logs a message with parameters which are only to be constructed if the logging level is theFATAL
level. -
fatal
Description copied from interface:Logger
-
fatal
Description copied from interface:Logger
Logs a message with parameters which are only to be constructed if the logging level is theFATAL
level. -
fatal
Description copied from interface:Logger
Logs a message which is only to be constructed if the logging level is theFATAL
level with the specified Marker. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
. -
fatal
Description copied from interface:Logger
Logs a message (only to be constructed if the logging level is theFATAL
level) with the specified Marker and including the stack trace of theThrowable
throwable
passed as parameter. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
. -
fatal
Description copied from interface:Logger
Logs a message which is only to be constructed if the logging level is theFATAL
level. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
. -
fatal
Description copied from interface:Logger
Logs a message (only to be constructed if the logging level is theFATAL
level) including the stack trace of theThrowable
throwable
passed as parameter. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
. -
fatal
Description copied from interface:Logger
Logs a message with parameters at fatal level. -
fatal
Description copied from interface:Logger
Logs a message with parameters at fatal level. -
fatal
Description copied from interface:Logger
Logs a message with parameters at fatal level. -
fatal
Description copied from interface:Logger
Logs a message with parameters at fatal level.- Specified by:
fatal
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.
-
fatal
public void fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4) Description copied from interface:Logger
Logs a message with parameters at fatal level.- Specified by:
fatal
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.
-
fatal
public void fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Description copied from interface:Logger
Logs a message with parameters at fatal level.- Specified by:
fatal
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.
-
fatal
public void fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Description copied from interface:Logger
Logs a message with parameters at fatal level.- Specified by:
fatal
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.
-
fatal
public void fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Description copied from interface:Logger
Logs a message with parameters at fatal level.- Specified by:
fatal
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.
-
fatal
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) Description copied from interface:Logger
Logs a message with parameters at fatal level.- Specified by:
fatal
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.
-
fatal
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) Description copied from interface:Logger
Logs a message with parameters at fatal level.- Specified by:
fatal
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.p9
- parameter to the message.
-
fatal
Description copied from interface:Logger
Logs a message with parameters at fatal level. -
fatal
Description copied from interface:Logger
Logs a message with parameters at fatal level. -
fatal
Description copied from interface:Logger
Logs a message with parameters at fatal level. -
fatal
Description copied from interface:Logger
Logs a message with parameters at fatal level. -
fatal
Description copied from interface:Logger
Logs a message with parameters at fatal level. -
fatal
Description copied from interface:Logger
Logs a message with parameters at fatal level.- Specified by:
fatal
in interfaceLogger
- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.
-
fatal
public void fatal(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Description copied from interface:Logger
Logs a message with parameters at fatal level.- Specified by:
fatal
in interfaceLogger
- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.
-
fatal
public void fatal(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Description copied from interface:Logger
Logs a message with parameters at fatal level.- Specified by:
fatal
in interfaceLogger
- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.
-
fatal
public void fatal(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Description copied from interface:Logger
Logs a message with parameters at fatal level.- Specified by:
fatal
in interfaceLogger
- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.
-
fatal
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) Description copied from interface:Logger
Logs a message with parameters at fatal level.- Specified by:
fatal
in interfaceLogger
- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.p9
- parameter to the message.
-
getMessageFactory
Description copied from interface:Logger
Gets the message factory used to convert message Objects and Strings/CharSequences into actual log Messages.Since version 2.6, Log4j internally uses message factories that implement the
MessageFactory2
interface. From version 2.6.2, the return type of this method was changed fromMessageFactory
to<MF extends MessageFactory> MF
. The returned factory will always implementMessageFactory2
, but the return type of this method could not be changed toMessageFactory2
without breaking binary compatibility.- Specified by:
getMessageFactory
in interfaceLogger
- Returns:
- the message factory, as an instance of
MessageFactory2
-
getFlowMessageFactory
Description copied from interface:Logger
Gets the flow message factory used to convert messages into flow messages.- Specified by:
getFlowMessageFactory
in interfaceLogger
- Returns:
- the flow message factory, as an instance of
FlowMessageFactory
.
-
getName
Description copied from interface:Logger
Gets the logger name. -
info
Description copied from interface:Logger
Logs a message with the specific Marker at theINFO
level. -
info
Description copied from interface:Logger
Logs a message with the specific Marker at theINFO
level. -
info
Description copied from interface:Logger
Logs a message CharSequence with theINFO
level. -
info
Description copied from interface:Logger
-
info
Description copied from interface:Logger
Logs a message object with theINFO
level. -
info
Description copied from interface:Logger
-
info
Description copied from interface:Logger
Logs a message object with theINFO
level. -
info
Description copied from interface:Logger
Logs a message with parameters at theINFO
level. -
info
Description copied from interface:Logger
-
info
Description copied from interface:Logger
Logs a message with the specific Marker at theINFO
level. -
info
Description copied from interface:Logger
Logs a message with the specific Marker at theINFO
level. -
info
Description copied from interface:Logger
Logs a message CharSequence with theINFO
level. -
info
Description copied from interface:Logger
-
info
Description copied from interface:Logger
Logs a message object with theINFO
level. -
info
Description copied from interface:Logger
-
info
Description copied from interface:Logger
Logs a message object with theINFO
level. -
info
Description copied from interface:Logger
Logs a message with parameters at theINFO
level. -
info
Description copied from interface:Logger
-
info
Description copied from interface:Logger
Logs a message which is only to be constructed if the logging level is theINFO
level. -
info
Description copied from interface:Logger
-
info
Description copied from interface:Logger
Logs a message which is only to be constructed if the logging level is theINFO
level with the specified Marker. -
info
Description copied from interface:Logger
Logs a message with parameters which are only to be constructed if the logging level is theINFO
level. -
info
Description copied from interface:Logger
-
info
Description copied from interface:Logger
Logs a message with parameters which are only to be constructed if the logging level is theINFO
level. -
info
Description copied from interface:Logger
Logs a message which is only to be constructed if the logging level is theINFO
level with the specified Marker. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
. -
info
Description copied from interface:Logger
Logs a message (only to be constructed if the logging level is theINFO
level) with the specified Marker and including the stack trace of theThrowable
throwable
passed as parameter. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
. -
info
Description copied from interface:Logger
Logs a message which is only to be constructed if the logging level is theINFO
level. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
. -
info
Description copied from interface:Logger
Logs a message (only to be constructed if the logging level is theINFO
level) including the stack trace of theThrowable
throwable
passed as parameter. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
. -
info
Description copied from interface:Logger
Logs a message with parameters at info level. -
info
Description copied from interface:Logger
Logs a message with parameters at info level. -
info
Description copied from interface:Logger
Logs a message with parameters at info level. -
info
Description copied from interface:Logger
Logs a message with parameters at info level.- Specified by:
info
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.
-
info
public void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4) Description copied from interface:Logger
Logs a message with parameters at info level.- Specified by:
info
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.
-
info
public void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Description copied from interface:Logger
Logs a message with parameters at info level.- Specified by:
info
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.
-
info
public void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Description copied from interface:Logger
Logs a message with parameters at info level.- Specified by:
info
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.
-
info
public void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Description copied from interface:Logger
Logs a message with parameters at info level.- Specified by:
info
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.
-
info
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) Description copied from interface:Logger
Logs a message with parameters at info level.- Specified by:
info
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.
-
info
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) Description copied from interface:Logger
Logs a message with parameters at info level.- Specified by:
info
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.p9
- parameter to the message.
-
info
Description copied from interface:Logger
Logs a message with parameters at info level. -
info
Description copied from interface:Logger
Logs a message with parameters at info level. -
info
Description copied from interface:Logger
Logs a message with parameters at info level. -
info
Description copied from interface:Logger
Logs a message with parameters at info level. -
info
Description copied from interface:Logger
Logs a message with parameters at info level. -
info
Description copied from interface:Logger
Logs a message with parameters at info level.- Specified by:
info
in interfaceLogger
- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.
-
info
public void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Description copied from interface:Logger
Logs a message with parameters at info level.- Specified by:
info
in interfaceLogger
- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.
-
info
public void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Description copied from interface:Logger
Logs a message with parameters at info level.- Specified by:
info
in interfaceLogger
- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.
-
info
public void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Description copied from interface:Logger
Logs a message with parameters at info level.- Specified by:
info
in interfaceLogger
- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.
-
info
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) Description copied from interface:Logger
Logs a message with parameters at info level.- Specified by:
info
in interfaceLogger
- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.p9
- parameter to the message.
-
isDebugEnabled
public boolean isDebugEnabled()Description copied from interface:Logger
Checks whether this Logger is enabled for theDEBUG
Level.- Specified by:
isDebugEnabled
in interfaceLogger
- Returns:
- boolean -
true
if this Logger is enabled for level DEBUG,false
otherwise.
-
isDebugEnabled
Description copied from interface:Logger
Checks whether this Logger is enabled for theDEBUG
Level.- Specified by:
isDebugEnabled
in interfaceLogger
- Parameters:
marker
- The Marker to check- Returns:
- boolean -
true
if this Logger is enabled for level DEBUG,false
otherwise.
-
isEnabled
Description copied from interface:Logger
Checks whether this Logger is enabled for the given Level.Note that passing in
OFF
always returnstrue
. -
isEnabled
Description copied from interface:Logger
Checks whether this Logger is enabled for the given Level and Marker. -
isErrorEnabled
public boolean isErrorEnabled()Description copied from interface:Logger
Checks whether this Logger is enabled for theERROR
Level.- Specified by:
isErrorEnabled
in interfaceLogger
- Returns:
- boolean -
true
if this Logger is enabled for levelERROR
,false
otherwise.
-
isErrorEnabled
Description copied from interface:Logger
Checks whether this Logger is enabled for theERROR
Level.- Specified by:
isErrorEnabled
in interfaceLogger
- Parameters:
marker
- The Marker to check- Returns:
- boolean -
true
if this Logger is enabled for levelERROR
,false
otherwise.
-
isFatalEnabled
public boolean isFatalEnabled()Description copied from interface:Logger
Checks whether this Logger is enabled for theFATAL
Level.- Specified by:
isFatalEnabled
in interfaceLogger
- Returns:
- boolean -
true
if this Logger is enabled for levelFATAL
,false
otherwise.
-
isFatalEnabled
Description copied from interface:Logger
Checks whether this Logger is enabled for theFATAL
Level.- Specified by:
isFatalEnabled
in interfaceLogger
- Parameters:
marker
- The Marker to check- Returns:
- boolean -
true
if this Logger is enabled for levelFATAL
,false
otherwise.
-
isInfoEnabled
public boolean isInfoEnabled()Description copied from interface:Logger
Checks whether this Logger is enabled for theINFO
Level.- Specified by:
isInfoEnabled
in interfaceLogger
- Returns:
- boolean -
true
if this Logger is enabled for level INFO,false
otherwise.
-
isInfoEnabled
Description copied from interface:Logger
Checks whether this Logger is enabled for theINFO
Level.- Specified by:
isInfoEnabled
in interfaceLogger
- Parameters:
marker
- The Marker to check- Returns:
- boolean -
true
if this Logger is enabled for level INFO,false
otherwise.
-
isTraceEnabled
public boolean isTraceEnabled()Description copied from interface:Logger
Checks whether this Logger is enabled for theTRACE
level.- Specified by:
isTraceEnabled
in interfaceLogger
- Returns:
- boolean -
true
if this Logger is enabled for level TRACE,false
otherwise.
-
isTraceEnabled
Description copied from interface:Logger
Checks whether this Logger is enabled for theTRACE
level.- Specified by:
isTraceEnabled
in interfaceLogger
- Parameters:
marker
- The Marker to check- Returns:
- boolean -
true
if this Logger is enabled for level TRACE,false
otherwise.
-
isWarnEnabled
public boolean isWarnEnabled()Description copied from interface:Logger
Checks whether this Logger is enabled for theWARN
Level.- Specified by:
isWarnEnabled
in interfaceLogger
- Returns:
- boolean -
true
if this Logger is enabled for levelWARN
,false
otherwise.
-
isWarnEnabled
Description copied from interface:Logger
Checks whether this Logger is enabled for theWARN
Level.- Specified by:
isWarnEnabled
in interfaceLogger
- Parameters:
marker
- The Marker to check- Returns:
- boolean -
true
if this Logger is enabled for levelWARN
,false
otherwise.
-
log
Description copied from interface:Logger
Logs a message with the specific Marker at the given level. -
log
Description copied from interface:Logger
Logs a message with the specific Marker at the given level. -
log
Description copied from interface:Logger
Logs a message CharSequence with the given level. -
log
Description copied from interface:Logger
Logs a CharSequence at the given level including the stack trace of theThrowable
throwable
passed as parameter. -
log
Description copied from interface:Logger
Logs a message object with the given level. -
log
Description copied from interface:Logger
Logs a message at the given level including the stack trace of theThrowable
throwable
passed as parameter. -
log
Description copied from interface:Logger
Logs a message object with the given level. -
log
Description copied from interface:Logger
Logs a message with parameters at the given level. -
log
Description copied from interface:Logger
Logs a message at the given level including the stack trace of theThrowable
throwable
passed as parameter. -
log
Description copied from interface:Logger
Logs a message with the specific Marker at the given level. -
log
Description copied from interface:Logger
Logs a message with the specific Marker at the given level. -
log
Description copied from interface:Logger
Logs a message CharSequence with the given level. -
log
Description copied from interface:Logger
Logs a CharSequence at the given level including the stack trace of theThrowable
throwable
passed as parameter. -
log
Description copied from interface:Logger
Logs a message object with the given level. -
log
Description copied from interface:Logger
Logs a message at the given level including the stack trace of theThrowable
throwable
passed as parameter. -
log
Description copied from interface:Logger
Logs a message object with the given level. -
log
Description copied from interface:Logger
Logs a message with parameters at the given level. -
log
Description copied from interface:Logger
Logs a message at the given level including the stack trace of theThrowable
throwable
passed as parameter. -
log
Description copied from interface:Logger
Logs a message which is only to be constructed if the logging level is the specified level. -
log
Description copied from interface:Logger
Logs a message (only to be constructed if the logging level is the specified level) including the stack log of theThrowable
throwable
passed as parameter. -
log
Description copied from interface:Logger
Logs a message (only to be constructed if the logging level is the specified level) with the specified Marker. -
log
Description copied from interface:Logger
Logs a message with parameters which are only to be constructed if the logging level is the specified level.- Specified by:
log
in interfaceLogger
- Parameters:
level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.paramSuppliers
- An array of functions, which when called, produce the desired log message parameters.
-
log
Description copied from interface:Logger
Logs a message (only to be constructed if the logging level is the specified level) with the specified Marker and including the stack log of theThrowable
throwable
passed as parameter. -
log
Description copied from interface:Logger
Logs a message with parameters which are only to be constructed if the logging level is the specified level. -
log
Description copied from interface:Logger
Logs a message which is only to be constructed if the logging level is the specified level with the specified Marker. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
. -
log
Description copied from interface:Logger
Logs a message (only to be constructed if the logging level is the specified level) with the specified Marker and including the stack log of theThrowable
throwable
passed as parameter. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
. -
log
Description copied from interface:Logger
Logs a message which is only to be constructed if the logging level is the specified level. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
. -
log
Description copied from interface:Logger
Logs a message (only to be constructed if the logging level is the specified level) including the stack log of theThrowable
throwable
passed as parameter. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
. -
log
Description copied from interface:Logger
Logs a message with parameters at the specified level. -
log
Description copied from interface:Logger
Logs a message with parameters at the specified level. -
log
Description copied from interface:Logger
Logs a message with parameters at the specified level. -
log
public void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3) Description copied from interface:Logger
Logs a message with parameters at the specified level.- Specified by:
log
in interfaceLogger
- Parameters:
level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.
-
log
public void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4) Description copied from interface:Logger
Logs a message with parameters at the specified level.- Specified by:
log
in interfaceLogger
- Parameters:
level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.
-
log
public void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Description copied from interface:Logger
Logs a message with parameters at the specified level.- Specified by:
log
in interfaceLogger
- Parameters:
level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.
-
log
public void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Description copied from interface:Logger
Logs a message with parameters at the specified level.- Specified by:
log
in interfaceLogger
- Parameters:
level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.
-
log
public void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Description copied from interface:Logger
Logs a message with parameters at the specified level.- Specified by:
log
in interfaceLogger
- Parameters:
level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.
-
log
public void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Description copied from interface:Logger
Logs a message with parameters at the specified level.- Specified by:
log
in interfaceLogger
- Parameters:
level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.
-
log
public void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Description copied from interface:Logger
Logs a message with parameters at the specified level.- Specified by:
log
in interfaceLogger
- Parameters:
level
- the logging levelmarker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.p9
- parameter to the message.
-
log
Description copied from interface:Logger
Logs a message with parameters at the specified level. -
log
Description copied from interface:Logger
Logs a message with parameters at the specified level. -
log
Description copied from interface:Logger
Logs a message with parameters at the specified level. -
log
Description copied from interface:Logger
Logs a message with parameters at the specified level. -
log
Description copied from interface:Logger
Logs a message with parameters at the specified level.- Specified by:
log
in interfaceLogger
- Parameters:
level
- the logging levelmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.
-
log
public void log(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Description copied from interface:Logger
Logs a message with parameters at the specified level.- Specified by:
log
in interfaceLogger
- Parameters:
level
- the logging levelmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.
-
log
public void log(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Description copied from interface:Logger
Logs a message with parameters at the specified level.- Specified by:
log
in interfaceLogger
- Parameters:
level
- the logging levelmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.
-
log
public void log(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Description copied from interface:Logger
Logs a message with parameters at the specified level.- Specified by:
log
in interfaceLogger
- Parameters:
level
- the logging levelmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.
-
log
public void log(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Description copied from interface:Logger
Logs a message with parameters at the specified level.- Specified by:
log
in interfaceLogger
- Parameters:
level
- the logging levelmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.
-
log
public void log(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Description copied from interface:Logger
Logs a message with parameters at the specified level.- Specified by:
log
in interfaceLogger
- Parameters:
level
- the logging levelmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.p9
- parameter to the message.
-
logIfEnabled
public void logIfEnabled(String fqcn, Level level, Marker marker, Message message, Throwable throwable) Description copied from interface:ExtendedLogger
Logs a message if the specified level is active.- Specified by:
logIfEnabled
in interfaceExtendedLogger
- Parameters:
fqcn
- The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.level
- The logging Level to check.marker
- A Marker or null.message
- The Message.throwable
- the exception to log, including its stack trace.
-
logIfEnabled
public void logIfEnabled(String fqcn, Level level, Marker marker, MessageSupplier messageSupplier, Throwable throwable) Description copied from interface:ExtendedLogger
Logs a message which is only to be constructed if the specified level is active.- Specified by:
logIfEnabled
in interfaceExtendedLogger
- Parameters:
fqcn
- The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.level
- The logging Level to check.marker
- A Marker or null.messageSupplier
- A function, which when called, produces the desired log message.throwable
- the exception to log, including its stack trace.
-
logIfEnabled
public void logIfEnabled(String fqcn, Level level, Marker marker, Object message, Throwable throwable) Description copied from interface:ExtendedLogger
Logs a message if the specified level is active.- Specified by:
logIfEnabled
in interfaceExtendedLogger
- Parameters:
fqcn
- The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.level
- The logging Level to check.marker
- A Marker or null.message
- The message.throwable
- the exception to log, including its stack trace.
-
logIfEnabled
public void logIfEnabled(String fqcn, Level level, Marker marker, CharSequence message, Throwable throwable) Description copied from interface:ExtendedLogger
Logs a CharSequence message if the specified level is active.- Specified by:
logIfEnabled
in interfaceExtendedLogger
- Parameters:
fqcn
- The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.level
- The logging Level to check.marker
- A Marker or null.message
- The CharSequence message.throwable
- the exception to log, including its stack trace.
-
logIfEnabled
public void logIfEnabled(String fqcn, Level level, Marker marker, Supplier<?> messageSupplier, Throwable throwable) Description copied from interface:ExtendedLogger
Logs a message which is only to be constructed if the specified level is active.- Specified by:
logIfEnabled
in interfaceExtendedLogger
- Parameters:
fqcn
- The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.level
- The logging Level to check.marker
- A Marker or null.messageSupplier
- A function, which when called, produces the desired log message.throwable
- the exception to log, including its stack trace.
-
logIfEnabled
Description copied from interface:ExtendedLogger
Logs a message if the specified level is active.- Specified by:
logIfEnabled
in interfaceExtendedLogger
- Parameters:
fqcn
- The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.level
- The logging Level to check.marker
- A Marker or null.message
- The message.
-
logIfEnabled
public void logIfEnabled(String fqcn, Level level, Marker marker, String message, Supplier<?>... paramSuppliers) Description copied from interface:ExtendedLogger
Logs a message whose parameters are only to be constructed if the specified level is active.- Specified by:
logIfEnabled
in interfaceExtendedLogger
- Parameters:
fqcn
- The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.level
- The logging Level to check.marker
- A Marker or null.message
- The message format.paramSuppliers
- An array of functions, which when called, produce the desired log message parameters.
-
logIfEnabled
Description copied from interface:ExtendedLogger
Logs a message if the specified level is active.- Specified by:
logIfEnabled
in interfaceExtendedLogger
- Parameters:
fqcn
- The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.level
- The logging Level to check.marker
- A Marker or null.message
- The message format.params
- The message parameters.
-
logIfEnabled
Description copied from interface:ExtendedLogger
Logs a message if the specified level is active.- Specified by:
logIfEnabled
in interfaceExtendedLogger
- Parameters:
fqcn
- The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.level
- The logging Level to check.marker
- A Marker or null.message
- The message format.p0
- the message parameters
-
logIfEnabled
public void logIfEnabled(String fqcn, Level level, Marker marker, String message, Object p0, Object p1) Description copied from interface:ExtendedLogger
Logs a message if the specified level is active.- Specified by:
logIfEnabled
in interfaceExtendedLogger
- Parameters:
fqcn
- The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.level
- The logging Level to check.marker
- A Marker or null.message
- The message format.p0
- the message parametersp1
- the message parameters
-
logIfEnabled
public void logIfEnabled(String fqcn, Level level, Marker marker, String message, Object p0, Object p1, Object p2) Description copied from interface:ExtendedLogger
Logs a message if the specified level is active.- Specified by:
logIfEnabled
in interfaceExtendedLogger
- Parameters:
fqcn
- The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.level
- The logging Level to check.marker
- A Marker or null.message
- The message format.p0
- the message parametersp1
- the message parametersp2
- the message parameters
-
logIfEnabled
public void logIfEnabled(String fqcn, Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3) Description copied from interface:ExtendedLogger
Logs a message if the specified level is active.- Specified by:
logIfEnabled
in interfaceExtendedLogger
- Parameters:
fqcn
- The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.level
- The logging Level to check.marker
- A Marker or null.message
- The message format.p0
- the message parametersp1
- the message parametersp2
- the message parametersp3
- the message parameters
-
logIfEnabled
public void logIfEnabled(String fqcn, Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4) Description copied from interface:ExtendedLogger
Logs a message if the specified level is active.- Specified by:
logIfEnabled
in interfaceExtendedLogger
- Parameters:
fqcn
- The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.level
- The logging Level to check.marker
- A Marker or null.message
- The message format.p0
- the message parametersp1
- the message parametersp2
- the message parametersp3
- the message parametersp4
- the message parameters
-
logIfEnabled
public void logIfEnabled(String fqcn, Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Description copied from interface:ExtendedLogger
Logs a message if the specified level is active.- Specified by:
logIfEnabled
in interfaceExtendedLogger
- Parameters:
fqcn
- The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.level
- The logging Level to check.marker
- A Marker or null.message
- The message format.p0
- the message parametersp1
- the message parametersp2
- the message parametersp3
- the message parametersp4
- the message parametersp5
- the message parameters
-
logIfEnabled
public void logIfEnabled(String fqcn, Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Description copied from interface:ExtendedLogger
Logs a message if the specified level is active.- Specified by:
logIfEnabled
in interfaceExtendedLogger
- Parameters:
fqcn
- The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.level
- The logging Level to check.marker
- A Marker or null.message
- The message format.p0
- the message parametersp1
- the message parametersp2
- the message parametersp3
- the message parametersp4
- the message parametersp5
- the message parametersp6
- the message parameters
-
logIfEnabled
public 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) Description copied from interface:ExtendedLogger
Logs a message if the specified level is active.- Specified by:
logIfEnabled
in interfaceExtendedLogger
- Parameters:
fqcn
- The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.level
- The logging Level to check.marker
- A Marker or null.message
- The message format.p0
- the message parametersp1
- the message parametersp2
- the message parametersp3
- the message parametersp4
- the message parametersp5
- the message parametersp6
- the message parametersp7
- the message parameters
-
logIfEnabled
public 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) Description copied from interface:ExtendedLogger
Logs a message if the specified level is active.- Specified by:
logIfEnabled
in interfaceExtendedLogger
- Parameters:
fqcn
- The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.level
- The logging Level to check.marker
- A Marker or null.message
- The message format.p0
- the message parametersp1
- the message parametersp2
- the message parametersp3
- the message parametersp4
- the message parametersp5
- the message parametersp6
- the message parametersp7
- the message parametersp8
- the message parameters
-
logIfEnabled
public 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) Description copied from interface:ExtendedLogger
Logs a message if the specified level is active.- Specified by:
logIfEnabled
in interfaceExtendedLogger
- Parameters:
fqcn
- The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.level
- The logging Level to check.marker
- A Marker or null.message
- The message format.p0
- the message parametersp1
- the message parametersp2
- the message parametersp3
- the message parametersp4
- the message parametersp5
- the message parametersp6
- the message parametersp7
- the message parametersp8
- the message parametersp9
- the message parameters
-
logIfEnabled
public void logIfEnabled(String fqcn, Level level, Marker marker, String message, Throwable throwable) Description copied from interface:ExtendedLogger
Logs a message if the specified level is active.- Specified by:
logIfEnabled
in interfaceExtendedLogger
- Parameters:
fqcn
- The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.level
- The logging Level to check.marker
- A Marker or null.message
- The message.throwable
- the exception to log, including its stack trace.
-
logMessage
protected void logMessage(String fqcn, Level level, Marker marker, CharSequence message, Throwable throwable) - Since:
- 2.6
-
logMessage
-
logMessage
protected void logMessage(String fqcn, Level level, Marker marker, MessageSupplier messageSupplier, Throwable throwable) - Since:
- 2.4
-
logMessage
protected void logMessage(String fqcn, Level level, Marker marker, Supplier<?> messageSupplier, Throwable throwable) - Since:
- 2.4
-
logMessage
-
logMessage
-
logMessage
-
logMessage
- Since:
- 2.6
-
logMessage
protected void logMessage(String fqcn, Level level, Marker marker, String message, Object p0, Object p1) - Since:
- 2.6
-
logMessage
protected void logMessage(String fqcn, Level level, Marker marker, String message, Object p0, Object p1, Object p2) - Since:
- 2.6
-
logMessage
protected void logMessage(String fqcn, Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3) - Since:
- 2.6
-
logMessage
protected void logMessage(String fqcn, Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4) - Since:
- 2.6
-
logMessage
protected void logMessage(String fqcn, Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) - Since:
- 2.6
-
logMessage
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) - Since:
- 2.6
-
logMessage
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) - Since:
- 2.6
-
logMessage
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) - Since:
- 2.6
-
logMessage
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) - Since:
- 2.6
-
logMessage
protected void logMessage(String fqcn, Level level, Marker marker, String message, Supplier<?>... paramSuppliers) - Since:
- 2.4
-
logMessage
public void logMessage(Level level, Marker marker, String fqcn, StackTraceElement location, Message message, Throwable throwable) Description copied from interface:Logger
Logs a Message.- Specified by:
logMessage
in interfaceLocationAwareLogger
- Specified by:
logMessage
in interfaceLogger
- Parameters:
level
- The logging Level to check.marker
- A Marker or null.fqcn
- The fully qualified class name of the logger entry point, used to determine the caller class and method when location information needs to be logged.location
- The location of the caller.message
- The message format.throwable
- theThrowable
to log, including its stack trace.
-
log
protected void log(Level level, Marker marker, String fqcn, StackTraceElement location, Message message, Throwable throwable) - Since:
- 2.12.1
-
printf
Description copied from interface:Logger
Logs a formatted message using the specified format string and arguments. -
printf
Description copied from interface:Logger
Logs a formatted message using the specified format string and arguments. -
getRecursionDepth
public 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.- Returns:
- the depth of the nested logging calls in the current Thread
- Since:
- 2.10.0
-
throwing
Description copied from interface:Logger
-
throwing
Description copied from interface:Logger
Logs aThrowable
to be thrown. This may be coded as:throw logger.throwing(Level.DEBUG, myException);
-
throwing
Logs a Throwable to be thrown.- Type Parameters:
T
- the type of the Throwable.- Parameters:
fqcn
- the fully qualified class name of this Logger implementation.level
- The logging Level.throwable
- The Throwable.- Returns:
- the Throwable.
-
throwingMsg
-
trace
Description copied from interface:Logger
Logs a message with the specific Marker at theTRACE
level. -
trace
Description copied from interface:Logger
Logs a message with the specific Marker at theTRACE
level. -
trace
Description copied from interface:Logger
Logs a message CharSequence with theTRACE
level. -
trace
Description copied from interface:Logger
Logs a CharSequence at theTRACE
level including the stack trace of theThrowable
throwable
passed as parameter. -
trace
Description copied from interface:Logger
Logs a message object with theTRACE
level. -
trace
Description copied from interface:Logger
Logs a message at theTRACE
level including the stack trace of theThrowable
throwable
passed as parameter. -
trace
Description copied from interface:Logger
Logs a message object with theTRACE
level. -
trace
Description copied from interface:Logger
Logs a message with parameters at theTRACE
level. -
trace
Description copied from interface:Logger
Logs a message at theTRACE
level including the stack trace of theThrowable
throwable
passed as parameter. -
trace
Description copied from interface:Logger
Logs a message with the specific Marker at theTRACE
level. -
trace
Description copied from interface:Logger
Logs a message with the specific Marker at theTRACE
level. -
trace
Description copied from interface:Logger
Logs a message CharSequence with theTRACE
level. -
trace
Description copied from interface:Logger
Logs a CharSequence at theTRACE
level including the stack trace of theThrowable
throwable
passed as parameter. -
trace
Description copied from interface:Logger
Logs a message object with theTRACE
level. -
trace
Description copied from interface:Logger
Logs a message at theTRACE
level including the stack trace of theThrowable
throwable
passed as parameter. -
trace
Description copied from interface:Logger
Logs a message object with theTRACE
level. -
trace
Description copied from interface:Logger
Logs a message with parameters at theTRACE
level. -
trace
Description copied from interface:Logger
Logs a message at theTRACE
level including the stack trace of theThrowable
throwable
passed as parameter. -
trace
Description copied from interface:Logger
Logs a message which is only to be constructed if the logging level is theTRACE
level. -
trace
Description copied from interface:Logger
-
trace
Description copied from interface:Logger
Logs a message which is only to be constructed if the logging level is theTRACE
level with the specified Marker. -
trace
Description copied from interface:Logger
Logs a message with parameters which are only to be constructed if the logging level is theTRACE
level. -
trace
Description copied from interface:Logger
-
trace
Description copied from interface:Logger
Logs a message with parameters which are only to be constructed if the logging level is theTRACE
level. -
trace
Description copied from interface:Logger
Logs a message which is only to be constructed if the logging level is theTRACE
level with the specified Marker. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
. -
trace
Description copied from interface:Logger
Logs a message (only to be constructed if the logging level is theTRACE
level) with the specified Marker and including the stack trace of theThrowable
throwable
passed as parameter. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
. -
trace
Description copied from interface:Logger
Logs a message which is only to be constructed if the logging level is theTRACE
level. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
. -
trace
Description copied from interface:Logger
Logs a message (only to be constructed if the logging level is theTRACE
level) including the stack trace of theThrowable
throwable
passed as parameter. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
. -
trace
Description copied from interface:Logger
Logs a message with parameters at trace level. -
trace
Description copied from interface:Logger
Logs a message with parameters at trace level. -
trace
Description copied from interface:Logger
Logs a message with parameters at trace level. -
trace
Description copied from interface:Logger
Logs a message with parameters at trace level.- Specified by:
trace
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.
-
trace
public void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4) Description copied from interface:Logger
Logs a message with parameters at trace level.- Specified by:
trace
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.
-
trace
public void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Description copied from interface:Logger
Logs a message with parameters at trace level.- Specified by:
trace
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.
-
trace
public void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Description copied from interface:Logger
Logs a message with parameters at trace level.- Specified by:
trace
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.
-
trace
public void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Description copied from interface:Logger
Logs a message with parameters at trace level.- Specified by:
trace
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.
-
trace
public void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Description copied from interface:Logger
Logs a message with parameters at trace level.- Specified by:
trace
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.
-
trace
public void trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Description copied from interface:Logger
Logs a message with parameters at trace level.- Specified by:
trace
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.p9
- parameter to the message.
-
trace
Description copied from interface:Logger
Logs a message with parameters at trace level. -
trace
Description copied from interface:Logger
Logs a message with parameters at trace level. -
trace
Description copied from interface:Logger
Logs a message with parameters at trace level. -
trace
Description copied from interface:Logger
Logs a message with parameters at trace level. -
trace
Description copied from interface:Logger
Logs a message with parameters at trace level. -
trace
Description copied from interface:Logger
Logs a message with parameters at trace level.- Specified by:
trace
in interfaceLogger
- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.
-
trace
public void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Description copied from interface:Logger
Logs a message with parameters at trace level.- Specified by:
trace
in interfaceLogger
- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.
-
trace
public void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Description copied from interface:Logger
Logs a message with parameters at trace level.- Specified by:
trace
in interfaceLogger
- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.
-
trace
public void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Description copied from interface:Logger
Logs a message with parameters at trace level.- Specified by:
trace
in interfaceLogger
- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.
-
trace
public void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Description copied from interface:Logger
Logs a message with parameters at trace level.- Specified by:
trace
in interfaceLogger
- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.p9
- parameter to the message.
-
traceEntry
Description copied from interface:Logger
Logs entry to a method. Used when the method in question has no parameters or when the parameters should not be logged.- Specified by:
traceEntry
in interfaceLogger
- Returns:
- built message
-
traceEntry
Description copied from interface:Logger
Logs entry to a method along with its parameters. For example,public void doSomething(String foo, int bar) { LOGGER.traceEntry("Parameters: {} and {}", foo, bar); // do something }
or:public int doSomething(String foo, int bar) { Message m = LOGGER.traceEntry("doSomething(foo={}, bar={})", foo, bar); // do something return traceExit(m, value); }
- Specified by:
traceEntry
in interfaceLogger
- Parameters:
format
- The format String for the parameters.params
- The parameters to the method.- Returns:
- The built Message
-
traceEntry
Description copied from interface:Logger
Logs entry to a method along with its parameters. For example,public void doSomething(Request foo) { LOGGER.traceEntry(()->gson.toJson(foo)); // do something }
- Specified by:
traceEntry
in interfaceLogger
- Parameters:
paramSuppliers
- The Suppliers for the parameters to the method.- Returns:
- built message
-
traceEntry
Description copied from interface:Logger
Logs entry to a method along with its parameters. For example,public void doSomething(String foo, int bar) { LOGGER.traceEntry("Parameters: {} and {}", ()->gson.toJson(foo), ()-> bar); // do something }
- Specified by:
traceEntry
in interfaceLogger
- Parameters:
format
- The format String for the parameters.paramSuppliers
- The Suppliers for the parameters to the method.- Returns:
- built message
-
traceEntry
Description copied from interface:Logger
Logs entry to a method using a Message to describe the parameters.public void doSomething(Request foo) { LOGGER.traceEntry(new JsonMessage(foo)); // do something }
Avoid passing a
ReusableMessage
to this method (therefore, also avoid passing messages created by callinglogger.getMessageFactory().newMessage("some message")
): Log4j will replace such messages with an immutable message to prevent situations where the reused message instance is modified by subsequent calls to the logger before the returnedEntryMessage
is fully processed.- Specified by:
traceEntry
in interfaceLogger
- Parameters:
message
- The message. Avoid specifying a ReusableMessage, use immutable messages instead.- Returns:
- the built message
- See Also:
-
traceExit
public void traceExit()Description copied from interface:Logger
Logs exit from a method. Used for methods that do not return anything. -
traceExit
public <R> R traceExit(R result) Description copied from interface:Logger
Logs exiting from a method with the result. This may be coded as:return LOGGER.traceExit(myResult);
-
traceExit
Description copied from interface:Logger
Logs exiting from a method with the result. This may be coded as:return LOGGER.traceExit("Result: {}", myResult);
-
traceExit
Description copied from interface:Logger
Logs exiting from a method with no result. Allows custom formatting of the result. This may be coded as:public long doSomething(int a, int b) { EntryMessage m = traceEntry("doSomething(a={}, b={})", a, b); // ... return LOGGER.traceExit(m); }
-
traceExit
Description copied from interface:Logger
Logs exiting from a method with the result. Allows custom formatting of the result. This may be coded as:public long doSomething(int a, int b) { EntryMessage m = traceEntry("doSomething(a={}, b={})", a, b); // ... return LOGGER.traceExit(m, myResult); }
-
traceExit
Description copied from interface:Logger
Logs exiting from a method with the result. Allows custom formatting of the result. This may be coded as:return LOGGER.traceExit(new JsonMessage(myResult), myResult);
-
warn
Description copied from interface:Logger
Logs a message with the specific Marker at theWARN
level. -
warn
Description copied from interface:Logger
Logs a message with the specific Marker at theWARN
level. -
warn
Description copied from interface:Logger
Logs a message CharSequence with theWARN
level. -
warn
Description copied from interface:Logger
-
warn
Description copied from interface:Logger
Logs a message object with theWARN
level. -
warn
Description copied from interface:Logger
-
warn
Description copied from interface:Logger
Logs a message object with theWARN
level. -
warn
Description copied from interface:Logger
Logs a message with parameters at theWARN
level. -
warn
Description copied from interface:Logger
-
warn
Description copied from interface:Logger
Logs a message with the specific Marker at theWARN
level. -
warn
Description copied from interface:Logger
Logs a message with the specific Marker at theWARN
level. -
warn
Description copied from interface:Logger
Logs a message CharSequence with theWARN
level. -
warn
Description copied from interface:Logger
-
warn
Description copied from interface:Logger
Logs a message object with theWARN
level. -
warn
Description copied from interface:Logger
-
warn
Description copied from interface:Logger
Logs a message object with theWARN
level. -
warn
Description copied from interface:Logger
Logs a message with parameters at theWARN
level. -
warn
Description copied from interface:Logger
-
warn
Description copied from interface:Logger
Logs a message which is only to be constructed if the logging level is theWARN
level. -
warn
Description copied from interface:Logger
-
warn
Description copied from interface:Logger
Logs a message which is only to be constructed if the logging level is theWARN
level with the specified Marker. -
warn
Description copied from interface:Logger
Logs a message with parameters which are only to be constructed if the logging level is theWARN
level. -
warn
Description copied from interface:Logger
-
warn
Description copied from interface:Logger
Logs a message with parameters which are only to be constructed if the logging level is theWARN
level. -
warn
Description copied from interface:Logger
Logs a message which is only to be constructed if the logging level is theWARN
level with the specified Marker. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
. -
warn
Description copied from interface:Logger
Logs a message (only to be constructed if the logging level is theWARN
level) with the specified Marker and including the stack warn of theThrowable
throwable
passed as parameter. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
. -
warn
Description copied from interface:Logger
Logs a message which is only to be constructed if the logging level is theWARN
level. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
. -
warn
Description copied from interface:Logger
Logs a message (only to be constructed if the logging level is theWARN
level) including the stack warn of theThrowable
throwable
passed as parameter. TheMessageSupplier
may or may not use theMessageFactory
to construct theMessage
. -
warn
Description copied from interface:Logger
Logs a message with parameters at warn level. -
warn
Description copied from interface:Logger
Logs a message with parameters at warn level. -
warn
Description copied from interface:Logger
Logs a message with parameters at warn level. -
warn
Description copied from interface:Logger
Logs a message with parameters at warn level.- Specified by:
warn
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.
-
warn
public void warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4) Description copied from interface:Logger
Logs a message with parameters at warn level.- Specified by:
warn
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.
-
warn
public void warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Description copied from interface:Logger
Logs a message with parameters at warn level.- Specified by:
warn
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.
-
warn
public void warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Description copied from interface:Logger
Logs a message with parameters at warn level.- Specified by:
warn
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.
-
warn
public void warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Description copied from interface:Logger
Logs a message with parameters at warn level.- Specified by:
warn
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.
-
warn
public void warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Description copied from interface:Logger
Logs a message with parameters at warn level.- Specified by:
warn
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.
-
warn
public void warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Description copied from interface:Logger
Logs a message with parameters at warn level.- Specified by:
warn
in interfaceLogger
- Parameters:
marker
- the marker data specific to this log statementmessage
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.p9
- parameter to the message.
-
warn
Description copied from interface:Logger
Logs a message with parameters at warn level. -
warn
Description copied from interface:Logger
Logs a message with parameters at warn level. -
warn
Description copied from interface:Logger
Logs a message with parameters at warn level. -
warn
Description copied from interface:Logger
Logs a message with parameters at warn level. -
warn
Description copied from interface:Logger
Logs a message with parameters at warn level. -
warn
Description copied from interface:Logger
Logs a message with parameters at warn level.- Specified by:
warn
in interfaceLogger
- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.
-
warn
public void warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Description copied from interface:Logger
Logs a message with parameters at warn level.- Specified by:
warn
in interfaceLogger
- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.
-
warn
public void warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Description copied from interface:Logger
Logs a message with parameters at warn level.- Specified by:
warn
in interfaceLogger
- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.
-
warn
public void warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Description copied from interface:Logger
Logs a message with parameters at warn level.- Specified by:
warn
in interfaceLogger
- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.
-
warn
public void warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Description copied from interface:Logger
Logs a message with parameters at warn level.- Specified by:
warn
in interfaceLogger
- Parameters:
message
- the message to log; the format depends on the message factory.p0
- parameter to the message.p1
- parameter to the message.p2
- parameter to the message.p3
- parameter to the message.p4
- parameter to the message.p5
- parameter to the message.p6
- parameter to the message.p7
- parameter to the message.p8
- parameter to the message.p9
- parameter to the message.
-
requiresLocation
protected boolean requiresLocation()- Since:
- 2.12.1
-
atTrace
Construct a trace log event. -
atDebug
Construct a debug log event. -
atInfo
Construct an informational log event. -
atWarn
Construct a warning log event. -
atError
Construct an error log event. -
atFatal
Construct a fatal log event. -
always
Construct a log event that will always be logged. -
atLevel
Construct a log event. -
getLogBuilder
Returns a log builder that logs at the specified level.- Since:
- 2.20.0
-