Interface Logger
- All Known Subinterfaces:
- ExtendedLogger
- All Known Implementing Classes:
- AbstractLogger,- ExtendedLoggerWrapper,- SimpleLogger,- StatusLogger
 The canonical way to obtain a Logger for a class is through LogManager.getLogger(). Typically, each class
 gets its own Logger named after its fully qualified class name (the default Logger name when obtained through the
 LogManager.getLogger() method). Thus, the simplest way to use this would be like so:
 
 public class MyClass {
     private static final Logger LOGGER = LogManager.getLogger();
     // ...
 }
 
 
 For ease of filtering, searching, sorting, etc., it is generally a good idea to create Loggers for each class rather
 than sharing Loggers. Instead, Markers should be used for shared, filterable identification.
 
 For service provider implementations, it is recommended to extend the
 AbstractLogger class rather than implementing this interface directly.
 
Logger interface to support lambda expressions. The new methods
 allow client code to lazily log messages without explicitly checking if the requested log level is enabled. For
 example, previously one would write:
 
 // pre-Java 8 style optimization: explicitly check the log level
 // to make sure the expensiveOperation() method is only called if necessary
 if (logger.isTraceEnabled()) {
     logger.trace("Some long-running operation returned {}", expensiveOperation());
 }
 
 With Java 8, the same effect can be achieved with a lambda expression:
 // Java-8 style optimization: no need to explicitly check the log level:
 // the lambda expression is not evaluated if the TRACE level is not enabled
 logger.trace("Some long-running operation returned {}", () -> expensiveOperation());
 
 
 Note that although MessageSupplier is provided, using Supplier<Message> works just the
 same. MessageSupplier was deprecated in 2.6 and un-deprecated in 2.8.1. Anonymous class usage of these APIs
 should prefer using Supplier instead.
 
- 
Method SummaryModifier and TypeMethodDescriptiondefault LogBuilderalways()Construct a log event that will always be logged.default LogBuilderatDebug()Construct a trace log event.default LogBuilderatError()Construct a trace log event.default LogBuilderatFatal()Construct a trace log event.default LogBuilderatInfo()Construct a trace log event.default LogBuilderConstruct a log event.default LogBuilderatTrace()Construct a trace log event.default LogBuilderatWarn()Construct a trace log event.voidvoidLogs aThrowablethat has been caught to a specific logging level.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.voiddebug(Marker marker, MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theDEBUGlevel with the specified Marker.voiddebug(Marker marker, MessageSupplier messageSupplier, Throwable throwable) voidLogs a message which is only to be constructed if the logging level is theDEBUGlevel with the specified Marker.voidvoidLogs a message with the specific Marker at theDEBUGlevel.voidLogs a message with the specific Marker at theDEBUGlevel.voiddebug(MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theDEBUGlevel.voiddebug(MessageSupplier messageSupplier, Throwable throwable) voidLogs a message which is only to be constructed if the logging level is theDEBUGlevel.voidvoidentry()Deprecated.voidDeprecated.since 2.11.2, usetraceEntry(String, Object...)instead which performs the same function.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.voiderror(Marker marker, MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theERRORlevel with the specified Marker.voiderror(Marker marker, MessageSupplier messageSupplier, Throwable throwable) voidLogs a message which is only to be constructed if the logging level is theERRORlevel with the specified Marker.voidvoidLogs a message with the specific Marker at theERRORlevel.voidLogs a message with the specific Marker at theERRORlevel.voiderror(MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theERRORlevel.voiderror(MessageSupplier messageSupplier, Throwable throwable) voidLogs a message which is only to be constructed if the logging level is theERRORlevel.voidvoidexit()Deprecated.Since 2.6, usetraceExit()instead which performs the same function.<R> Rexit(R result) Deprecated.Since 2.6, usetraceExit(Object)instead which performs the same function.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.voidfatal(Marker marker, MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theFATALlevel with the specified Marker.voidfatal(Marker marker, MessageSupplier messageSupplier, Throwable throwable) voidLogs a message which is only to be constructed if the logging level is theFATALlevel with the specified Marker.voidvoidLogs a message with the specific Marker at theFATALlevel.voidLogs a message with the specific Marker at theFATALlevel.voidfatal(MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theFATALlevel.voidfatal(MessageSupplier messageSupplier, Throwable throwable) voidLogs 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.getLevel()Gets the Level associated with the Logger.<MF extends MessageFactory>
 MFGets the message factory used to convert message Objects and Strings/CharSequences into actual log Messages.getName()Gets the logger name.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.voidinfo(Marker marker, MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theINFOlevel with the specified Marker.voidinfo(Marker marker, 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(MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theINFOlevel.voidinfo(MessageSupplier messageSupplier, Throwable throwable) voidLogs 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.voidLogs 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.voidlog(Level level, Marker marker, MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is the specified level with the specified Marker.voidlog(Level level, Marker marker, MessageSupplier messageSupplier, Throwable throwable) Logs a message (only to be constructed if the logging level is the specified level) with the specified Marker and including the stack log of theThrowablethrowablepassed as parameter.voidLogs a message (only to be constructed if the logging level is the specified level) with the specified Marker.voidLogs 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.voidlog(Level level, MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is the specified level.voidlog(Level level, MessageSupplier messageSupplier, Throwable throwable) Logs a message (only to be constructed if the logging level is the specified level) including the stack log of 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.default 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.voidtrace(Marker marker, MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theTRACElevel with the specified Marker.voidtrace(Marker marker, MessageSupplier messageSupplier, Throwable throwable) voidLogs a message which is only to be constructed if the logging level is theTRACElevel with the specified Marker.voidvoidLogs a message with the specific Marker at theTRACElevel.voidLogs a message with the specific Marker at theTRACElevel.voidtrace(MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theTRACElevel.voidtrace(MessageSupplier messageSupplier, Throwable throwable) voidLogs 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, Supplier<?>... paramSuppliers) Logs entry to a method along with its parameters.traceEntry(Message message) Logs entry to a method using a Message to describe the parameters.traceEntry(Supplier<?>... paramSuppliers) Logs entry to a method along with its parameters.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.voidwarn(Marker marker, MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theWARNlevel with the specified Marker.voidwarn(Marker marker, 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(MessageSupplier messageSupplier) Logs a message which is only to be constructed if the logging level is theWARNlevel.voidwarn(MessageSupplier messageSupplier, Throwable throwable) voidLogs a message which is only to be constructed if the logging level is theWARNlevel.void
- 
Method Details- 
catchingLogs aThrowablethat has been caught to a specific logging level.- Parameters:
- level- The logging Level.
- throwable- the Throwable.
 
- 
catchingLogs 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.- Parameters:
- throwable- the Throwable.
 
- 
debugLogs a message with the specific Marker at theDEBUGlevel.- Parameters:
- marker- the marker data specific to this log statement
- message- the message string to be logged
 
- 
debugLogs a message with the specific Marker at theDEBUGlevel.- Parameters:
- marker- the marker data specific to this log statement
- message- the message string to be logged
- throwable- A Throwable or null.
 
- 
debugLogs 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.- Parameters:
- marker- the marker data specific to this log statement
- messageSupplier- A function, which when called, produces the desired log message.
- Since:
- 2.4
 
- 
debugLogs 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.- Parameters:
- marker- the marker data specific to this log statement
- messageSupplier- A function, which when called, produces the desired log message.
- throwable- A Throwable or null.
- Since:
- 2.4
 
- 
debugLogs a message CharSequence with theDEBUGlevel.- Parameters:
- marker- the marker data specific to this log statement
- message- the message CharSequence to log.
- Since:
- 2.6
 
- 
debugLogs a message CharSequence at theDEBUGlevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- marker- the marker data specific to this log statement
- message- the message CharSequence to log.
- throwable- the- Throwableto log, including its stack trace.
- Since:
- 2.6
 
- 
debugLogs a message object with theDEBUGlevel.- Parameters:
- marker- the marker data specific to this log statement
- message- the message object to log.
 
- 
debugLogs a message at theDEBUGlevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- marker- the marker data specific to this log statement
- message- the message to log.
- throwable- the- Throwableto log, including its stack trace.
 
- 
debugLogs a message object with theDEBUGlevel.- Parameters:
- marker- the marker data specific to this log statement
- message- the message object to log.
 
- 
debugLogs a message with parameters at theDEBUGlevel.- Parameters:
- marker- the marker data specific to this log statement
- message- the message to log; the format depends on the message factory.
- params- parameters to the message.
- See Also:
 
- 
debugLogs a message with parameters which are only to be constructed if the logging level is theDEBUGlevel.- Parameters:
- marker- the marker data specific to this log statement
- message- the message to log; the format depends on the message factory.
- paramSuppliers- An array of functions, which when called, produce the desired log message parameters.
- Since:
- 2.4
 
- 
debugLogs a message at theDEBUGlevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- marker- the marker data specific to this log statement
- message- the message to log.
- throwable- the- Throwableto log, including its stack trace.
 
- 
debugLogs a message which is only to be constructed if the logging level is theDEBUGlevel with the specified Marker.- Parameters:
- marker- the marker data specific to this log statement
- messageSupplier- A function, which when called, produces the desired log message; the format depends on the message factory.
- Since:
- 2.4
 
- 
debugLogs 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.- Parameters:
- marker- the marker data specific to this log statement
- messageSupplier- A function, which when called, produces the desired log message; the format depends on the message factory.
- throwable- A Throwable or null.
- Since:
- 2.4
 
- 
debugLogs a message with the specific Marker at theDEBUGlevel.- Parameters:
- message- the message string to be logged
 
- 
debugLogs a message with the specific Marker at theDEBUGlevel.- Parameters:
- message- the message string to be logged
- throwable- A Throwable or null.
 
- 
debugLogs a message which is only to be constructed if the logging level is theDEBUGlevel. TheMessageSuppliermay or may not use theMessageFactoryto construct theMessage.- Parameters:
- messageSupplier- A function, which when called, produces the desired log message.
- Since:
- 2.4
 
- 
debugLogs 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.- Parameters:
- messageSupplier- A function, which when called, produces the desired log message.
- throwable- the- Throwableto log, including its stack trace.
- Since:
- 2.4
 
- 
debugLogs a message CharSequence with theDEBUGlevel.- Parameters:
- message- the message object to log.
- Since:
- 2.6
 
- 
debugLogs a CharSequence at theDEBUGlevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- message- the message CharSequence to log.
- throwable- the- Throwableto log, including its stack trace.
- Since:
- 2.6
 
- 
debugLogs a message object with theDEBUGlevel.- Parameters:
- message- the message object to log.
 
- 
debugLogs a message at theDEBUGlevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- message- the message to log.
- throwable- the- Throwableto log, including its stack trace.
 
- 
debugLogs a message object with theDEBUGlevel.- Parameters:
- message- the message string to log.
 
- 
debugLogs a message with parameters at theDEBUGlevel.- Parameters:
- message- the message to log; the format depends on the message factory.
- params- parameters to the message.
- See Also:
 
- 
debugLogs a message with parameters which are only to be constructed if the logging level is theDEBUGlevel.- Parameters:
- message- the message to log; the format depends on the message factory.
- paramSuppliers- An array of functions, which when called, produce the desired log message parameters.
- Since:
- 2.4
 
- 
debugLogs a message at theDEBUGlevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- message- the message to log.
- throwable- the- Throwableto log, including its stack trace.
 
- 
debugLogs a message which is only to be constructed if the logging level is theDEBUGlevel.- Parameters:
- messageSupplier- A function, which when called, produces the desired log message; the format depends on the message factory.
- Since:
- 2.4
 
- 
debugLogs a message (only to be constructed if the logging level is theDEBUGlevel) including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- messageSupplier- A function, which when called, produces the desired log message; the format depends on the message factory.
- throwable- the- Throwableto log, including its stack trace.
- Since:
- 2.4
 
- 
debugLogs a message with parameters at debug level.- Parameters:
- marker- the marker data specific to this log statement
- message- the message to log; the format depends on the message factory.
- p0- parameter to the message.
- Since:
- 2.6
 
- 
debugLogs a message with parameters at debug level.- Parameters:
- marker- the marker data specific to this log statement
- message- the message to log; the format depends on the message factory.
- p0- parameter to the message.
- p1- parameter to the message.
- Since:
- 2.6
 
- 
debugLogs a message with parameters at debug level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
debugLogs a message with parameters at debug level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
debugLogs a message with parameters at debug level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
debugvoid debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at debug level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
debugvoid debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at debug level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
debugvoid debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at debug level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
debugvoid debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at debug level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
debugvoid debug(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at debug level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
debugLogs a message with parameters at debug level.- Parameters:
- message- the message to log; the format depends on the message factory.
- p0- parameter to the message.
- Since:
- 2.6
 
- 
debugLogs a message with parameters at debug level.- Parameters:
- message- the message to log; the format depends on the message factory.
- p0- parameter to the message.
- p1- parameter to the message.
- Since:
- 2.6
 
- 
debugLogs a message with parameters at debug level.- 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.
- Since:
- 2.6
 
- 
debugLogs a message with parameters at debug level.- 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.
- Since:
- 2.6
 
- 
debugLogs a message with parameters at debug level.- 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.
- Since:
- 2.6
 
- 
debugLogs a message with parameters at debug level.- 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.
- Since:
- 2.6
 
- 
debugvoid debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at debug level.- 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.
- Since:
- 2.6
 
- 
debugvoid debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at debug level.- 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.
- Since:
- 2.6
 
- 
debugvoid debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at debug level.- 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.
- Since:
- 2.6
 
- 
debugvoid debug(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at debug level.- 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.
- Since:
- 2.6
 
- 
entryDeprecated.Since 2.6, usetraceEntry()instead which performs the same function.Logs entry to a method. Used when the method in question has no parameters or when the parameters should not be logged.
- 
entryDeprecated.since 2.11.2, usetraceEntry(String, Object...)instead which performs the same function.Logs entry to a method along with its parameters (consider using one of thetraceEntry(...)methods instead.)For example: public void doSomething(String foo, int bar) { LOGGER.entry(foo, bar); // do something }The use of methods such as this are more effective when combined with aspect-oriented programming or other bytecode manipulation tools. It can be rather tedious (and messy) to use this type of method manually. - Parameters:
- params- The parameters to the method.
 
- 
errorLogs a message with the specific Marker at theERRORlevel.- Parameters:
- marker- the marker data specific to this log statement
- message- the message string to be logged
 
- 
errorLogs a message with the specific Marker at theERRORlevel.- Parameters:
- marker- the marker data specific to this log statement
- message- the message string to be logged
- throwable- A Throwable or null.
 
- 
errorLogs 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.- Parameters:
- marker- the marker data specific to this log statement
- messageSupplier- A function, which when called, produces the desired log message.
- Since:
- 2.4
 
- 
errorLogs 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.- Parameters:
- marker- the marker data specific to this log statement
- messageSupplier- A function, which when called, produces the desired log message.
- throwable- A Throwable or null.
- Since:
- 2.4
 
- 
errorLogs a message CharSequence with theERRORlevel.- Parameters:
- marker- the marker data specific to this log statement.
- message- the message CharSequence to log.
- Since:
- 2.6
 
- 
errorLogs a CharSequence at theERRORlevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- marker- the marker data specific to this log statement.
- message- the message CharSequence to log.
- throwable- the- Throwableto log, including its stack trace.
- Since:
- 2.6
 
- 
errorLogs a message object with theERRORlevel.- Parameters:
- marker- the marker data specific to this log statement.
- message- the message object to log.
 
- 
errorLogs a message at theERRORlevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- marker- the marker data specific to this log statement.
- message- the message object to log.
- throwable- the- Throwableto log, including its stack trace.
 
- 
errorLogs a message object with theERRORlevel.- Parameters:
- marker- the marker data specific to this log statement.
- message- the message object to log.
 
- 
errorLogs a message with parameters at theERRORlevel.- Parameters:
- marker- the marker data specific to this log statement.
- message- the message to log; the format depends on the message factory.
- params- parameters to the message.
- See Also:
 
- 
errorLogs a message with parameters which are only to be constructed if the logging level is theERRORlevel.- Parameters:
- marker- the marker data specific to this log statement
- message- the message to log; the format depends on the message factory.
- paramSuppliers- An array of functions, which when called, produce the desired log message parameters.
- Since:
- 2.4
 
- 
errorLogs a message at theERRORlevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- marker- the marker data specific to this log statement.
- message- the message object to log.
- throwable- the- Throwableto log, including its stack trace.
 
- 
errorLogs a message which is only to be constructed if the logging level is theERRORlevel with the specified Marker.- Parameters:
- marker- the marker data specific to this log statement
- messageSupplier- A function, which when called, produces the desired log message; the format depends on the message factory.
- Since:
- 2.4
 
- 
errorLogs 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.- Parameters:
- marker- the marker data specific to this log statement
- messageSupplier- A function, which when called, produces the desired log message; the format depends on the message factory.
- throwable- A Throwable or null.
- Since:
- 2.4
 
- 
errorLogs a message with the specific Marker at theERRORlevel.- Parameters:
- message- the message string to be logged
 
- 
errorLogs a message with the specific Marker at theERRORlevel.- Parameters:
- message- the message string to be logged
- throwable- A Throwable or null.
 
- 
errorLogs a message which is only to be constructed if the logging level is theERRORlevel. TheMessageSuppliermay or may not use theMessageFactoryto construct theMessage.- Parameters:
- messageSupplier- A function, which when called, produces the desired log message.
- Since:
- 2.4
 
- 
errorLogs 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.- Parameters:
- messageSupplier- A function, which when called, produces the desired log message.
- throwable- the- Throwableto log, including its stack trace.
- Since:
- 2.4
 
- 
errorLogs a message CharSequence with theERRORlevel.- Parameters:
- message- the message CharSequence to log.
- Since:
- 2.6
 
- 
errorLogs a CharSequence at theERRORlevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- message- the message CharSequence to log.
- throwable- the- Throwableto log, including its stack trace.
- Since:
- 2.6
 
- 
errorLogs a message object with theERRORlevel.- Parameters:
- message- the message object to log.
 
- 
errorLogs a message at theERRORlevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- message- the message object to log.
- throwable- the- Throwableto log, including its stack trace.
 
- 
errorLogs a message object with theERRORlevel.- Parameters:
- message- the message string to log.
 
- 
errorLogs a message with parameters at theERRORlevel.- Parameters:
- message- the message to log; the format depends on the message factory.
- params- parameters to the message.
- See Also:
 
- 
errorLogs a message with parameters which are only to be constructed if the logging level is theERRORlevel.- Parameters:
- message- the message to log; the format depends on the message factory.
- paramSuppliers- An array of functions, which when called, produce the desired log message parameters.
- Since:
- 2.4
 
- 
errorLogs a message at theERRORlevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- message- the message object to log.
- throwable- the- Throwableto log, including its stack trace.
 
- 
errorLogs a message which is only to be constructed if the logging level is theERRORlevel.- Parameters:
- messageSupplier- A function, which when called, produces the desired log message; the format depends on the message factory.
- Since:
- 2.4
 
- 
errorLogs a message (only to be constructed if the logging level is theERRORlevel) including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- messageSupplier- A function, which when called, produces the desired log message; the format depends on the message factory.
- throwable- the- Throwableto log, including its stack trace.
- Since:
- 2.4
 
- 
errorLogs a message with parameters at error level.- Parameters:
- marker- the marker data specific to this log statement
- message- the message to log; the format depends on the message factory.
- p0- parameter to the message.
- Since:
- 2.6
 
- 
errorLogs a message with parameters at error level.- Parameters:
- marker- the marker data specific to this log statement
- message- the message to log; the format depends on the message factory.
- p0- parameter to the message.
- p1- parameter to the message.
- Since:
- 2.6
 
- 
errorLogs a message with parameters at error level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
errorLogs a message with parameters at error level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
errorLogs a message with parameters at error level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
errorvoid error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at error level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
errorvoid error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at error level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
errorvoid error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at error level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
errorvoid error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at error level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
errorvoid error(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at error level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
errorLogs a message with parameters at error level.- Parameters:
- message- the message to log; the format depends on the message factory.
- p0- parameter to the message.
- Since:
- 2.6
 
- 
errorLogs a message with parameters at error level.- Parameters:
- message- the message to log; the format depends on the message factory.
- p0- parameter to the message.
- p1- parameter to the message.
- Since:
- 2.6
 
- 
errorLogs a message with parameters at error level.- 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.
- Since:
- 2.6
 
- 
errorLogs a message with parameters at error level.- 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.
- Since:
- 2.6
 
- 
errorLogs a message with parameters at error level.- 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.
- Since:
- 2.6
 
- 
errorLogs a message with parameters at error level.- 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.
- Since:
- 2.6
 
- 
errorvoid error(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at error level.- 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.
- Since:
- 2.6
 
- 
errorvoid error(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at error level.- 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.
- Since:
- 2.6
 
- 
errorvoid error(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at error level.- 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.
- Since:
- 2.6
 
- 
errorvoid error(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at error level.- 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.
- Since:
- 2.6
 
- 
exitDeprecated.Since 2.6, usetraceExit()instead which performs the same function.Logs exit from a method. Used for methods that do not return anything.
- 
exitDeprecated.Since 2.6, usetraceExit(Object)instead which performs the same function.Logs exiting from a method with the result. This may be coded as:return LOGGER.exit(myResult); - Type Parameters:
- R- The type of the parameter and object being returned.
- Parameters:
- result- The result being returned from the method call.
- Returns:
- the result.
 
- 
fatalLogs a message with the specific Marker at theFATALlevel.- Parameters:
- marker- the marker data specific to this log statement
- message- the message string to be logged
 
- 
fatalLogs a message with the specific Marker at theFATALlevel.- Parameters:
- marker- the marker data specific to this log statement
- message- the message string to be logged
- throwable- A Throwable or null.
 
- 
fatalLogs 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.- Parameters:
- marker- the marker data specific to this log statement
- messageSupplier- A function, which when called, produces the desired log message.
- Since:
- 2.4
 
- 
fatalLogs 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.- Parameters:
- marker- the marker data specific to this log statement
- messageSupplier- A function, which when called, produces the desired log message.
- throwable- A Throwable or null.
- Since:
- 2.4
 
- 
fatalLogs a message CharSequence with theFATALlevel.- Parameters:
- marker- The marker data specific to this log statement.
- message- the message CharSequence to log.
- Since:
- 2.6
 
- 
fatalLogs a CharSequence at theFATALlevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- marker- The marker data specific to this log statement.
- message- the message CharSequence to log.
- throwable- the- Throwableto log, including its stack trace.
- Since:
- 2.6
 
- 
fatalLogs a message object with theFATALlevel.- Parameters:
- marker- The marker data specific to this log statement.
- message- the message object to log.
 
- 
fatalLogs a message at theFATALlevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- marker- The marker data specific to this log statement.
- message- the message object to log.
- throwable- the- Throwableto log, including its stack trace.
 
- 
fatalLogs a message object with theFATALlevel.- Parameters:
- marker- The marker data specific to this log statement.
- message- the message object to log.
 
- 
fatalLogs a message with parameters at theFATALlevel.- Parameters:
- marker- The marker data specific to this log statement.
- message- the message to log; the format depends on the message factory.
- params- parameters to the message.
- See Also:
 
- 
fatalLogs a message with parameters which are only to be constructed if the logging level is theFATALlevel.- Parameters:
- marker- the marker data specific to this log statement
- message- the message to log; the format depends on the message factory.
- paramSuppliers- An array of functions, which when called, produce the desired log message parameters.
- Since:
- 2.4
 
- 
fatalLogs a message at theFATALlevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- marker- The marker data specific to this log statement.
- message- the message object to log.
- throwable- the- Throwableto log, including its stack trace.
 
- 
fatalLogs a message which is only to be constructed if the logging level is theFATALlevel with the specified Marker.- Parameters:
- marker- the marker data specific to this log statement
- messageSupplier- A function, which when called, produces the desired log message; the format depends on the message factory.
- Since:
- 2.4
 
- 
fatalLogs 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.- Parameters:
- marker- the marker data specific to this log statement
- messageSupplier- A function, which when called, produces the desired log message; the format depends on the message factory.
- throwable- A Throwable or null.
- Since:
- 2.4
 
- 
fatalLogs a message with the specific Marker at theFATALlevel.- Parameters:
- message- the message string to be logged
 
- 
fatalLogs a message with the specific Marker at theFATALlevel.- Parameters:
- message- the message string to be logged
- throwable- A Throwable or null.
 
- 
fatalLogs a message which is only to be constructed if the logging level is theFATALlevel. TheMessageSuppliermay or may not use theMessageFactoryto construct theMessage.- Parameters:
- messageSupplier- A function, which when called, produces the desired log message.
- Since:
- 2.4
 
- 
fatalLogs 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.- Parameters:
- messageSupplier- A function, which when called, produces the desired log message.
- throwable- the- Throwableto log, including its stack trace.
- Since:
- 2.4
 
- 
fatalLogs a message CharSequence with theFATALlevel.- Parameters:
- message- the message CharSequence to log.
- Since:
- 2.6
 
- 
fatalLogs a CharSequence at theFATALlevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- message- the message CharSequence to log.
- throwable- the- Throwableto log, including its stack trace.
- Since:
- 2.6
 
- 
fatalLogs a message object with theFATALlevel.- Parameters:
- message- the message object to log.
 
- 
fatalLogs a message at theFATALlevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- message- the message object to log.
- throwable- the- Throwableto log, including its stack trace.
 
- 
fatalLogs a message object with theFATALlevel.- Parameters:
- message- the message string to log.
 
- 
fatalLogs a message with parameters at theFATALlevel.- Parameters:
- message- the message to log; the format depends on the message factory.
- params- parameters to the message.
- See Also:
 
- 
fatalLogs a message with parameters which are only to be constructed if the logging level is theFATALlevel.- Parameters:
- message- the message to log; the format depends on the message factory.
- paramSuppliers- An array of functions, which when called, produce the desired log message parameters.
- Since:
- 2.4
 
- 
fatalLogs a message at theFATALlevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- message- the message object to log.
- throwable- the- Throwableto log, including its stack trace.
 
- 
fatalLogs a message which is only to be constructed if the logging level is theFATALlevel.- Parameters:
- messageSupplier- A function, which when called, produces the desired log message; the format depends on the message factory.
- Since:
- 2.4
 
- 
fatalLogs a message (only to be constructed if the logging level is theFATALlevel) including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- messageSupplier- A function, which when called, produces the desired log message; the format depends on the message factory.
- throwable- the- Throwableto log, including its stack trace.
- Since:
- 2.4
 
- 
fatalLogs a message with parameters at fatal level.- Parameters:
- marker- the marker data specific to this log statement
- message- the message to log; the format depends on the message factory.
- p0- parameter to the message.
- Since:
- 2.6
 
- 
fatalLogs a message with parameters at fatal level.- Parameters:
- marker- the marker data specific to this log statement
- message- the message to log; the format depends on the message factory.
- p0- parameter to the message.
- p1- parameter to the message.
- Since:
- 2.6
 
- 
fatalLogs a message with parameters at fatal level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
fatalLogs a message with parameters at fatal level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
fatalLogs a message with parameters at fatal level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
fatalvoid fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at fatal level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
fatalvoid fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at fatal level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
fatalvoid fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at fatal level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
fatalvoid fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at fatal level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
fatalvoid fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at fatal level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
fatalLogs a message with parameters at fatal level.- Parameters:
- message- the message to log; the format depends on the message factory.
- p0- parameter to the message.
- Since:
- 2.6
 
- 
fatalLogs a message with parameters at fatal level.- Parameters:
- message- the message to log; the format depends on the message factory.
- p0- parameter to the message.
- p1- parameter to the message.
- Since:
- 2.6
 
- 
fatalLogs a message with parameters at fatal level.- 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.
- Since:
- 2.6
 
- 
fatalLogs a message with parameters at fatal level.- 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.
- Since:
- 2.6
 
- 
fatalLogs a message with parameters at fatal level.- 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.
- Since:
- 2.6
 
- 
fatalLogs a message with parameters at fatal level.- 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.
- Since:
- 2.6
 
- 
fatalvoid fatal(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at fatal level.- 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.
- Since:
- 2.6
 
- 
fatalvoid fatal(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at fatal level.- 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.
- Since:
- 2.6
 
- 
fatalvoid fatal(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at fatal level.- 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.
- Since:
- 2.6
 
- 
fatalvoid fatal(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at fatal level.- 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.
- Since:
- 2.6
 
- 
getLevelLevel getLevel()Gets the Level associated with the Logger.- Returns:
- the Level associate with the Logger.
 
- 
getMessageFactoryGets the message factory used to convert message Objects and Strings/CharSequences into actual log Messages.Since version 2.6, Log4j internally uses message factories that implement the MessageFactory2interface. 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.- Returns:
- the message factory, as an instance of MessageFactory2
 
- 
getFlowMessageFactoryFlowMessageFactory getFlowMessageFactory()Gets the flow message factory used to convert messages into flow messages.- Returns:
- the flow message factory, as an instance of FlowMessageFactory.
- Since:
- 2.20.0
 
- 
getNameString getName()Gets the logger name.- Returns:
- the logger name.
 
- 
infoLogs a message with the specific Marker at theINFOlevel.- Parameters:
- marker- the marker data specific to this log statement
- message- the message string to be logged
 
- 
infoLogs a message with the specific Marker at theINFOlevel.- Parameters:
- marker- the marker data specific to this log statement
- message- the message string to be logged
- throwable- A Throwable or null.
 
- 
infoLogs 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.- Parameters:
- marker- the marker data specific to this log statement
- messageSupplier- A function, which when called, produces the desired log message.
- Since:
- 2.4
 
- 
infoLogs 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.- Parameters:
- marker- the marker data specific to this log statement
- messageSupplier- A function, which when called, produces the desired log message.
- throwable- A Throwable or null.
- Since:
- 2.4
 
- 
infoLogs a message CharSequence with theINFOlevel.- Parameters:
- marker- the marker data specific to this log statement
- message- the message CharSequence to log.
- Since:
- 2.6
 
- 
infoLogs a CharSequence at theINFOlevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- marker- the marker data specific to this log statement
- message- the message CharSequence to log.
- throwable- the- Throwableto log, including its stack trace.
- Since:
- 2.6
 
- 
infoLogs a message object with theINFOlevel.- Parameters:
- marker- the marker data specific to this log statement
- message- the message object to log.
 
- 
infoLogs a message at theINFOlevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- marker- the marker data specific to this log statement
- message- the message object to log.
- throwable- the- Throwableto log, including its stack trace.
 
- 
infoLogs a message object with theINFOlevel.- Parameters:
- marker- the marker data specific to this log statement
- message- the message object to log.
 
- 
infoLogs a message with parameters at theINFOlevel.- Parameters:
- marker- the marker data specific to this log statement
- message- the message to log; the format depends on the message factory.
- params- parameters to the message.
- See Also:
 
- 
infoLogs a message with parameters which are only to be constructed if the logging level is theINFOlevel.- Parameters:
- marker- the marker data specific to this log statement
- message- the message to log; the format depends on the message factory.
- paramSuppliers- An array of functions, which when called, produce the desired log message parameters.
- Since:
- 2.4
 
- 
infoLogs a message at theINFOlevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- marker- the marker data specific to this log statement
- message- the message object to log.
- throwable- the- Throwableto log, including its stack trace.
 
- 
infoLogs a message which is only to be constructed if the logging level is theINFOlevel with the specified Marker.- Parameters:
- marker- the marker data specific to this log statement
- messageSupplier- A function, which when called, produces the desired log message; the format depends on the message factory.
- Since:
- 2.4
 
- 
infoLogs 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.- Parameters:
- marker- the marker data specific to this log statement
- messageSupplier- A function, which when called, produces the desired log message; the format depends on the message factory.
- throwable- A Throwable or null.
- Since:
- 2.4
 
- 
infoLogs a message with the specific Marker at theINFOlevel.- Parameters:
- message- the message string to be logged
 
- 
infoLogs a message with the specific Marker at theINFOlevel.- Parameters:
- message- the message string to be logged
- throwable- A Throwable or null.
 
- 
infoLogs a message which is only to be constructed if the logging level is theINFOlevel. TheMessageSuppliermay or may not use theMessageFactoryto construct theMessage.- Parameters:
- messageSupplier- A function, which when called, produces the desired log message.
- Since:
- 2.4
 
- 
infoLogs 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.- Parameters:
- messageSupplier- A function, which when called, produces the desired log message.
- throwable- the- Throwableto log, including its stack trace.
- Since:
- 2.4
 
- 
infoLogs a message CharSequence with theINFOlevel.- Parameters:
- message- the message CharSequence to log.
 
- 
infoLogs a CharSequence at theINFOlevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- message- the message CharSequence to log.
- throwable- the- Throwableto log, including its stack trace.
 
- 
infoLogs a message object with theINFOlevel.- Parameters:
- message- the message object to log.
 
- 
infoLogs a message at theINFOlevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- message- the message object to log.
- throwable- the- Throwableto log, including its stack trace.
 
- 
infoLogs a message object with theINFOlevel.- Parameters:
- message- the message string to log.
 
- 
infoLogs a message with parameters at theINFOlevel.- Parameters:
- message- the message to log; the format depends on the message factory.
- params- parameters to the message.
- See Also:
 
- 
infoLogs a message with parameters which are only to be constructed if the logging level is theINFOlevel.- Parameters:
- message- the message to log; the format depends on the message factory.
- paramSuppliers- An array of functions, which when called, produce the desired log message parameters.
- Since:
- 2.4
 
- 
infoLogs a message at theINFOlevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- message- the message object to log.
- throwable- the- Throwableto log, including its stack trace.
 
- 
infoLogs a message which is only to be constructed if the logging level is theINFOlevel.- Parameters:
- messageSupplier- A function, which when called, produces the desired log message; the format depends on the message factory.
- Since:
- 2.4
 
- 
infoLogs a message (only to be constructed if the logging level is theINFOlevel) including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- messageSupplier- A function, which when called, produces the desired log message; the format depends on the message factory.
- throwable- the- Throwableto log, including its stack trace.
- Since:
- 2.4
 
- 
infoLogs a message with parameters at info level.- Parameters:
- marker- the marker data specific to this log statement
- message- the message to log; the format depends on the message factory.
- p0- parameter to the message.
- Since:
- 2.6
 
- 
infoLogs a message with parameters at info level.- Parameters:
- marker- the marker data specific to this log statement
- message- the message to log; the format depends on the message factory.
- p0- parameter to the message.
- p1- parameter to the message.
- Since:
- 2.6
 
- 
infoLogs a message with parameters at info level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
infoLogs a message with parameters at info level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
infoLogs a message with parameters at info level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
infovoid info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at info level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
infovoid info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at info level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
infovoid info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at info level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
infovoid info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at info level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
infovoid info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at info level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
infoLogs a message with parameters at info level.- Parameters:
- message- the message to log; the format depends on the message factory.
- p0- parameter to the message.
- Since:
- 2.6
 
- 
infoLogs a message with parameters at info level.- Parameters:
- message- the message to log; the format depends on the message factory.
- p0- parameter to the message.
- p1- parameter to the message.
- Since:
- 2.6
 
- 
infoLogs a message with parameters at info level.- 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.
- Since:
- 2.6
 
- 
infoLogs a message with parameters at info level.- 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.
- Since:
- 2.6
 
- 
infoLogs a message with parameters at info level.- 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.
- Since:
- 2.6
 
- 
infoLogs a message with parameters at info level.- 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.
- Since:
- 2.6
 
- 
infovoid info(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at info level.- 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.
- Since:
- 2.6
 
- 
infovoid info(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at info level.- 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.
- Since:
- 2.6
 
- 
infovoid info(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at info level.- 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.
- Since:
- 2.6
 
- 
infovoid info(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at info level.- 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.
- Since:
- 2.6
 
- 
isDebugEnabledboolean isDebugEnabled()Checks whether this Logger is enabled for theDEBUGLevel.- Returns:
- boolean - trueif this Logger is enabled for level DEBUG,falseotherwise.
 
- 
isDebugEnabledChecks whether this Logger is enabled for theDEBUGLevel.- Parameters:
- marker- The Marker to check
- Returns:
- boolean - trueif this Logger is enabled for level DEBUG,falseotherwise.
 
- 
isEnabledChecks whether this Logger is enabled for the given Level.Note that passing in OFFalways returnstrue.- Parameters:
- level- the Level to check
- Returns:
- boolean - trueif this Logger is enabled for level,falseotherwise.
 
- 
isEnabledChecks whether this Logger is enabled for the given Level and Marker.- Parameters:
- level- The Level to check
- marker- The Marker to check
- Returns:
- boolean - trueif this Logger is enabled for level and marker,falseotherwise.
 
- 
isErrorEnabledboolean isErrorEnabled()Checks whether this Logger is enabled for theERRORLevel.- Returns:
- boolean - trueif this Logger is enabled for levelERROR,falseotherwise.
 
- 
isErrorEnabledChecks whether this Logger is enabled for theERRORLevel.- Parameters:
- marker- The Marker to check
- Returns:
- boolean - trueif this Logger is enabled for levelERROR,falseotherwise.
 
- 
isFatalEnabledboolean isFatalEnabled()Checks whether this Logger is enabled for theFATALLevel.- Returns:
- boolean - trueif this Logger is enabled for levelFATAL,falseotherwise.
 
- 
isFatalEnabledChecks whether this Logger is enabled for theFATALLevel.- Parameters:
- marker- The Marker to check
- Returns:
- boolean - trueif this Logger is enabled for levelFATAL,falseotherwise.
 
- 
isInfoEnabledboolean isInfoEnabled()Checks whether this Logger is enabled for theINFOLevel.- Returns:
- boolean - trueif this Logger is enabled for level INFO,falseotherwise.
 
- 
isInfoEnabledChecks whether this Logger is enabled for theINFOLevel.- Parameters:
- marker- The Marker to check
- Returns:
- boolean - trueif this Logger is enabled for level INFO,falseotherwise.
 
- 
isTraceEnabledboolean isTraceEnabled()Checks whether this Logger is enabled for theTRACElevel.- Returns:
- boolean - trueif this Logger is enabled for level TRACE,falseotherwise.
 
- 
isTraceEnabledChecks whether this Logger is enabled for theTRACElevel.- Parameters:
- marker- The Marker to check
- Returns:
- boolean - trueif this Logger is enabled for level TRACE,falseotherwise.
 
- 
isWarnEnabledboolean isWarnEnabled()Checks whether this Logger is enabled for theWARNLevel.- Returns:
- boolean - trueif this Logger is enabled for levelWARN,falseotherwise.
 
- 
isWarnEnabledChecks whether this Logger is enabled for theWARNLevel.- Parameters:
- marker- The Marker to check
- Returns:
- boolean - trueif this Logger is enabled for levelWARN,falseotherwise.
 
- 
logLogs a message with the specific Marker at the given level.- Parameters:
- level- the logging level
- marker- the marker data specific to this log statement
- message- the message string to be logged
 
- 
logLogs a message with the specific Marker at the given level.- Parameters:
- level- the logging level
- marker- the marker data specific to this log statement
- message- the message string to be logged
- throwable- A Throwable or null.
 
- 
logLogs 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.- Parameters:
- level- the logging level
- marker- the marker data specific to this log statement
- messageSupplier- A function, which when called, produces the desired log message.
- Since:
- 2.4
 
- 
logLogs 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.- Parameters:
- level- the logging level
- marker- the marker data specific to this log statement
- messageSupplier- A function, which when called, produces the desired log message.
- throwable- A Throwable or null.
- Since:
- 2.4
 
- 
logLogs a message CharSequence with the given level.- Parameters:
- level- the logging level
- marker- the marker data specific to this log statement
- message- the message CharSequence to log.
- Since:
- 2.6
 
- 
logLogs a CharSequence at the given level including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- level- the logging level
- marker- the marker data specific to this log statement
- message- the message CharSequence to log.
- throwable- the- Throwableto log, including its stack trace.
- Since:
- 2.6
 
- 
logLogs a message object with the given level.- Parameters:
- level- the logging level
- marker- the marker data specific to this log statement
- message- the message object to log.
 
- 
logLogs a message at the given level including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- level- the logging level
- marker- the marker data specific to this log statement
- message- the message to log.
- throwable- the- Throwableto log, including its stack trace.
 
- 
logLogs a message object with the given level.- Parameters:
- level- the logging level
- marker- the marker data specific to this log statement
- message- the message object to log.
 
- 
logLogs a message with parameters at the given level.- Parameters:
- level- the logging level
- marker- the marker data specific to this log statement
- message- the message to log; the format depends on the message factory.
- params- parameters to the message.
- See Also:
 
- 
logLogs a message with parameters which are only to be constructed if the logging level is the specified level.- Parameters:
- level- the logging level
- marker- the marker data specific to this log statement
- message- the message to log; the format depends on the message factory.
- paramSuppliers- An array of functions, which when called, produce the desired log message parameters.
- Since:
- 2.4
 
- 
logLogs a message at the given level including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- level- the logging level
- marker- the marker data specific to this log statement
- message- the message to log.
- throwable- the- Throwableto log, including its stack trace.
 
- 
logLogs a message (only to be constructed if the logging level is the specified level) with the specified Marker.- Parameters:
- level- the logging level
- marker- the marker data specific to this log statement
- messageSupplier- A function, which when called, produces the desired log message; the format depends on the message factory.
- Since:
- 2.4
 
- 
logLogs 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.- Parameters:
- level- the logging level
- marker- the marker data specific to this log statement
- messageSupplier- A function, which when called, produces the desired log message; the format depends on the message factory.
- throwable- A Throwable or null.
- Since:
- 2.4
 
- 
logLogs a message with the specific Marker at the given level.- Parameters:
- level- the logging level
- message- the message string to be logged
 
- 
logLogs a message with the specific Marker at the given level.- Parameters:
- level- the logging level
- message- the message string to be logged
- throwable- A Throwable or null.
 
- 
logLogs a message which is only to be constructed if the logging level is the specified level. TheMessageSuppliermay or may not use theMessageFactoryto construct theMessage.- Parameters:
- level- the logging level
- messageSupplier- A function, which when called, produces the desired log message.
- Since:
- 2.4
 
- 
logLogs 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.- Parameters:
- level- the logging level
- messageSupplier- A function, which when called, produces the desired log message.
- throwable- the- Throwableto log, including its stack log.
- Since:
- 2.4
 
- 
logLogs a message CharSequence with the given level.- Parameters:
- level- the logging level
- message- the message CharSequence to log.
- Since:
- 2.6
 
- 
logLogs a CharSequence at the given level including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- level- the logging level
- message- the message CharSequence to log.
- throwable- the- Throwableto log, including its stack trace.
- Since:
- 2.6
 
- 
logLogs a message object with the given level.- Parameters:
- level- the logging level
- message- the message object to log.
 
- 
logLogs a message at the given level including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- level- the logging level
- message- the message to log.
- throwable- the- Throwableto log, including its stack trace.
 
- 
logLogs a message object with the given level.- Parameters:
- level- the logging level
- message- the message string to log.
 
- 
logLogs a message with parameters at the given level.- Parameters:
- level- the logging level
- message- the message to log; the format depends on the message factory.
- params- parameters to the message.
- See Also:
 
- 
logLogs a message with parameters which are only to be constructed if the logging level is the specified level.- Parameters:
- level- the logging level
- message- the message to log; the format depends on the message factory.
- paramSuppliers- An array of functions, which when called, produce the desired log message parameters.
- Since:
- 2.4
 
- 
logLogs a message at the given level including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- level- the logging level
- message- the message to log.
- throwable- the- Throwableto log, including its stack trace.
 
- 
logLogs a message which is only to be constructed if the logging level is the specified level.- Parameters:
- level- the logging level
- messageSupplier- A function, which when called, produces the desired log message; the format depends on the message factory.
- Since:
- 2.4
 
- 
logLogs a message (only to be constructed if the logging level is the specified level) including the stack log of theThrowablethrowablepassed as parameter.- Parameters:
- level- the logging level
- messageSupplier- A function, which when called, produces the desired log message; the format depends on the message factory.
- throwable- the- Throwableto log, including its stack log.
- Since:
- 2.4
 
- 
logLogs a message with parameters at the specified level.- Parameters:
- level- the logging level
- marker- the marker data specific to this log statement
- message- the message to log; the format depends on the message factory.
- p0- parameter to the message.
- Since:
- 2.6
 
- 
logLogs a message with parameters at the specified level.- Parameters:
- level- the logging level
- marker- the marker data specific to this log statement
- message- the message to log; the format depends on the message factory.
- p0- parameter to the message.
- p1- parameter to the message.
- Since:
- 2.6
 
- 
logLogs a message with parameters at the specified level.- Parameters:
- level- the logging level
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
logLogs a message with parameters at the specified level.- Parameters:
- level- the logging level
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
logvoid log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4) Logs a message with parameters at the specified level.- Parameters:
- level- the logging level
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
logvoid log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at the specified level.- Parameters:
- level- the logging level
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
logvoid log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at the specified level.- Parameters:
- level- the logging level
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
logvoid log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at the specified level.- Parameters:
- level- the logging level
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
logvoid log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at the specified level.- Parameters:
- level- the logging level
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
logvoid log(Level level, Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at the specified level.- Parameters:
- level- the logging level
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
logLogs a message with parameters at the specified level.- Parameters:
- level- the logging level
- message- the message to log; the format depends on the message factory.
- p0- parameter to the message.
- Since:
- 2.6
 
- 
logLogs a message with parameters at the specified level.- Parameters:
- level- the logging level
- message- the message to log; the format depends on the message factory.
- p0- parameter to the message.
- p1- parameter to the message.
- Since:
- 2.6
 
- 
logLogs a message with parameters at the specified level.- Parameters:
- level- the logging level
- 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.
- Since:
- 2.6
 
- 
logLogs a message with parameters at the specified level.- Parameters:
- level- the logging level
- 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.
- Since:
- 2.6
 
- 
logLogs a message with parameters at the specified level.- Parameters:
- level- the logging level
- 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.
- Since:
- 2.6
 
- 
logvoid log(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at the specified level.- Parameters:
- level- the logging level
- 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.
- Since:
- 2.6
 
- 
logvoid log(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at the specified level.- Parameters:
- level- the logging level
- 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.
- Since:
- 2.6
 
- 
logvoid log(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at the specified level.- Parameters:
- level- the logging level
- 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.
- Since:
- 2.6
 
- 
logvoid log(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at the specified level.- Parameters:
- level- the logging level
- 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.
- Since:
- 2.6
 
- 
logvoid log(Level level, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at the specified level.- Parameters:
- level- the logging level
- 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.
- Since:
- 2.6
 
- 
printfLogs a formatted message using the specified format string and arguments.- Parameters:
- level- The logging Level.
- marker- the marker data specific to this log statement.
- format- The format String.
- params- Arguments specified by the format.
 
- 
printfLogs a formatted message using the specified format string and arguments.- Parameters:
- level- The logging Level.
- format- The format String.
- params- Arguments specified by the format.
 
- 
throwingLogs aThrowableto be thrown. This may be coded as:throw logger.throwing(Level.DEBUG, myException); - Type Parameters:
- T- the Throwable type.
- Parameters:
- level- The logging Level.
- throwable- The Throwable.
- Returns:
- the Throwable.
 
- 
throwingLogs aThrowableto be thrown at theERRORlevel. This may be coded as:throw logger.throwing(myException); - Type Parameters:
- T- the Throwable type.
- Parameters:
- throwable- The Throwable.
- Returns:
- the Throwable.
 
- 
traceLogs a message with the specific Marker at theTRACElevel.- Parameters:
- marker- the marker data specific to this log statement
- message- the message string to be logged
 
- 
traceLogs a message with the specific Marker at theTRACElevel.- Parameters:
- marker- the marker data specific to this log statement
- message- the message string to be logged
- throwable- A Throwable or null.
 
- 
traceLogs 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.- Parameters:
- marker- the marker data specific to this log statement
- messageSupplier- A function, which when called, produces the desired log message.
- Since:
- 2.4
 
- 
traceLogs 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.- Parameters:
- marker- the marker data specific to this log statement
- messageSupplier- A function, which when called, produces the desired log message.
- throwable- A Throwable or null.
- Since:
- 2.4
 
- 
traceLogs a message CharSequence with theTRACElevel.- Parameters:
- marker- the marker data specific to this log statement
- message- the message CharSequence to log.
- Since:
- 2.6
 
- 
traceLogs a CharSequence at theTRACElevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- marker- the marker data specific to this log statement
- message- the message CharSequence to log.
- throwable- the- Throwableto log, including its stack trace.
- Since:
- 2.6
- See Also:
 
- 
traceLogs a message object with theTRACElevel.- Parameters:
- marker- the marker data specific to this log statement
- message- the message object to log.
 
- 
traceLogs a message at theTRACElevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- marker- the marker data specific to this log statement
- message- the message object to log.
- throwable- the- Throwableto log, including its stack trace.
- See Also:
 
- 
traceLogs a message object with theTRACElevel.- Parameters:
- marker- the marker data specific to this log statement
- message- the message string to log.
 
- 
traceLogs a message with parameters at theTRACElevel.- Parameters:
- marker- the marker data specific to this log statement
- message- the message to log; the format depends on the message factory.
- params- parameters to the message.
- See Also:
 
- 
traceLogs a message with parameters which are only to be constructed if the logging level is theTRACElevel.- Parameters:
- marker- the marker data specific to this log statement
- message- the message to log; the format depends on the message factory.
- paramSuppliers- An array of functions, which when called, produce the desired log message parameters.
- Since:
- 2.4
 
- 
traceLogs a message at theTRACElevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- marker- the marker data specific to this log statement
- message- the message object to log.
- throwable- the- Throwableto log, including its stack trace.
- See Also:
 
- 
traceLogs a message which is only to be constructed if the logging level is theTRACElevel with the specified Marker.- Parameters:
- marker- the marker data specific to this log statement
- messageSupplier- A function, which when called, produces the desired log message; the format depends on the message factory.
- Since:
- 2.4
 
- 
traceLogs 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.- Parameters:
- marker- the marker data specific to this log statement
- messageSupplier- A function, which when called, produces the desired log message; the format depends on the message factory.
- throwable- A Throwable or null.
- Since:
- 2.4
 
- 
traceLogs a message with the specific Marker at theTRACElevel.- Parameters:
- message- the message string to be logged
 
- 
traceLogs a message with the specific Marker at theTRACElevel.- Parameters:
- message- the message string to be logged
- throwable- A Throwable or null.
 
- 
traceLogs a message which is only to be constructed if the logging level is theTRACElevel. TheMessageSuppliermay or may not use theMessageFactoryto construct theMessage.- Parameters:
- messageSupplier- A function, which when called, produces the desired log message.
- Since:
- 2.4
 
- 
traceLogs 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.- Parameters:
- messageSupplier- A function, which when called, produces the desired log message.
- throwable- the- Throwableto log, including its stack trace.
- Since:
- 2.4
 
- 
traceLogs a message CharSequence with theTRACElevel.- Parameters:
- message- the message CharSequence to log.
 
- 
traceLogs a CharSequence at theTRACElevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- message- the message CharSequence to log.
- throwable- the- Throwableto log, including its stack trace.
- See Also:
 
- 
traceLogs a message object with theTRACElevel.- Parameters:
- message- the message object to log.
 
- 
traceLogs a message at theTRACElevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- message- the message object to log.
- throwable- the- Throwableto log, including its stack trace.
- See Also:
 
- 
traceLogs a message object with theTRACElevel.- Parameters:
- message- the message string to log.
 
- 
traceLogs a message with parameters at theTRACElevel.- Parameters:
- message- the message to log; the format depends on the message factory.
- params- parameters to the message.
- See Also:
 
- 
traceLogs a message with parameters which are only to be constructed if the logging level is theTRACElevel.- Parameters:
- message- the message to log; the format depends on the message factory.
- paramSuppliers- An array of functions, which when called, produce the desired log message parameters.
- Since:
- 2.4
 
- 
traceLogs a message at theTRACElevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- message- the message object to log.
- throwable- the- Throwableto log, including its stack trace.
- See Also:
 
- 
traceLogs a message which is only to be constructed if the logging level is theTRACElevel.- Parameters:
- messageSupplier- A function, which when called, produces the desired log message; the format depends on the message factory.
- Since:
- 2.4
 
- 
traceLogs a message (only to be constructed if the logging level is theTRACElevel) including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- messageSupplier- A function, which when called, produces the desired log message; the format depends on the message factory.
- throwable- the- Throwableto log, including its stack trace.
- Since:
- 2.4
 
- 
traceLogs a message with parameters at trace level.- Parameters:
- marker- the marker data specific to this log statement
- message- the message to log; the format depends on the message factory.
- p0- parameter to the message.
- Since:
- 2.6
 
- 
traceLogs a message with parameters at trace level.- Parameters:
- marker- the marker data specific to this log statement
- message- the message to log; the format depends on the message factory.
- p0- parameter to the message.
- p1- parameter to the message.
- Since:
- 2.6
 
- 
traceLogs a message with parameters at trace level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
traceLogs a message with parameters at trace level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
traceLogs a message with parameters at trace level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
tracevoid trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at trace level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
tracevoid trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at trace level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
tracevoid trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at trace level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
tracevoid trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at trace level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
tracevoid trace(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at trace level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
- Since:
- 2.6
 
- 
traceLogs a message with parameters at trace level.- Parameters:
- message- the message to log; the format depends on the message factory.
- p0- parameter to the message.
- Since:
- 2.6
 
- 
traceLogs a message with parameters at trace level.- Parameters:
- message- the message to log; the format depends on the message factory.
- p0- parameter to the message.
- p1- parameter to the message.
- Since:
- 2.6
 
- 
traceLogs a message with parameters at trace level.- 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.
- Since:
- 2.6
 
- 
traceLogs a message with parameters at trace level.- 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.
- Since:
- 2.6
 
- 
traceLogs a message with parameters at trace level.- 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.
- Since:
- 2.6
 
- 
traceLogs a message with parameters at trace level.- 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.
- Since:
- 2.6
 
- 
tracevoid trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at trace level.- 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.
- Since:
- 2.6
 
- 
tracevoid trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at trace level.- 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.
- Since:
- 2.6
 
- 
tracevoid trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at trace level.- 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.
- Since:
- 2.6
 
- 
tracevoid trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at trace level.- 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.
- Since:
- 2.6
 
- 
traceEntryEntryMessage traceEntry()Logs entry to a method. Used when the method in question has no parameters or when the parameters should not be logged.- Returns:
- built message
- Since:
- 2.6
 
- 
traceEntryLogs 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); }- Parameters:
- format- The format String for the parameters.
- params- The parameters to the method.
- Returns:
- The built Message
- Since:
- 2.6
 
- 
traceEntryLogs entry to a method along with its parameters. For example,public void doSomething(Request foo) { LOGGER.traceEntry(()->gson.toJson(foo)); // do something }- Parameters:
- paramSuppliers- The Suppliers for the parameters to the method.
- Returns:
- built message
- Since:
- 2.6
 
- 
traceEntryLogs 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 }- Parameters:
- format- The format String for the parameters.
- paramSuppliers- The Suppliers for the parameters to the method.
- Returns:
- built message
- Since:
- 2.6
 
- 
traceEntryLogs 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.- Parameters:
- message- The message. Avoid specifying a ReusableMessage, use immutable messages instead.
- Returns:
- the built message
- Since:
- 2.6
- See Also:
 
- 
traceExitvoid traceExit()Logs exit from a method. Used for methods that do not return anything.- Since:
- 2.6
 
- 
traceExit<R> R traceExit(R result) Logs exiting from a method with the result. This may be coded as:return LOGGER.traceExit(myResult); - Type Parameters:
- R- The type of the parameter and object being returned.
- Parameters:
- result- The result being returned from the method call.
- Returns:
- the result.
- Since:
- 2.6
 
- 
traceExitLogs exiting from a method with the result. This may be coded as:return LOGGER.traceExit("Result: {}", myResult);- Type Parameters:
- R- The type of the parameter and object being returned.
- Parameters:
- format- The format String for the result.
- result- The result being returned from the method call.
- Returns:
- the result.
- Since:
- 2.6
 
- 
traceExitLogs 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); }- Parameters:
- message- The Message containing the formatted result.
- Since:
- 2.6
 
- 
traceExitLogs 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); }- Type Parameters:
- R- The type of the parameter and object being returned.
- Parameters:
- message- The Message containing the formatted result.
- result- The result being returned from the method call.
- Returns:
- the result.
- Since:
- 2.6
 
- 
traceExitLogs 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); - Type Parameters:
- R- The type of the parameter and object being returned.
- Parameters:
- message- The Message containing the formatted result.
- result- The result being returned from the method call.
- Returns:
- the result.
- Since:
- 2.6
 
- 
warnLogs a message with the specific Marker at theWARNlevel.- Parameters:
- marker- the marker data specific to this log statement
- message- the message string to be logged
 
- 
warnLogs a message with the specific Marker at theWARNlevel.- Parameters:
- marker- the marker data specific to this log statement
- message- the message string to be logged
- throwable- A Throwable or null.
 
- 
warnLogs 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.- Parameters:
- marker- the marker data specific to this log statement
- messageSupplier- A function, which when called, produces the desired log message.
- Since:
- 2.4
 
- 
warnLogs 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.- Parameters:
- marker- the marker data specific to this log statement
- messageSupplier- A function, which when called, produces the desired log message.
- throwable- A Throwable or null.
- Since:
- 2.4
 
- 
warnLogs a message CharSequence with theWARNlevel.- Parameters:
- marker- the marker data specific to this log statement
- message- the message CharSequence to log.
- Since:
- 2.6
 
- 
warnLogs a CharSequence at theWARNlevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- marker- the marker data specific to this log statement
- message- the message CharSequence to log.
- throwable- the- Throwableto log, including its stack trace.
- Since:
- 2.6
 
- 
warnLogs a message object with theWARNlevel.- Parameters:
- marker- the marker data specific to this log statement
- message- the message object to log.
 
- 
warnLogs a message at theWARNlevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- marker- the marker data specific to this log statement
- message- the message object to log.
- throwable- the- Throwableto log, including its stack trace.
 
- 
warnLogs a message object with theWARNlevel.- Parameters:
- marker- the marker data specific to this log statement
- message- the message object to log.
 
- 
warnLogs a message with parameters at theWARNlevel.- Parameters:
- marker- the marker data specific to this log statement.
- message- the message to log; the format depends on the message factory.
- params- parameters to the message.
- See Also:
 
- 
warnLogs a message with parameters which are only to be constructed if the logging level is theWARNlevel.- Parameters:
- marker- the marker data specific to this log statement
- message- the message to log; the format depends on the message factory.
- paramSuppliers- An array of functions, which when called, produce the desired log message parameters.
- Since:
- 2.4
 
- 
warnLogs a message at theWARNlevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- marker- the marker data specific to this log statement
- message- the message object to log.
- throwable- the- Throwableto log, including its stack trace.
 
- 
warnLogs a message which is only to be constructed if the logging level is theWARNlevel with the specified Marker.- Parameters:
- marker- the marker data specific to this log statement
- messageSupplier- A function, which when called, produces the desired log message; the format depends on the message factory.
- Since:
- 2.4
 
- 
warnLogs 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.- Parameters:
- marker- the marker data specific to this log statement
- messageSupplier- A function, which when called, produces the desired log message; the format depends on the message factory.
- throwable- A Throwable or null.
- Since:
- 2.4
 
- 
warnLogs a message with the specific Marker at theWARNlevel.- Parameters:
- message- the message string to be logged
 
- 
warnLogs a message with the specific Marker at theWARNlevel.- Parameters:
- message- the message string to be logged
- throwable- A Throwable or null.
 
- 
warnLogs a message which is only to be constructed if the logging level is theWARNlevel. TheMessageSuppliermay or may not use theMessageFactoryto construct theMessage.- Parameters:
- messageSupplier- A function, which when called, produces the desired log message.
- Since:
- 2.4
 
- 
warnLogs 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.- Parameters:
- messageSupplier- A function, which when called, produces the desired log message.
- throwable- the- Throwableto log, including its stack warn.
- Since:
- 2.4
 
- 
warnLogs a message CharSequence with theWARNlevel.- Parameters:
- message- the message CharSequence to log.
- Since:
- 2.6
 
- 
warnLogs a CharSequence at theWARNlevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- message- the message CharSequence to log.
- throwable- the- Throwableto log, including its stack trace.
- Since:
- 2.6
 
- 
warnLogs a message object with theWARNlevel.- Parameters:
- message- the message object to log.
 
- 
warnLogs a message at theWARNlevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- message- the message object to log.
- throwable- the- Throwableto log, including its stack trace.
 
- 
warnLogs a message object with theWARNlevel.- Parameters:
- message- the message string to log.
 
- 
warnLogs a message with parameters at theWARNlevel.- Parameters:
- message- the message to log; the format depends on the message factory.
- params- parameters to the message.
- See Also:
 
- 
warnLogs a message with parameters which are only to be constructed if the logging level is theWARNlevel.- Parameters:
- message- the message to log; the format depends on the message factory.
- paramSuppliers- An array of functions, which when called, produce the desired log message parameters.
- Since:
- 2.4
 
- 
warnLogs a message at theWARNlevel including the stack trace of theThrowablethrowablepassed as parameter.- Parameters:
- message- the message object to log.
- throwable- the- Throwableto log, including its stack trace.
 
- 
warnLogs a message which is only to be constructed if the logging level is theWARNlevel.- Parameters:
- messageSupplier- A function, which when called, produces the desired log message; the format depends on the message factory.
- Since:
- 2.4
 
- 
warnLogs a message (only to be constructed if the logging level is theWARNlevel) including the stack warn of theThrowablethrowablepassed as parameter.- Parameters:
- messageSupplier- A function, which when called, produces the desired log message; the format depends on the message factory.
- throwable- the- Throwableto log, including its stack warn.
- Since:
- 2.4
 
- 
warnLogs a message with parameters at warn level.- Parameters:
- marker- the marker data specific to this log statement
- message- the message to log; the format depends on the message factory.
- p0- parameter to the message.
 
- 
warnLogs a message with parameters at warn level.- Parameters:
- marker- the marker data specific to this log statement
- message- the message to log; the format depends on the message factory.
- p0- parameter to the message.
- p1- parameter to the message.
 
- 
warnLogs a message with parameters at warn level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
 
- 
warnLogs a message with parameters at warn level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
 
- 
warnLogs a message with parameters at warn level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
 
- 
warnvoid warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5) Logs a message with parameters at warn level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
 
- 
warnvoid warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at warn level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
 
- 
warnvoid warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at warn level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
 
- 
warnvoid warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at warn level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
 
- 
warnvoid warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at warn level.- Parameters:
- marker- the marker data specific to this log statement
- 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.
 
- 
warnLogs a message with parameters at warn level.- Parameters:
- message- the message to log; the format depends on the message factory.
- p0- parameter to the message.
 
- 
warnLogs a message with parameters at warn level.- Parameters:
- message- the message to log; the format depends on the message factory.
- p0- parameter to the message.
- p1- parameter to the message.
 
- 
warnLogs a message with parameters at warn level.- 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.
 
- 
warnLogs a message with parameters at warn level.- 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.
 
- 
warnLogs a message with parameters at warn level.- 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.
 
- 
warnLogs a message with parameters at warn level.- 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.
 
- 
warnvoid warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6) Logs a message with parameters at warn level.- 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.
 
- 
warnvoid warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7) Logs a message with parameters at warn level.- 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.
 
- 
warnvoid warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8) Logs a message with parameters at warn level.- 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.
 
- 
warnvoid warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) Logs a message with parameters at warn level.- 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.
 
- 
logMessagedefault void logMessage(Level level, Marker marker, String fqcn, StackTraceElement location, Message message, Throwable throwable) Logs a Message.- 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- the- Throwableto log, including its stack trace.
- Since:
- 2.13.0
 
- 
atTraceConstruct a trace log event.- Returns:
- a LogBuilder.
- Since:
- 2.13.0
 
- 
atDebugConstruct a trace log event.- Returns:
- a LogBuilder.
- Since:
- 2.13.0
 
- 
atInfoConstruct a trace log event.- Returns:
- a LogBuilder.
- Since:
- 2.13.0
 
- 
atWarnConstruct a trace log event.- Returns:
- a LogBuilder.
- Since:
- 2.13.0
 
- 
atErrorConstruct a trace log event.- Returns:
- a LogBuilder.
- Since:
- 2.13.0
 
- 
atFatalConstruct a trace log event.- Returns:
- a LogBuilder.
- Since:
- 2.13.0
 
- 
alwaysConstruct a log event that will always be logged.- Returns:
- a LogBuilder.
- Since:
- 2.13.0
 
- 
atLevelConstruct a log event.- Parameters:
- level- Any level (ignoreed here).
- Returns:
- a LogBuilder.
- Since:
- 2.13.0
 
 
- 
traceEntry()instead which performs the same function.