Package org.apache.logging.log4j.spi
Class AbstractLogger
java.lang.Object
org.apache.logging.log4j.spi.AbstractLogger
- All Implemented Interfaces:
Serializable,Logger,ExtendedLogger,LocationAwareLogger
- Direct Known Subclasses:
ExtendedLoggerWrapper
public abstract class AbstractLogger
extends Object
implements ExtendedLogger, LocationAwareLogger, Serializable
Base implementation of a Logger. It is highly recommended that any Logger implementation extend this class.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MarkerMarker for catching exceptions.static final Class<? extends FlowMessageFactory> The default FlowMessageFactory class.static final Class<? extends MessageFactory> The default MessageFactory class.static final MarkerMarker for method entry tracing.static final MarkerMarker for exception tracing.static final MarkerMarker for method exit tracing.static final MarkerMarker for flow tracing.static final MarkerMarker for throwing exceptions. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new logger named after this class (or subclass).AbstractLogger(String name) Creates a new named logger.AbstractLogger(String name, MessageFactory messageFactory) Creates a new named logger with a particularMessageFactory. -
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.voidvoidLogs aThrowablethat has been caught to a specific logging level.static voidcheckMessageFactory(ExtendedLogger logger, MessageFactory messageFactory) Checks that the message factory a logger was created with is the same as the given messageFactory.voiddebug(CharSequence message) Logs a message CharSequence with theDEBUGlevel.voiddebug(CharSequence message, Throwable throwable) voidLogs a message object with theDEBUGlevel.voidvoidLogs a message object with theDEBUGlevel.voidLogs a message with parameters at debug level.voidLogs a message with parameters at theDEBUGlevel.voidLogs a message with parameters at debug level.voidLogs a message with parameters at debug level.voidLogs a message with parameters at debug level.voidLogs a message with parameters at debug level.voidLogs a message with parameters at debug level.voidLogs a message with parameters at debug level.voiddebug(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.voiddebug(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.voiddebug(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.voidvoidLogs a message with parameters which are only to be constructed if the logging level is theDEBUGlevel.voiddebug(Marker marker, CharSequence message) Logs a message CharSequence with theDEBUGlevel.voiddebug(Marker marker, CharSequence message, Throwable throwable) voidLogs a message object with theDEBUGlevel.voidvoidLogs a message object with theDEBUGlevel.voidLogs a message with parameters at debug level.voidLogs a message with parameters at theDEBUGlevel.voidLogs a message with parameters at debug level.voidLogs a message with parameters at debug level.voidLogs a message with parameters at debug level.voidLogs a message with parameters at debug level.voiddebug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at debug level.voiddebug(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.voiddebug(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.voiddebug(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.voiddebug(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.voidvoidLogs a message with parameters which are only to be constructed if the logging level is theDEBUGlevel.voidLogs a message with the specific Marker at theDEBUGlevel.voidLogs a message with the specific Marker at theDEBUGlevel.voidLogs a message which is only to be constructed if the logging level is theDEBUGlevel with the specified Marker.voiddebug(Marker marker, org.apache.logging.log4j.util.MessageSupplier messageSupplier, Throwable throwable) voidLogs a message which is only to be constructed if the logging level is theDEBUGlevel with the specified Marker.voiddebug(Marker marker, org.apache.logging.log4j.util.Supplier<?> messageSupplier, Throwable throwable) voidLogs a message with the specific Marker at theDEBUGlevel.voidLogs a message with the specific Marker at theDEBUGlevel.voiddebug(org.apache.logging.log4j.util.MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theDEBUGlevel.voidvoiddebug(org.apache.logging.log4j.util.Supplier<?> messageSupplier) Logs a message which is only to be constructed if the logging level is theDEBUGlevel.voidvoidentry()Deprecated.voidLogs entry to a method along with its parameters (consider using one of thetraceEntry(...)methods instead.)voiderror(CharSequence message) Logs a message CharSequence with theERRORlevel.voiderror(CharSequence message, Throwable throwable) voidLogs a message object with theERRORlevel.voidvoidLogs a message object with theERRORlevel.voidLogs a message with parameters at error level.voidLogs a message with parameters at theERRORlevel.voidLogs a message with parameters at error level.voidLogs a message with parameters at error level.voidLogs a message with parameters at error level.voidLogs a message with parameters at error level.voidLogs a message with parameters at error level.voidLogs a message with parameters at error level.voiderror(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.voiderror(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.voiderror(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.voidvoidLogs a message with parameters which are only to be constructed if the logging level is theERRORlevel.voiderror(Marker marker, CharSequence message) Logs a message CharSequence with theERRORlevel.voiderror(Marker marker, CharSequence message, Throwable throwable) voidLogs a message object with theERRORlevel.voidvoidLogs a message object with theERRORlevel.voidLogs a message with parameters at error level.voidLogs a message with parameters at theERRORlevel.voidLogs a message with parameters at error level.voidLogs a message with parameters at error level.voidLogs a message with parameters at error level.voidLogs a message with parameters at error level.voiderror(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at error level.voiderror(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.voiderror(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.voiderror(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.voiderror(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.voidvoidLogs a message with parameters which are only to be constructed if the logging level is theERRORlevel.voidLogs a message with the specific Marker at theERRORlevel.voidLogs a message with the specific Marker at theERRORlevel.voidLogs a message which is only to be constructed if the logging level is theERRORlevel with the specified Marker.voiderror(Marker marker, org.apache.logging.log4j.util.MessageSupplier messageSupplier, Throwable throwable) voidLogs a message which is only to be constructed if the logging level is theERRORlevel with the specified Marker.voiderror(Marker marker, org.apache.logging.log4j.util.Supplier<?> messageSupplier, Throwable throwable) voidLogs a message with the specific Marker at theERRORlevel.voidLogs a message with the specific Marker at theERRORlevel.voiderror(org.apache.logging.log4j.util.MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theERRORlevel.voidvoiderror(org.apache.logging.log4j.util.Supplier<?> messageSupplier) Logs a message which is only to be constructed if the logging level is theERRORlevel.voidvoidexit()Deprecated.<R> Rexit(R result) Deprecated.voidfatal(CharSequence message) Logs a message CharSequence with theFATALlevel.voidfatal(CharSequence message, Throwable throwable) voidLogs a message object with theFATALlevel.voidvoidLogs a message object with theFATALlevel.voidLogs a message with parameters at fatal level.voidLogs a message with parameters at theFATALlevel.voidLogs a message with parameters at fatal level.voidLogs a message with parameters at fatal level.voidLogs a message with parameters at fatal level.voidLogs a message with parameters at fatal level.voidLogs a message with parameters at fatal level.voidLogs a message with parameters at fatal level.voidfatal(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.voidfatal(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.voidfatal(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.voidvoidLogs a message with parameters which are only to be constructed if the logging level is theFATALlevel.voidfatal(Marker marker, CharSequence message) Logs a message CharSequence with theFATALlevel.voidfatal(Marker marker, CharSequence message, Throwable throwable) voidLogs a message object with theFATALlevel.voidvoidLogs a message object with theFATALlevel.voidLogs a message with parameters at fatal level.voidLogs a message with parameters at theFATALlevel.voidLogs a message with parameters at fatal level.voidLogs a message with parameters at fatal level.voidLogs a message with parameters at fatal level.voidLogs a message with parameters at fatal level.voidfatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at fatal level.voidfatal(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.voidfatal(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.voidfatal(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.voidfatal(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.voidvoidLogs a message with parameters which are only to be constructed if the logging level is theFATALlevel.voidLogs a message with the specific Marker at theFATALlevel.voidLogs a message with the specific Marker at theFATALlevel.voidLogs a message which is only to be constructed if the logging level is theFATALlevel with the specified Marker.voidfatal(Marker marker, org.apache.logging.log4j.util.MessageSupplier messageSupplier, Throwable throwable) voidLogs a message which is only to be constructed if the logging level is theFATALlevel with the specified Marker.voidfatal(Marker marker, org.apache.logging.log4j.util.Supplier<?> messageSupplier, Throwable throwable) voidLogs a message with the specific Marker at theFATALlevel.voidLogs a message with the specific Marker at theFATALlevel.voidfatal(org.apache.logging.log4j.util.MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theFATALlevel.voidvoidfatal(org.apache.logging.log4j.util.Supplier<?> messageSupplier) Logs a message which is only to be constructed if the logging level is theFATALlevel.voidGets the flow message factory used to convert messages into flow messages.<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 intReturns 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.voidinfo(CharSequence message) Logs a message CharSequence with theINFOlevel.voidinfo(CharSequence message, Throwable throwable) voidLogs a message object with theINFOlevel.voidvoidLogs a message object with theINFOlevel.voidLogs a message with parameters at info level.voidLogs a message with parameters at theINFOlevel.voidLogs a message with parameters at info level.voidLogs a message with parameters at info level.voidLogs a message with parameters at info level.voidLogs a message with parameters at info level.voidLogs a message with parameters at info level.voidLogs a message with parameters at info level.voidinfo(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.voidinfo(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.voidinfo(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.voidvoidLogs a message with parameters which are only to be constructed if the logging level is theINFOlevel.voidinfo(Marker marker, CharSequence message) Logs a message CharSequence with theINFOlevel.voidinfo(Marker marker, CharSequence message, Throwable throwable) voidLogs a message object with theINFOlevel.voidvoidLogs a message object with theINFOlevel.voidLogs a message with parameters at info level.voidLogs a message with parameters at theINFOlevel.voidLogs a message with parameters at info level.voidLogs a message with parameters at info level.voidLogs a message with parameters at info level.voidLogs a message with parameters at info level.voidinfo(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at info level.voidinfo(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.voidinfo(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.voidinfo(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.voidinfo(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.voidvoidLogs a message with parameters which are only to be constructed if the logging level is theINFOlevel.voidLogs a message with the specific Marker at theINFOlevel.voidLogs a message with the specific Marker at theINFOlevel.voidLogs a message which is only to be constructed if the logging level is theINFOlevel with the specified Marker.voidinfo(Marker marker, org.apache.logging.log4j.util.MessageSupplier messageSupplier, Throwable throwable) voidLogs a message which is only to be constructed if the logging level is theINFOlevel with the specified Marker.voidvoidLogs a message with the specific Marker at theINFOlevel.voidLogs a message with the specific Marker at theINFOlevel.voidinfo(org.apache.logging.log4j.util.MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theINFOlevel.voidvoidinfo(org.apache.logging.log4j.util.Supplier<?> messageSupplier) Logs a message which is only to be constructed if the logging level is theINFOlevel.voidbooleanChecks whether this Logger is enabled for theDEBUGLevel.booleanisDebugEnabled(Marker marker) Checks whether this Logger is enabled for theDEBUGLevel.booleanChecks whether this Logger is enabled for the given Level.booleanChecks whether this Logger is enabled for the given Level and Marker.booleanChecks whether this Logger is enabled for theERRORLevel.booleanisErrorEnabled(Marker marker) Checks whether this Logger is enabled for theERRORLevel.booleanChecks whether this Logger is enabled for theFATALLevel.booleanisFatalEnabled(Marker marker) Checks whether this Logger is enabled for theFATALLevel.booleanChecks whether this Logger is enabled for theINFOLevel.booleanisInfoEnabled(Marker marker) Checks whether this Logger is enabled for theINFOLevel.booleanChecks whether this Logger is enabled for theTRACElevel.booleanisTraceEnabled(Marker marker) Checks whether this Logger is enabled for theTRACElevel.booleanChecks whether this Logger is enabled for theWARNLevel.booleanisWarnEnabled(Marker marker) Checks whether this Logger is enabled for theWARNLevel.voidlog(Level level, CharSequence message) Logs a message CharSequence with the given level.voidlog(Level level, CharSequence message, Throwable throwable) Logs a CharSequence at the given level including the stack trace of theThrowablethrowablepassed as parameter.voidLogs a message object with the given level.voidLogs a message at the given level including the stack trace of theThrowablethrowablepassed as parameter.voidLogs a message object with the given level.voidLogs a message with parameters at the specified level.voidLogs a message with parameters at the given level.voidLogs a message with parameters at the specified level.voidLogs a message with parameters at the specified level.voidLogs a message with parameters at the specified level.voidLogs a message with parameters at the specified level.voidLogs a message with parameters at the specified level.voidlog(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.voidlog(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.voidlog(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.voidlog(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.voidLogs a message at the given level including the stack trace of theThrowablethrowablepassed as parameter.voidLogs a message with parameters which are only to be constructed if the logging level is the specified level.voidlog(Level level, Marker marker, CharSequence message) Logs a message CharSequence with the given level.voidlog(Level level, Marker marker, CharSequence message, Throwable throwable) Logs a CharSequence at the given level including the stack trace of theThrowablethrowablepassed as parameter.voidLogs a message object with the given level.voidLogs a message at the given level including the stack trace of theThrowablethrowablepassed as parameter.voidLogs a message object with the given level.voidLogs a message with parameters at the specified level.voidLogs a message with parameters at the given level.voidLogs a message with parameters at the specified level.voidLogs a message with parameters at the specified level.voidLogs a message with parameters at the specified level.voidlog(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.voidlog(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.voidlog(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.voidlog(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.voidlog(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.voidlog(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.voidLogs a message at the given level including the stack trace of theThrowablethrowablepassed as parameter.voidlog(Level level, Marker marker, String message, org.apache.logging.log4j.util.Supplier<?>... paramSuppliers) Logs a message with parameters which are only to be constructed if the logging level is the specified level.voidLogs a message with the specific Marker at the given level.voidLogs a message with the specific Marker at the given level.voidLogs a message which is only to be constructed if the logging level is the specified level with the specified Marker.voidlog(Level level, Marker marker, org.apache.logging.log4j.util.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 theThrowablethrowablepassed as parameter.voidLogs a message (only to be constructed if the logging level is the specified level) with the specified Marker.voidlog(Level level, Marker marker, org.apache.logging.log4j.util.Supplier<?> messageSupplier, Throwable throwable) Logs a message (only to be constructed if the logging level is the specified level) with the specified Marker and including the stack log of theThrowablethrowablepassed as parameter.voidLogs a message with the specific Marker at the given level.voidLogs a message with the specific Marker at the given level.voidLogs a message which is only to be constructed if the logging level is the specified level.voidlog(Level level, org.apache.logging.log4j.util.MessageSupplier messageSupplier, Throwable throwable) Logs a message (only to be constructed if the logging level is the specified level) including the stack log of theThrowablethrowablepassed as parameter.voidLogs a message which is only to be constructed if the logging level is the specified level.voidLogs a message (only to be constructed if the logging level is the specified level) including the stack log of theThrowablethrowablepassed as parameter.voidlogIfEnabled(String fqcn, Level level, Marker marker, CharSequence message, Throwable throwable) Logs a CharSequence message if the specified level is active.voidLogs a message if the specified level is active.voidlogIfEnabled(String fqcn, Level level, Marker marker, String message) Logs a message if the specified level is active.voidLogs a message if the specified level is active.voidLogs a message if the specified level is active.voidLogs a message if the specified level is active.voidlogIfEnabled(String fqcn, Level level, Marker marker, String message, Object p0, Object p1, Object p2) Logs a message if the specified level is active.voidlogIfEnabled(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.voidlogIfEnabled(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.voidlogIfEnabled(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.voidlogIfEnabled(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.voidlogIfEnabled(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.voidlogIfEnabled(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.voidlogIfEnabled(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.voidLogs a message if the specified level is active.voidlogIfEnabled(String fqcn, Level level, Marker marker, String message, org.apache.logging.log4j.util.Supplier<?>... paramSuppliers) Logs a message whose parameters are only to be constructed if the specified level is active.voidLogs a message if the specified level is active.voidlogIfEnabled(String fqcn, Level level, Marker marker, org.apache.logging.log4j.util.MessageSupplier messageSupplier, Throwable throwable) Logs a message which is only to be constructed if the specified level is active.voidlogIfEnabled(String fqcn, Level level, Marker marker, org.apache.logging.log4j.util.Supplier<?> messageSupplier, Throwable throwable) Logs a message which is only to be constructed if the specified level is active.voidlogMessage(Level level, Marker marker, String fqcn, StackTraceElement location, Message message, Throwable throwable) Logs a Message.voidLogs a formatted message using the specified format string and arguments.voidLogs a formatted message using the specified format string and arguments.<T extends Throwable>
TLogs aThrowableto be thrown.<T extends Throwable>
Tthrowing(T throwable) voidtrace(CharSequence message) Logs a message CharSequence with theTRACElevel.voidtrace(CharSequence message, Throwable throwable) voidLogs a message object with theTRACElevel.voidvoidLogs a message object with theTRACElevel.voidLogs a message with parameters at trace level.voidLogs a message with parameters at theTRACElevel.voidLogs a message with parameters at trace level.voidLogs a message with parameters at trace level.voidLogs a message with parameters at trace level.voidLogs a message with parameters at trace level.voidLogs a message with parameters at trace level.voidLogs a message with parameters at trace level.voidtrace(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.voidtrace(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.voidtrace(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.voidvoidLogs a message with parameters which are only to be constructed if the logging level is theTRACElevel.voidtrace(Marker marker, CharSequence message) Logs a message CharSequence with theTRACElevel.voidtrace(Marker marker, CharSequence message, Throwable throwable) voidLogs a message object with theTRACElevel.voidvoidLogs a message object with theTRACElevel.voidLogs a message with parameters at trace level.voidLogs a message with parameters at theTRACElevel.voidLogs a message with parameters at trace level.voidLogs a message with parameters at trace level.voidLogs a message with parameters at trace level.voidLogs a message with parameters at trace level.voidtrace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at trace level.voidtrace(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.voidtrace(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.voidtrace(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.voidtrace(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.voidvoidLogs a message with parameters which are only to be constructed if the logging level is theTRACElevel.voidLogs a message with the specific Marker at theTRACElevel.voidLogs a message with the specific Marker at theTRACElevel.voidLogs a message which is only to be constructed if the logging level is theTRACElevel with the specified Marker.voidtrace(Marker marker, org.apache.logging.log4j.util.MessageSupplier messageSupplier, Throwable throwable) voidLogs a message which is only to be constructed if the logging level is theTRACElevel with the specified Marker.voidtrace(Marker marker, org.apache.logging.log4j.util.Supplier<?> messageSupplier, Throwable throwable) voidLogs a message with the specific Marker at theTRACElevel.voidLogs a message with the specific Marker at theTRACElevel.voidtrace(org.apache.logging.log4j.util.MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theTRACElevel.voidvoidtrace(org.apache.logging.log4j.util.Supplier<?> messageSupplier) Logs a message which is only to be constructed if the logging level is theTRACElevel.voidLogs entry to a method.traceEntry(String format, Object... params) Logs entry to a method along with its parameters.traceEntry(String format, org.apache.logging.log4j.util.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(org.apache.logging.log4j.util.Supplier<?>... paramSuppliers) Logs entry to a method along with its parameters.voidLogs exit from a method.<R> RLogs exiting from a method with the result.voidtraceExit(EntryMessage message) Logs exiting from a method with no result.<R> RtraceExit(EntryMessage message, R result) Logs exiting from a method with the result.<R> RLogs exiting from a method with the result.<R> RtraceExit(R result) Logs exiting from a method with the result.voidwarn(CharSequence message) Logs a message CharSequence with theWARNlevel.voidwarn(CharSequence message, Throwable throwable) voidLogs a message object with theWARNlevel.voidvoidLogs a message object with theWARNlevel.voidLogs a message with parameters at warn level.voidLogs a message with parameters at theWARNlevel.voidLogs a message with parameters at warn level.voidLogs a message with parameters at warn level.voidLogs a message with parameters at warn level.voidLogs a message with parameters at warn level.voidLogs a message with parameters at warn level.voidLogs a message with parameters at warn level.voidwarn(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.voidwarn(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.voidwarn(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.voidvoidLogs a message with parameters which are only to be constructed if the logging level is theWARNlevel.voidwarn(Marker marker, CharSequence message) Logs a message CharSequence with theWARNlevel.voidwarn(Marker marker, CharSequence message, Throwable throwable) voidLogs a message object with theWARNlevel.voidvoidLogs a message object with theWARNlevel.voidLogs a message with parameters at warn level.voidLogs a message with parameters at theWARNlevel.voidLogs a message with parameters at warn level.voidLogs a message with parameters at warn level.voidLogs a message with parameters at warn level.voidLogs a message with parameters at warn level.voidwarn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at warn level.voidwarn(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.voidwarn(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.voidwarn(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.voidwarn(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.voidvoidLogs a message with parameters which are only to be constructed if the logging level is theWARNlevel.voidLogs a message with the specific Marker at theWARNlevel.voidLogs a message with the specific Marker at theWARNlevel.voidLogs a message which is only to be constructed if the logging level is theWARNlevel with the specified Marker.voidwarn(Marker marker, org.apache.logging.log4j.util.MessageSupplier messageSupplier, Throwable throwable) voidLogs a message which is only to be constructed if the logging level is theWARNlevel with the specified Marker.voidvoidLogs a message with the specific Marker at theWARNlevel.voidLogs a message with the specific Marker at theWARNlevel.voidwarn(org.apache.logging.log4j.util.MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theWARNlevel.voidvoidwarn(org.apache.logging.log4j.util.Supplier<?> messageSupplier) Logs a message which is only to be constructed if the logging level is theWARNlevel.voidMethods inherited from class java.lang.Object
equals, 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.
-
-
Constructor Details
-
AbstractLogger
public AbstractLogger()Creates a new logger named after this class (or subclass). -
AbstractLogger
Creates a new named logger.- Parameters:
name- the logger name
-
AbstractLogger
Creates a new named logger with a particularMessageFactory.- Parameters:
name- the logger namemessageFactory- the message factory, if null then use the default message factory.
-
-
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:LoggerLogs aThrowablethat has been caught to a specific logging level. -
catching
Description copied from interface:LoggerLogs aThrowablethat has been caught at theERRORlevel. 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. -
debug
Description copied from interface:LoggerLogs a message CharSequence with theDEBUGlevel. -
debug
Description copied from interface:Logger -
debug
Description copied from interface:LoggerLogs a message with the specific Marker at theDEBUGlevel. -
debug
Description copied from interface:LoggerLogs a message with the specific Marker at theDEBUGlevel. -
debug
Description copied from interface:LoggerLogs a message object with theDEBUGlevel. -
debug
Description copied from interface:Logger -
debug
Description copied from interface:LoggerLogs a message object with theDEBUGlevel. -
debug
Description copied from interface:LoggerLogs a message with parameters at theDEBUGlevel. -
debug
Description copied from interface:Logger -
debug
Description copied from interface:LoggerLogs a message with the specific Marker at theDEBUGlevel. -
debug
Description copied from interface:LoggerLogs a message with the specific Marker at theDEBUGlevel. -
debug
Description copied from interface:LoggerLogs a message CharSequence with theDEBUGlevel. -
debug
Description copied from interface:Logger -
debug
Description copied from interface:LoggerLogs a message object with theDEBUGlevel. -
debug
Description copied from interface:Logger -
debug
Description copied from interface:LoggerLogs a message object with theDEBUGlevel. -
debug
Description copied from interface:LoggerLogs a message with parameters at theDEBUGlevel. -
debug
Description copied from interface:Logger -
debug
public void debug(org.apache.logging.log4j.util.Supplier<?> messageSupplier) Description copied from interface:LoggerLogs a message which is only to be constructed if the logging level is theDEBUGlevel. -
debug
Description copied from interface:Logger -
debug
Description copied from interface:LoggerLogs a message which is only to be constructed if the logging level is theDEBUGlevel with the specified Marker. -
debug
public void debug(Marker marker, String message, org.apache.logging.log4j.util.Supplier<?>... paramSuppliers) Description copied from interface:LoggerLogs a message with parameters which are only to be constructed if the logging level is theDEBUGlevel. -
debug
public void debug(Marker marker, org.apache.logging.log4j.util.Supplier<?> messageSupplier, Throwable throwable) Description copied from interface:Logger -
debug
Description copied from interface:LoggerLogs a message with parameters which are only to be constructed if the logging level is theDEBUGlevel. -
debug
Description copied from interface:LoggerLogs a message which is only to be constructed if the logging level is theDEBUGlevel with the specified Marker. TheMessageSuppliermay or may not use theMessageFactoryto construct theMessage. -
debug
public void debug(Marker marker, org.apache.logging.log4j.util.MessageSupplier messageSupplier, Throwable throwable) Description copied from interface:LoggerLogs a message (only to be constructed if the logging level is theDEBUGlevel) with the specified Marker and including the stack trace of theThrowablethrowablepassed as parameter. TheMessageSuppliermay or may not use theMessageFactoryto construct theMessage. -
debug
public void debug(org.apache.logging.log4j.util.MessageSupplier messageSupplier) Description copied from interface:LoggerLogs a message which is only to be constructed if the logging level is theDEBUGlevel. TheMessageSuppliermay or may not use theMessageFactoryto construct theMessage. -
debug
public void debug(org.apache.logging.log4j.util.MessageSupplier messageSupplier, Throwable throwable) Description copied from interface:LoggerLogs a message (only to be constructed if the logging level is theDEBUGlevel) including the stack trace of theThrowablethrowablepassed as parameter. TheMessageSuppliermay or may not use theMessageFactoryto construct theMessage. -
debug
Description copied from interface:LoggerLogs a message with parameters at debug level. -
debug
Description copied from interface:LoggerLogs a message with parameters at debug level. -
debug
Description copied from interface:LoggerLogs a message with parameters at debug level. -
debug
Description copied from interface:LoggerLogs a message with parameters at debug level.- Specified by:
debugin 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:LoggerLogs a message with parameters at debug level.- Specified by:
debugin 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:LoggerLogs a message with parameters at debug level.- Specified by:
debugin 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:LoggerLogs a message with parameters at debug level.- Specified by:
debugin 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:LoggerLogs a message with parameters at debug level.- Specified by:
debugin 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:LoggerLogs a message with parameters at debug level.- Specified by:
debugin 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:LoggerLogs a message with parameters at debug level.- Specified by:
debugin 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:LoggerLogs a message with parameters at debug level. -
debug
Description copied from interface:LoggerLogs a message with parameters at debug level. -
debug
Description copied from interface:LoggerLogs a message with parameters at debug level. -
debug
Description copied from interface:LoggerLogs a message with parameters at debug level. -
debug
Description copied from interface:LoggerLogs a message with parameters at debug level. -
debug
Description copied from interface:LoggerLogs a message with parameters at debug level.- Specified by:
debugin 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:LoggerLogs a message with parameters at debug level.- Specified by:
debugin 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:LoggerLogs a message with parameters at debug level.- Specified by:
debugin 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:LoggerLogs a message with parameters at debug level.- Specified by:
debugin 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:LoggerLogs a message with parameters at debug level.- Specified by:
debugin 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.
-
entry
Deprecated.Description copied from interface:LoggerLogs entry to a method. Used when the method in question has no parameters or when the parameters should not be logged. -
entry
Description copied from interface:LoggerLogs 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.
-
error
Description copied from interface:LoggerLogs a message with the specific Marker at theERRORlevel. -
error
Description copied from interface:LoggerLogs a message with the specific Marker at theERRORlevel. -
error
Description copied from interface:LoggerLogs a message CharSequence with theERRORlevel. -
error
Description copied from interface:Logger -
error
Description copied from interface:LoggerLogs a message object with theERRORlevel. -
error
Description copied from interface:Logger -
error
Description copied from interface:LoggerLogs a message object with theERRORlevel. -
error
Description copied from interface:LoggerLogs a message with parameters at theERRORlevel. -
error
Description copied from interface:Logger -
error
Description copied from interface:LoggerLogs a message with the specific Marker at theERRORlevel. -
error
Description copied from interface:LoggerLogs a message with the specific Marker at theERRORlevel. -
error
Description copied from interface:LoggerLogs a message CharSequence with theERRORlevel. -
error
Description copied from interface:Logger -
error
Description copied from interface:LoggerLogs a message object with theERRORlevel. -
error
Description copied from interface:Logger -
error
Description copied from interface:LoggerLogs a message object with theERRORlevel. -
error
Description copied from interface:LoggerLogs a message with parameters at theERRORlevel. -
error
Description copied from interface:Logger -
error
public void error(org.apache.logging.log4j.util.Supplier<?> messageSupplier) Description copied from interface:LoggerLogs a message which is only to be constructed if the logging level is theERRORlevel. -
error
Description copied from interface:Logger -
error
Description copied from interface:LoggerLogs a message which is only to be constructed if the logging level is theERRORlevel with the specified Marker. -
error
public void error(Marker marker, String message, org.apache.logging.log4j.util.Supplier<?>... paramSuppliers) Description copied from interface:LoggerLogs a message with parameters which are only to be constructed if the logging level is theERRORlevel. -
error
public void error(Marker marker, org.apache.logging.log4j.util.Supplier<?> messageSupplier, Throwable throwable) Description copied from interface:Logger -
error
Description copied from interface:LoggerLogs a message with parameters which are only to be constructed if the logging level is theERRORlevel. -
error
Description copied from interface:LoggerLogs a message which is only to be constructed if the logging level is theERRORlevel with the specified Marker. TheMessageSuppliermay or may not use theMessageFactoryto construct theMessage. -
error
public void error(Marker marker, org.apache.logging.log4j.util.MessageSupplier messageSupplier, Throwable throwable) Description copied from interface:LoggerLogs a message (only to be constructed if the logging level is theERRORlevel) with the specified Marker and including the stack trace of theThrowablethrowablepassed as parameter. TheMessageSuppliermay or may not use theMessageFactoryto construct theMessage. -
error
public void error(org.apache.logging.log4j.util.MessageSupplier messageSupplier) Description copied from interface:LoggerLogs a message which is only to be constructed if the logging level is theERRORlevel. TheMessageSuppliermay or may not use theMessageFactoryto construct theMessage. -
error
public void error(org.apache.logging.log4j.util.MessageSupplier messageSupplier, Throwable throwable) Description copied from interface:LoggerLogs a message (only to be constructed if the logging level is theERRORlevel) including the stack trace of theThrowablethrowablepassed as parameter. TheMessageSuppliermay or may not use theMessageFactoryto construct theMessage. -
error
Description copied from interface:LoggerLogs a message with parameters at error level. -
error
Description copied from interface:LoggerLogs a message with parameters at error level. -
error
Description copied from interface:LoggerLogs a message with parameters at error level. -
error
Description copied from interface:LoggerLogs a message with parameters at error level.- Specified by:
errorin 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:LoggerLogs a message with parameters at error level.- Specified by:
errorin 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:LoggerLogs a message with parameters at error level.- Specified by:
errorin 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:LoggerLogs a message with parameters at error level.- Specified by:
errorin 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:LoggerLogs a message with parameters at error level.- Specified by:
errorin 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:LoggerLogs a message with parameters at error level.- Specified by:
errorin 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:LoggerLogs a message with parameters at error level.- Specified by:
errorin 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:LoggerLogs a message with parameters at error level. -
error
Description copied from interface:LoggerLogs a message with parameters at error level. -
error
Description copied from interface:LoggerLogs a message with parameters at error level. -
error
Description copied from interface:LoggerLogs a message with parameters at error level. -
error
Description copied from interface:LoggerLogs a message with parameters at error level. -
error
Description copied from interface:LoggerLogs a message with parameters at error level.- Specified by:
errorin 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:LoggerLogs a message with parameters at error level.- Specified by:
errorin 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:LoggerLogs a message with parameters at error level.- Specified by:
errorin 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:LoggerLogs a message with parameters at error level.- Specified by:
errorin 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:LoggerLogs a message with parameters at error level.- Specified by:
errorin 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:LoggerLogs exit from a method. Used for methods that do not return anything. -
exit
Deprecated.Description copied from interface:LoggerLogs exiting from a method with the result. This may be coded as:return LOGGER.exit(myResult);
-
fatal
Description copied from interface:LoggerLogs a message with the specific Marker at theFATALlevel. -
fatal
Description copied from interface:LoggerLogs a message with the specific Marker at theFATALlevel. -
fatal
Description copied from interface:LoggerLogs a message CharSequence with theFATALlevel. -
fatal
Description copied from interface:Logger -
fatal
Description copied from interface:LoggerLogs a message object with theFATALlevel. -
fatal
Description copied from interface:Logger -
fatal
Description copied from interface:LoggerLogs a message object with theFATALlevel. -
fatal
Description copied from interface:LoggerLogs a message with parameters at theFATALlevel. -
fatal
Description copied from interface:Logger -
fatal
Description copied from interface:LoggerLogs a message with the specific Marker at theFATALlevel. -
fatal
Description copied from interface:LoggerLogs a message with the specific Marker at theFATALlevel. -
fatal
Description copied from interface:LoggerLogs a message CharSequence with theFATALlevel. -
fatal
Description copied from interface:Logger -
fatal
Description copied from interface:LoggerLogs a message object with theFATALlevel. -
fatal
Description copied from interface:Logger -
fatal
Description copied from interface:LoggerLogs a message object with theFATALlevel. -
fatal
Description copied from interface:LoggerLogs a message with parameters at theFATALlevel. -
fatal
Description copied from interface:Logger -
fatal
public void fatal(org.apache.logging.log4j.util.Supplier<?> messageSupplier) Description copied from interface:LoggerLogs a message which is only to be constructed if the logging level is theFATALlevel. -
fatal
Description copied from interface:Logger -
fatal
Description copied from interface:LoggerLogs a message which is only to be constructed if the logging level is theFATALlevel with the specified Marker. -
fatal
public void fatal(Marker marker, String message, org.apache.logging.log4j.util.Supplier<?>... paramSuppliers) Description copied from interface:LoggerLogs a message with parameters which are only to be constructed if the logging level is theFATALlevel. -
fatal
public void fatal(Marker marker, org.apache.logging.log4j.util.Supplier<?> messageSupplier, Throwable throwable) Description copied from interface:Logger -
fatal
Description copied from interface:LoggerLogs a message with parameters which are only to be constructed if the logging level is theFATALlevel. -
fatal
Description copied from interface:LoggerLogs a message which is only to be constructed if the logging level is theFATALlevel with the specified Marker. TheMessageSuppliermay or may not use theMessageFactoryto construct theMessage. -
fatal
public void fatal(Marker marker, org.apache.logging.log4j.util.MessageSupplier messageSupplier, Throwable throwable) Description copied from interface:LoggerLogs a message (only to be constructed if the logging level is theFATALlevel) with the specified Marker and including the stack trace of theThrowablethrowablepassed as parameter. TheMessageSuppliermay or may not use theMessageFactoryto construct theMessage. -
fatal
public void fatal(org.apache.logging.log4j.util.MessageSupplier messageSupplier) Description copied from interface:LoggerLogs a message which is only to be constructed if the logging level is theFATALlevel. TheMessageSuppliermay or may not use theMessageFactoryto construct theMessage. -
fatal
public void fatal(org.apache.logging.log4j.util.MessageSupplier messageSupplier, Throwable throwable) Description copied from interface:LoggerLogs a message (only to be constructed if the logging level is theFATALlevel) including the stack trace of theThrowablethrowablepassed as parameter. TheMessageSuppliermay or may not use theMessageFactoryto construct theMessage. -
fatal
Description copied from interface:LoggerLogs a message with parameters at fatal level. -
fatal
Description copied from interface:LoggerLogs a message with parameters at fatal level. -
fatal
Description copied from interface:LoggerLogs a message with parameters at fatal level. -
fatal
Description copied from interface:LoggerLogs a message with parameters at fatal level.- Specified by:
fatalin 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:LoggerLogs a message with parameters at fatal level.- Specified by:
fatalin 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:LoggerLogs a message with parameters at fatal level.- Specified by:
fatalin 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:LoggerLogs a message with parameters at fatal level.- Specified by:
fatalin 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:LoggerLogs a message with parameters at fatal level.- Specified by:
fatalin 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:LoggerLogs a message with parameters at fatal level.- Specified by:
fatalin 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:LoggerLogs a message with parameters at fatal level.- Specified by:
fatalin 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:LoggerLogs a message with parameters at fatal level. -
fatal
Description copied from interface:LoggerLogs a message with parameters at fatal level. -
fatal
Description copied from interface:LoggerLogs a message with parameters at fatal level. -
fatal
Description copied from interface:LoggerLogs a message with parameters at fatal level. -
fatal
Description copied from interface:LoggerLogs a message with parameters at fatal level. -
fatal
Description copied from interface:LoggerLogs a message with parameters at fatal level.- Specified by:
fatalin 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:LoggerLogs a message with parameters at fatal level.- Specified by:
fatalin 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:LoggerLogs a message with parameters at fatal level.- Specified by:
fatalin 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:LoggerLogs a message with parameters at fatal level.- Specified by:
fatalin 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:LoggerLogs a message with parameters at fatal level.- Specified by:
fatalin 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:LoggerGets 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 theMessageFactory2interface. From version 2.6.2, the return type of this method was changed fromMessageFactoryto<MF extends MessageFactory> MF. The returned factory will always implementMessageFactory2, but the return type of this method could not be changed toMessageFactory2without breaking binary compatibility.- Specified by:
getMessageFactoryin interfaceLogger- Returns:
- the message factory, as an instance of
MessageFactory2
-
getFlowMessageFactory
Description copied from interface:LoggerGets the flow message factory used to convert messages into flow messages.- Specified by:
getFlowMessageFactoryin interfaceLogger- Returns:
- the flow message factory, as an instance of
FlowMessageFactory.
-
getName
Description copied from interface:LoggerGets the logger name. -
info
Description copied from interface:LoggerLogs a message with the specific Marker at theINFOlevel. -
info
Description copied from interface:LoggerLogs a message with the specific Marker at theINFOlevel. -
info
Description copied from interface:LoggerLogs a message CharSequence with theINFOlevel. -
info
Description copied from interface:Logger -
info
Description copied from interface:LoggerLogs a message object with theINFOlevel. -
info
Description copied from interface:Logger -
info
Description copied from interface:LoggerLogs a message object with theINFOlevel. -
info
Description copied from interface:LoggerLogs a message with parameters at theINFOlevel. -
info
Description copied from interface:Logger -
info
Description copied from interface:LoggerLogs a message with the specific Marker at theINFOlevel. -
info
Description copied from interface:LoggerLogs a message with the specific Marker at theINFOlevel. -
info
Description copied from interface:LoggerLogs a message CharSequence with theINFOlevel. -
info
Description copied from interface:Logger -
info
Description copied from interface:LoggerLogs a message object with theINFOlevel. -
info
Description copied from interface:Logger -
info
Description copied from interface:LoggerLogs a message object with theINFOlevel. -
info
Description copied from interface:LoggerLogs a message with parameters at theINFOlevel. -
info
Description copied from interface:Logger -
info
public void info(org.apache.logging.log4j.util.Supplier<?> messageSupplier) Description copied from interface:LoggerLogs a message which is only to be constructed if the logging level is theINFOlevel. -
info
Description copied from interface:Logger -
info
Description copied from interface:LoggerLogs a message which is only to be constructed if the logging level is theINFOlevel with the specified Marker. -
info
public void info(Marker marker, String message, org.apache.logging.log4j.util.Supplier<?>... paramSuppliers) Description copied from interface:LoggerLogs a message with parameters which are only to be constructed if the logging level is theINFOlevel. -
info
public void info(Marker marker, org.apache.logging.log4j.util.Supplier<?> messageSupplier, Throwable throwable) Description copied from interface:Logger -
info
Description copied from interface:LoggerLogs a message with parameters which are only to be constructed if the logging level is theINFOlevel. -
info
Description copied from interface:LoggerLogs a message which is only to be constructed if the logging level is theINFOlevel with the specified Marker. TheMessageSuppliermay or may not use theMessageFactoryto construct theMessage. -
info
public void info(Marker marker, org.apache.logging.log4j.util.MessageSupplier messageSupplier, Throwable throwable) Description copied from interface:LoggerLogs a message (only to be constructed if the logging level is theINFOlevel) with the specified Marker and including the stack trace of theThrowablethrowablepassed as parameter. TheMessageSuppliermay or may not use theMessageFactoryto construct theMessage. -
info
public void info(org.apache.logging.log4j.util.MessageSupplier messageSupplier) Description copied from interface:LoggerLogs a message which is only to be constructed if the logging level is theINFOlevel. TheMessageSuppliermay or may not use theMessageFactoryto construct theMessage. -
info
public void info(org.apache.logging.log4j.util.MessageSupplier messageSupplier, Throwable throwable) Description copied from interface:LoggerLogs a message (only to be constructed if the logging level is theINFOlevel) including the stack trace of theThrowablethrowablepassed as parameter. TheMessageSuppliermay or may not use theMessageFactoryto construct theMessage. -
info
Description copied from interface:LoggerLogs a message with parameters at info level. -
info
Description copied from interface:LoggerLogs a message with parameters at info level. -
info
Description copied from interface:LoggerLogs a message with parameters at info level. -
info
Description copied from interface:LoggerLogs a message with parameters at info level.- Specified by:
infoin 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:LoggerLogs a message with parameters at info level.- Specified by:
infoin 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:LoggerLogs a message with parameters at info level.- Specified by:
infoin 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:LoggerLogs a message with parameters at info level.- Specified by:
infoin 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:LoggerLogs a message with parameters at info level.- Specified by:
infoin 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:LoggerLogs a message with parameters at info level.- Specified by:
infoin 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:LoggerLogs a message with parameters at info level.- Specified by:
infoin 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:LoggerLogs a message with parameters at info level. -
info
Description copied from interface:LoggerLogs a message with parameters at info level. -
info
Description copied from interface:LoggerLogs a message with parameters at info level. -
info
Description copied from interface:LoggerLogs a message with parameters at info level. -
info
Description copied from interface:LoggerLogs a message with parameters at info level. -
info
Description copied from interface:LoggerLogs a message with parameters at info level.- Specified by:
infoin 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:LoggerLogs a message with parameters at info level.- Specified by:
infoin 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:LoggerLogs a message with parameters at info level.- Specified by:
infoin 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:LoggerLogs a message with parameters at info level.- Specified by:
infoin 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:LoggerLogs a message with parameters at info level.- Specified by:
infoin 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:LoggerChecks whether this Logger is enabled for theDEBUGLevel.- Specified by:
isDebugEnabledin interfaceLogger- Returns:
- boolean -
trueif this Logger is enabled for level DEBUG,falseotherwise.
-
isDebugEnabled
Description copied from interface:LoggerChecks whether this Logger is enabled for theDEBUGLevel.- Specified by:
isDebugEnabledin interfaceLogger- Parameters:
marker- The Marker to check- Returns:
- boolean -
trueif this Logger is enabled for level DEBUG,falseotherwise.
-
isEnabled
Description copied from interface:LoggerChecks whether this Logger is enabled for the given Level.Note that passing in
OFFalways returnstrue. -
isEnabled
Description copied from interface:LoggerChecks whether this Logger is enabled for the given Level and Marker. -
isErrorEnabled
public boolean isErrorEnabled()Description copied from interface:LoggerChecks whether this Logger is enabled for theERRORLevel.- Specified by:
isErrorEnabledin interfaceLogger- Returns:
- boolean -
trueif this Logger is enabled for levelERROR,falseotherwise.
-
isErrorEnabled
Description copied from interface:LoggerChecks whether this Logger is enabled for theERRORLevel.- Specified by:
isErrorEnabledin interfaceLogger- Parameters:
marker- The Marker to check- Returns:
- boolean -
trueif this Logger is enabled for levelERROR,falseotherwise.
-
isFatalEnabled
public boolean isFatalEnabled()Description copied from interface:LoggerChecks whether this Logger is enabled for theFATALLevel.- Specified by:
isFatalEnabledin interfaceLogger- Returns:
- boolean -
trueif this Logger is enabled for levelFATAL,falseotherwise.
-
isFatalEnabled
Description copied from interface:LoggerChecks whether this Logger is enabled for theFATALLevel.- Specified by:
isFatalEnabledin interfaceLogger- Parameters:
marker- The Marker to check- Returns:
- boolean -
trueif this Logger is enabled for levelFATAL,falseotherwise.
-
isInfoEnabled
public boolean isInfoEnabled()Description copied from interface:LoggerChecks whether this Logger is enabled for theINFOLevel.- Specified by:
isInfoEnabledin interfaceLogger- Returns:
- boolean -
trueif this Logger is enabled for level INFO,falseotherwise.
-
isInfoEnabled
Description copied from interface:LoggerChecks whether this Logger is enabled for theINFOLevel.- Specified by:
isInfoEnabledin interfaceLogger- Parameters:
marker- The Marker to check- Returns:
- boolean -
trueif this Logger is enabled for level INFO,falseotherwise.
-
isTraceEnabled
public boolean isTraceEnabled()Description copied from interface:LoggerChecks whether this Logger is enabled for theTRACElevel.- Specified by:
isTraceEnabledin interfaceLogger- Returns:
- boolean -
trueif this Logger is enabled for level TRACE,falseotherwise.
-
isTraceEnabled
Description copied from interface:LoggerChecks whether this Logger is enabled for theTRACElevel.- Specified by:
isTraceEnabledin interfaceLogger- Parameters:
marker- The Marker to check- Returns:
- boolean -
trueif this Logger is enabled for level TRACE,falseotherwise.
-
isWarnEnabled
public boolean isWarnEnabled()Description copied from interface:LoggerChecks whether this Logger is enabled for theWARNLevel.- Specified by:
isWarnEnabledin interfaceLogger- Returns:
- boolean -
trueif this Logger is enabled for levelWARN,falseotherwise.
-
isWarnEnabled
Description copied from interface:LoggerChecks whether this Logger is enabled for theWARNLevel.- Specified by:
isWarnEnabledin interfaceLogger- Parameters:
marker- The Marker to check- Returns:
- boolean -
trueif this Logger is enabled for levelWARN,falseotherwise.
-
log
Description copied from interface:LoggerLogs a message with the specific Marker at the given level. -
log
Description copied from interface:LoggerLogs a message with the specific Marker at the given level. -
log
Description copied from interface:LoggerLogs a message CharSequence with the given level. -
log
Description copied from interface:LoggerLogs a CharSequence at the given level including the stack trace of theThrowablethrowablepassed as parameter. -
log
Description copied from interface:LoggerLogs a message object with the given level. -
log
Description copied from interface:LoggerLogs a message at the given level including the stack trace of theThrowablethrowablepassed as parameter. -
log
Description copied from interface:LoggerLogs a message object with the given level. -
log
Description copied from interface:LoggerLogs a message with parameters at the given level. -
log
Description copied from interface:LoggerLogs a message at the given level including the stack trace of theThrowablethrowablepassed as parameter. -
log
Description copied from interface:LoggerLogs a message with the specific Marker at the given level. -
log
Description copied from interface:LoggerLogs a message with the specific Marker at the given level. -
log
Description copied from interface:LoggerLogs a message CharSequence with the given level. -
log
Description copied from interface:LoggerLogs a CharSequence at the given level including the stack trace of theThrowablethrowablepassed as parameter. -
log
Description copied from interface:LoggerLogs a message object with the given level. -
log
Description copied from interface:LoggerLogs a message at the given level including the stack trace of theThrowablethrowablepassed as parameter. -
log
Description copied from interface:LoggerLogs a message object with the given level. -
log
Description copied from interface:LoggerLogs a message with parameters at the given level. -
log
Description copied from interface:LoggerLogs a message at the given level including the stack trace of theThrowablethrowablepassed as parameter. -
log
Description copied from interface:LoggerLogs a message which is only to be constructed if the logging level is the specified level. -
log
public void log(Level level, org.apache.logging.log4j.util.Supplier<?> messageSupplier, Throwable throwable) Description copied from interface:LoggerLogs a message (only to be constructed if the logging level is the specified level) including the stack log of theThrowablethrowablepassed as parameter. -
log
public void log(Level level, Marker marker, org.apache.logging.log4j.util.Supplier<?> messageSupplier) Description copied from interface:LoggerLogs a message (only to be constructed if the logging level is the specified level) with the specified Marker. -
log
public void log(Level level, Marker marker, String message, org.apache.logging.log4j.util.Supplier<?>... paramSuppliers) Description copied from interface:LoggerLogs a message with parameters which are only to be constructed if the logging level is the specified level.- Specified by:
login 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
public void log(Level level, Marker marker, org.apache.logging.log4j.util.Supplier<?> messageSupplier, Throwable throwable) Description copied from interface:LoggerLogs a message (only to be constructed if the logging level is the specified level) with the specified Marker and including the stack log of theThrowablethrowablepassed as parameter. -
log
public void log(Level level, String message, org.apache.logging.log4j.util.Supplier<?>... paramSuppliers) Description copied from interface:LoggerLogs a message with parameters which are only to be constructed if the logging level is the specified level. -
log
public void log(Level level, Marker marker, org.apache.logging.log4j.util.MessageSupplier messageSupplier) Description copied from interface:LoggerLogs a message which is only to be constructed if the logging level is the specified level with the specified Marker. TheMessageSuppliermay or may not use theMessageFactoryto construct theMessage. -
log
public void log(Level level, Marker marker, org.apache.logging.log4j.util.MessageSupplier messageSupplier, Throwable throwable) Description copied from interface:LoggerLogs a message (only to be constructed if the logging level is the specified level) with the specified Marker and including the stack log of theThrowablethrowablepassed as parameter. TheMessageSuppliermay or may not use theMessageFactoryto construct theMessage. -
log
Description copied from interface:LoggerLogs a message which is only to be constructed if the logging level is the specified level. TheMessageSuppliermay or may not use theMessageFactoryto construct theMessage. -
log
public void log(Level level, org.apache.logging.log4j.util.MessageSupplier messageSupplier, Throwable throwable) Description copied from interface:LoggerLogs a message (only to be constructed if the logging level is the specified level) including the stack log of theThrowablethrowablepassed as parameter. TheMessageSuppliermay or may not use theMessageFactoryto construct theMessage. -
log
Description copied from interface:LoggerLogs a message with parameters at the specified level. -
log
Description copied from interface:LoggerLogs a message with parameters at the specified level. -
log
Description copied from interface:LoggerLogs 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:LoggerLogs a message with parameters at the specified level.- Specified by:
login 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:LoggerLogs a message with parameters at the specified level.- Specified by:
login 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:LoggerLogs a message with parameters at the specified level.- Specified by:
login 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:LoggerLogs a message with parameters at the specified level.- Specified by:
login 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:LoggerLogs a message with parameters at the specified level.- Specified by:
login 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:LoggerLogs a message with parameters at the specified level.- Specified by:
login 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:LoggerLogs a message with parameters at the specified level.- Specified by:
login 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:LoggerLogs a message with parameters at the specified level. -
log
Description copied from interface:LoggerLogs a message with parameters at the specified level. -
log
Description copied from interface:LoggerLogs a message with parameters at the specified level. -
log
Description copied from interface:LoggerLogs a message with parameters at the specified level. -
log
Description copied from interface:LoggerLogs a message with parameters at the specified level.- Specified by:
login 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:LoggerLogs a message with parameters at the specified level.- Specified by:
login 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:LoggerLogs a message with parameters at the specified level.- Specified by:
login 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:LoggerLogs a message with parameters at the specified level.- Specified by:
login 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:LoggerLogs a message with parameters at the specified level.- Specified by:
login 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:LoggerLogs a message with parameters at the specified level.- Specified by:
login 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:ExtendedLoggerLogs a message if the specified level is active.- Specified by:
logIfEnabledin 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, org.apache.logging.log4j.util.MessageSupplier messageSupplier, Throwable throwable) Description copied from interface:ExtendedLoggerLogs a message which is only to be constructed if the specified level is active.- Specified by:
logIfEnabledin 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:ExtendedLoggerLogs a message if the specified level is active.- Specified by:
logIfEnabledin 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:ExtendedLoggerLogs a CharSequence message if the specified level is active.- Specified by:
logIfEnabledin 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, org.apache.logging.log4j.util.Supplier<?> messageSupplier, Throwable throwable) Description copied from interface:ExtendedLoggerLogs a message which is only to be constructed if the specified level is active.- Specified by:
logIfEnabledin 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:ExtendedLoggerLogs a message if the specified level is active.- Specified by:
logIfEnabledin 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, org.apache.logging.log4j.util.Supplier<?>... paramSuppliers) Description copied from interface:ExtendedLoggerLogs a message whose parameters are only to be constructed if the specified level is active.- Specified by:
logIfEnabledin 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:ExtendedLoggerLogs a message if the specified level is active.- Specified by:
logIfEnabledin 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:ExtendedLoggerLogs a message if the specified level is active.- Specified by:
logIfEnabledin 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:ExtendedLoggerLogs a message if the specified level is active.- Specified by:
logIfEnabledin 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:ExtendedLoggerLogs a message if the specified level is active.- Specified by:
logIfEnabledin 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:ExtendedLoggerLogs a message if the specified level is active.- Specified by:
logIfEnabledin 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:ExtendedLoggerLogs a message if the specified level is active.- Specified by:
logIfEnabledin 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:ExtendedLoggerLogs a message if the specified level is active.- Specified by:
logIfEnabledin 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:ExtendedLoggerLogs a message if the specified level is active.- Specified by:
logIfEnabledin 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:ExtendedLoggerLogs a message if the specified level is active.- Specified by:
logIfEnabledin 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:ExtendedLoggerLogs a message if the specified level is active.- Specified by:
logIfEnabledin 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:ExtendedLoggerLogs a message if the specified level is active.- Specified by:
logIfEnabledin 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:ExtendedLoggerLogs a message if the specified level is active.- Specified by:
logIfEnabledin 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
public void logMessage(Level level, Marker marker, String fqcn, StackTraceElement location, Message message, Throwable throwable) Description copied from interface:LoggerLogs a Message.- Specified by:
logMessagein interfaceLocationAwareLogger- Specified by:
logMessagein 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- theThrowableto log, including its stack trace.
-
printf
Description copied from interface:LoggerLogs a formatted message using the specified format string and arguments. -
printf
Description copied from interface:LoggerLogs 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
-
throwing
Description copied from interface:Logger -
throwing
Description copied from interface:LoggerLogs aThrowableto be thrown. This may be coded as:throw logger.throwing(Level.DEBUG, myException);
-
trace
Description copied from interface:LoggerLogs a message with the specific Marker at theTRACElevel. -
trace
Description copied from interface:LoggerLogs a message with the specific Marker at theTRACElevel. -
trace
Description copied from interface:LoggerLogs a message CharSequence with theTRACElevel. -
trace
Description copied from interface:Logger -
trace
Description copied from interface:LoggerLogs a message object with theTRACElevel. -
trace
Description copied from interface:Logger -
trace
Description copied from interface:LoggerLogs a message object with theTRACElevel. -
trace
Description copied from interface:LoggerLogs a message with parameters at theTRACElevel. -
trace
Description copied from interface:Logger -
trace
Description copied from interface:LoggerLogs a message with the specific Marker at theTRACElevel. -
trace
Description copied from interface:LoggerLogs a message with the specific Marker at theTRACElevel. -
trace
Description copied from interface:LoggerLogs a message CharSequence with theTRACElevel. -
trace
Description copied from interface:Logger -
trace
Description copied from interface:LoggerLogs a message object with theTRACElevel. -
trace
Description copied from interface:Logger -
trace
Description copied from interface:LoggerLogs a message object with theTRACElevel. -
trace
Description copied from interface:LoggerLogs a message with parameters at theTRACElevel. -
trace
Description copied from interface:Logger -
trace
public void trace(org.apache.logging.log4j.util.Supplier<?> messageSupplier) Description copied from interface:LoggerLogs a message which is only to be constructed if the logging level is theTRACElevel. -
trace
Description copied from interface:Logger -
trace
Description copied from interface:LoggerLogs a message which is only to be constructed if the logging level is theTRACElevel with the specified Marker. -
trace
public void trace(Marker marker, String message, org.apache.logging.log4j.util.Supplier<?>... paramSuppliers) Description copied from interface:LoggerLogs a message with parameters which are only to be constructed if the logging level is theTRACElevel. -
trace
public void trace(Marker marker, org.apache.logging.log4j.util.Supplier<?> messageSupplier, Throwable throwable) Description copied from interface:Logger -
trace
Description copied from interface:LoggerLogs a message with parameters which are only to be constructed if the logging level is theTRACElevel. -
trace
Description copied from interface:LoggerLogs a message which is only to be constructed if the logging level is theTRACElevel with the specified Marker. TheMessageSuppliermay or may not use theMessageFactoryto construct theMessage. -
trace
public void trace(Marker marker, org.apache.logging.log4j.util.MessageSupplier messageSupplier, Throwable throwable) Description copied from interface:LoggerLogs a message (only to be constructed if the logging level is theTRACElevel) with the specified Marker and including the stack trace of theThrowablethrowablepassed as parameter. TheMessageSuppliermay or may not use theMessageFactoryto construct theMessage. -
trace
public void trace(org.apache.logging.log4j.util.MessageSupplier messageSupplier) Description copied from interface:LoggerLogs a message which is only to be constructed if the logging level is theTRACElevel. TheMessageSuppliermay or may not use theMessageFactoryto construct theMessage. -
trace
public void trace(org.apache.logging.log4j.util.MessageSupplier messageSupplier, Throwable throwable) Description copied from interface:LoggerLogs a message (only to be constructed if the logging level is theTRACElevel) including the stack trace of theThrowablethrowablepassed as parameter. TheMessageSuppliermay or may not use theMessageFactoryto construct theMessage. -
trace
Description copied from interface:LoggerLogs a message with parameters at trace level. -
trace
Description copied from interface:LoggerLogs a message with parameters at trace level. -
trace
Description copied from interface:LoggerLogs a message with parameters at trace level. -
trace
Description copied from interface:LoggerLogs a message with parameters at trace level.- Specified by:
tracein 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:LoggerLogs a message with parameters at trace level.- Specified by:
tracein 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:LoggerLogs a message with parameters at trace level.- Specified by:
tracein 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:LoggerLogs a message with parameters at trace level.- Specified by:
tracein 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:LoggerLogs a message with parameters at trace level.- Specified by:
tracein 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:LoggerLogs a message with parameters at trace level.- Specified by:
tracein 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:LoggerLogs a message with parameters at trace level.- Specified by:
tracein 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:LoggerLogs a message with parameters at trace level. -
trace
Description copied from interface:LoggerLogs a message with parameters at trace level. -
trace
Description copied from interface:LoggerLogs a message with parameters at trace level. -
trace
Description copied from interface:LoggerLogs a message with parameters at trace level. -
trace
Description copied from interface:LoggerLogs a message with parameters at trace level. -
trace
Description copied from interface:LoggerLogs a message with parameters at trace level.- Specified by:
tracein 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:LoggerLogs a message with parameters at trace level.- Specified by:
tracein 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:LoggerLogs a message with parameters at trace level.- Specified by:
tracein 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:LoggerLogs a message with parameters at trace level.- Specified by:
tracein 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:LoggerLogs a message with parameters at trace level.- Specified by:
tracein 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:LoggerLogs entry to a method. Used when the method in question has no parameters or when the parameters should not be logged.- Specified by:
traceEntryin interfaceLogger- Returns:
- built message
-
traceEntry
Description copied from interface:LoggerLogs 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:
traceEntryin interfaceLogger- Parameters:
format- The format String for the parameters.params- The parameters to the method.- Returns:
- The built Message
-
traceEntry
Description copied from interface:LoggerLogs entry to a method along with its parameters. For example,public void doSomething(Request foo) { LOGGER.traceEntry(()->gson.toJson(foo)); // do something }- Specified by:
traceEntryin interfaceLogger- Parameters:
paramSuppliers- The Suppliers for the parameters to the method.- Returns:
- built message
-
traceEntry
public EntryMessage traceEntry(String format, org.apache.logging.log4j.util.Supplier<?>... paramSuppliers) Description copied from interface:LoggerLogs 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:
traceEntryin 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:LoggerLogs 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
ReusableMessageto 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 returnedEntryMessageis fully processed.- Specified by:
traceEntryin 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:LoggerLogs exit from a method. Used for methods that do not return anything. -
traceExit
public <R> R traceExit(R result) Description copied from interface:LoggerLogs exiting from a method with the result. This may be coded as:return LOGGER.traceExit(myResult);
-
traceExit
Description copied from interface:LoggerLogs exiting from a method with the result. This may be coded as:return LOGGER.traceExit("Result: {}", myResult); -
traceExit
Description copied from interface:LoggerLogs 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:LoggerLogs 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:LoggerLogs 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:LoggerLogs a message with the specific Marker at theWARNlevel. -
warn
Description copied from interface:LoggerLogs a message with the specific Marker at theWARNlevel. -
warn
Description copied from interface:LoggerLogs a message CharSequence with theWARNlevel. -
warn
Description copied from interface:Logger -
warn
Description copied from interface:LoggerLogs a message object with theWARNlevel. -
warn
Description copied from interface:Logger -
warn
Description copied from interface:LoggerLogs a message object with theWARNlevel. -
warn
Description copied from interface:LoggerLogs a message with parameters at theWARNlevel. -
warn
Description copied from interface:Logger -
warn
Description copied from interface:LoggerLogs a message with the specific Marker at theWARNlevel. -
warn
Description copied from interface:LoggerLogs a message with the specific Marker at theWARNlevel. -
warn
Description copied from interface:LoggerLogs a message CharSequence with theWARNlevel. -
warn
Description copied from interface:Logger -
warn
Description copied from interface:LoggerLogs a message object with theWARNlevel. -
warn
Description copied from interface:Logger -
warn
Description copied from interface:LoggerLogs a message object with theWARNlevel. -
warn
Description copied from interface:LoggerLogs a message with parameters at theWARNlevel. -
warn
Description copied from interface:Logger -
warn
public void warn(org.apache.logging.log4j.util.Supplier<?> messageSupplier) Description copied from interface:LoggerLogs a message which is only to be constructed if the logging level is theWARNlevel. -
warn
Description copied from interface:Logger -
warn
Description copied from interface:LoggerLogs a message which is only to be constructed if the logging level is theWARNlevel with the specified Marker. -
warn
public void warn(Marker marker, String message, org.apache.logging.log4j.util.Supplier<?>... paramSuppliers) Description copied from interface:LoggerLogs a message with parameters which are only to be constructed if the logging level is theWARNlevel. -
warn
public void warn(Marker marker, org.apache.logging.log4j.util.Supplier<?> messageSupplier, Throwable throwable) Description copied from interface:Logger -
warn
Description copied from interface:LoggerLogs a message with parameters which are only to be constructed if the logging level is theWARNlevel. -
warn
Description copied from interface:LoggerLogs a message which is only to be constructed if the logging level is theWARNlevel with the specified Marker. TheMessageSuppliermay or may not use theMessageFactoryto construct theMessage. -
warn
public void warn(Marker marker, org.apache.logging.log4j.util.MessageSupplier messageSupplier, Throwable throwable) Description copied from interface:LoggerLogs a message (only to be constructed if the logging level is theWARNlevel) with the specified Marker and including the stack warn of theThrowablethrowablepassed as parameter. TheMessageSuppliermay or may not use theMessageFactoryto construct theMessage. -
warn
public void warn(org.apache.logging.log4j.util.MessageSupplier messageSupplier) Description copied from interface:LoggerLogs a message which is only to be constructed if the logging level is theWARNlevel. TheMessageSuppliermay or may not use theMessageFactoryto construct theMessage. -
warn
public void warn(org.apache.logging.log4j.util.MessageSupplier messageSupplier, Throwable throwable) Description copied from interface:LoggerLogs a message (only to be constructed if the logging level is theWARNlevel) including the stack warn of theThrowablethrowablepassed as parameter. TheMessageSuppliermay or may not use theMessageFactoryto construct theMessage. -
warn
Description copied from interface:LoggerLogs a message with parameters at warn level. -
warn
Description copied from interface:LoggerLogs a message with parameters at warn level. -
warn
Description copied from interface:LoggerLogs a message with parameters at warn level. -
warn
Description copied from interface:LoggerLogs a message with parameters at warn level.- Specified by:
warnin 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:LoggerLogs a message with parameters at warn level.- Specified by:
warnin 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:LoggerLogs a message with parameters at warn level.- Specified by:
warnin 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:LoggerLogs a message with parameters at warn level.- Specified by:
warnin 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:LoggerLogs a message with parameters at warn level.- Specified by:
warnin 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:LoggerLogs a message with parameters at warn level.- Specified by:
warnin 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:LoggerLogs a message with parameters at warn level.- Specified by:
warnin 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:LoggerLogs a message with parameters at warn level. -
warn
Description copied from interface:LoggerLogs a message with parameters at warn level. -
warn
Description copied from interface:LoggerLogs a message with parameters at warn level. -
warn
Description copied from interface:LoggerLogs a message with parameters at warn level. -
warn
Description copied from interface:LoggerLogs a message with parameters at warn level. -
warn
Description copied from interface:LoggerLogs a message with parameters at warn level.- Specified by:
warnin 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:LoggerLogs a message with parameters at warn level.- Specified by:
warnin 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:LoggerLogs a message with parameters at warn level.- Specified by:
warnin 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:LoggerLogs a message with parameters at warn level.- Specified by:
warnin 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:LoggerLogs a message with parameters at warn level.- Specified by:
warnin 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.
-
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.
-