public class Logger
Static logger for issuing log entries.
Modifier and Type | Field and Description |
---|---|
static Logger |
INSTANCE
Static logger for issuing log entries.
|
Modifier and Type | Method and Description |
---|---|
void |
debug(java.lang.Object message)
Logs a message at DEBUG level.
|
void |
debug(java.lang.String message)
Logs a message at DEBUG level.
|
void |
debug(kotlin.jvm.functions.Function0<java.lang.String> message)
Logs a lazy message at DEBUG level. The message will be only evaluated if the log entry is
really output.
|
void |
debug(java.lang.String message,
java.lang.Object... arguments)
Logs a formatted message at DEBUG level. "{}" placeholders will be replaced by given
arguments.
|
void |
debug(java.lang.String message,
kotlin.jvm.functions.Function0... arguments)
Logs a formatted message at DEBUG level. "{}" placeholders will be replaced by given lazy
arguments. The arguments will be only evaluated if the log entry is really output.
|
void |
debug(java.lang.Throwable exception)
Logs an exception at DEBUG level.
|
void |
debug(java.lang.Throwable exception,
java.lang.String message)
Logs an exception with a custom message at DEBUG level.
|
void |
debug(java.lang.Throwable exception,
kotlin.jvm.functions.Function0<java.lang.String> message)
Logs an exception with a custom lazy message at DEBUG level. The message will be only
evaluated if the log entry is really output.
|
void |
debug(java.lang.Throwable exception,
java.lang.String message,
java.lang.Object... arguments)
Logs an exception with a formatted custom message at DEBUG level. "{}" placeholders will be
replaced by given arguments.
|
void |
debug(java.lang.Throwable exception,
java.lang.String message,
kotlin.jvm.functions.Function0... arguments)
Logs an exception with a formatted message at DEBUG level. "{}" placeholders will be replaced
by given lazy arguments. The arguments will be only evaluated if the log entry is really output.
|
void |
error(java.lang.Object message)
Logs a message at ERROR level.
|
void |
error(java.lang.String message)
Logs a message at ERROR level.
|
void |
error(kotlin.jvm.functions.Function0<java.lang.String> message)
Logs a lazy message at ERROR level. The message will be only evaluated if the log entry is
really output.
|
void |
error(java.lang.String message,
java.lang.Object... arguments)
Logs a formatted message at ERROR level. "{}" placeholders will be replaced by given
arguments.
|
void |
error(java.lang.String message,
kotlin.jvm.functions.Function0... arguments)
Logs a formatted message at ERROR level. "{}" placeholders will be replaced by given lazy
arguments. The arguments will be only evaluated if the log entry is really output.
|
void |
error(java.lang.Throwable exception)
Logs an exception at ERROR level.
|
void |
error(java.lang.Throwable exception,
java.lang.String message)
Logs an exception with a custom message at ERROR level.
|
void |
error(java.lang.Throwable exception,
kotlin.jvm.functions.Function0<java.lang.String> message)
Logs an exception with a custom lazy message at ERROR level. The message will be only
evaluated if the log entry is really output.
|
void |
error(java.lang.Throwable exception,
java.lang.String message,
java.lang.Object... arguments)
Logs an exception with a formatted custom message at ERROR level. "{}" placeholders will be
replaced by given arguments.
|
void |
error(java.lang.Throwable exception,
java.lang.String message,
kotlin.jvm.functions.Function0... arguments)
Logs an exception with a formatted message at ERROR level. "{}" placeholders will be replaced
by given lazy arguments. The arguments will be only evaluated if the log entry is really output.
|
void |
info(java.lang.Object message)
Logs a message at INFO level.
|
void |
info(java.lang.String message)
Logs a message at INFO level.
|
void |
info(kotlin.jvm.functions.Function0<java.lang.String> message)
Logs a lazy message at INFO level. The message will be only evaluated if the log entry is
really output.
|
void |
info(java.lang.String message,
java.lang.Object... arguments)
Logs a formatted message at INFO level. "{}" placeholders will be replaced by given
arguments.
|
void |
info(java.lang.String message,
kotlin.jvm.functions.Function0... arguments)
Logs a formatted message at INFO level. "{}" placeholders will be replaced by given lazy
arguments. The arguments will be only evaluated if the log entry is really output.
|
void |
info(java.lang.Throwable exception)
Logs an exception at INFO level.
|
void |
info(java.lang.Throwable exception,
java.lang.String message)
Logs an exception with a custom message at INFO level.
|
void |
info(java.lang.Throwable exception,
kotlin.jvm.functions.Function0<java.lang.String> message)
Logs an exception with a custom lazy message at INFO level. The message will be only
evaluated if the log entry is really output.
|
void |
info(java.lang.Throwable exception,
java.lang.String message,
java.lang.Object... arguments)
Logs an exception with a formatted custom message at INFO level. "{}" placeholders will be
replaced by given arguments.
|
void |
info(java.lang.Throwable exception,
java.lang.String message,
kotlin.jvm.functions.Function0... arguments)
Logs an exception with a formatted message at INFO level. "{}" placeholders will be replaced
by given lazy arguments. The arguments will be only evaluated if the log entry is really output.
|
boolean |
isDebugEnabled()
Checks whether log entries at DEBUG level will be output.
|
boolean |
isErrorEnabled()
Checks whether log entries at ERROR level will be output.
|
boolean |
isInfoEnabled()
Checks whether log entries at INFO level will be output.
|
boolean |
isTraceEnabled()
Checks whether log entries at TRACE level will be output.
|
boolean |
isWarnEnabled()
Checks whether log entries at WARN level will be output.
|
TaggedLogger |
tag(java.lang.String tag)
Gets a tagged logger instance. Tags are case-sensitive.
|
void |
trace(java.lang.Object message)
Logs a message at TRACE level.
|
void |
trace(java.lang.String message)
Logs a message at TRACE level.
|
void |
trace(kotlin.jvm.functions.Function0<java.lang.String> message)
Logs a lazy message at TRACE level. The message will be only evaluated if the log entry is
really output.
|
void |
trace(java.lang.String message,
java.lang.Object... arguments)
Logs a formatted message at TRACE level. "{}" placeholders will be replaced by given
arguments.
|
void |
trace(java.lang.String message,
kotlin.jvm.functions.Function0... arguments)
Logs a formatted message at TRACE level. "{}" placeholders will be replaced by given lazy
arguments. The arguments will be only evaluated if the log entry is really output.
|
void |
trace(java.lang.Throwable exception)
Logs an exception at TRACE level.
|
void |
trace(java.lang.Throwable exception,
java.lang.String message)
Logs an exception with a custom message at TRACE level.
|
void |
trace(java.lang.Throwable exception,
kotlin.jvm.functions.Function0<java.lang.String> message)
Logs an exception with a custom lazy message at TRACE level. The message will be only
evaluated if the log entry is really output.
|
void |
trace(java.lang.Throwable exception,
java.lang.String message,
java.lang.Object... arguments)
Logs an exception with a formatted custom message at TRACE level. "{}" placeholders will be
replaced by given arguments.
|
void |
trace(java.lang.Throwable exception,
java.lang.String message,
kotlin.jvm.functions.Function0... arguments)
Logs an exception with a formatted message at TRACE level. "{}" placeholders will be replaced
by given lazy arguments. The arguments will be only evaluated if the log entry is really output.
|
void |
warn(java.lang.Object message)
Logs a message at WARN level.
|
void |
warn(java.lang.String message)
Logs a message at WARN level.
|
void |
warn(kotlin.jvm.functions.Function0<java.lang.String> message)
Logs a lazy message at WARN level. The message will be only evaluated if the log entry is
really output.
|
void |
warn(java.lang.String message,
java.lang.Object... arguments)
Logs a formatted message at WARN level. "{}" placeholders will be replaced by given
arguments.
|
void |
warn(java.lang.String message,
kotlin.jvm.functions.Function0... arguments)
Logs a formatted message at WARN level. "{}" placeholders will be replaced by given lazy
arguments. The arguments will be only evaluated if the log entry is really output.
|
void |
warn(java.lang.Throwable exception)
Logs an exception at WARN level.
|
void |
warn(java.lang.Throwable exception,
java.lang.String message)
Logs an exception with a custom message at WARN level.
|
void |
warn(java.lang.Throwable exception,
kotlin.jvm.functions.Function0<java.lang.String> message)
Logs an exception with a custom lazy message at WARN level. The message will be only
evaluated if the log entry is really output.
|
void |
warn(java.lang.Throwable exception,
java.lang.String message,
java.lang.Object... arguments)
Logs an exception with a formatted custom message at WARN level. "{}" placeholders will be
replaced by given arguments.
|
void |
warn(java.lang.Throwable exception,
java.lang.String message,
kotlin.jvm.functions.Function0... arguments)
Logs an exception with a formatted message at WARN level. "{}" placeholders will be replaced
by given lazy arguments. The arguments will be only evaluated if the log entry is really output.
|
public static Logger INSTANCE
Static logger for issuing log entries.
@NotNull public TaggedLogger tag(@Nullable java.lang.String tag)
Gets a tagged logger instance. Tags are case-sensitive.
tag
- Tag for logger or null
for receiving an untagged loggerpublic boolean isTraceEnabled()
Checks whether log entries at TRACE level will be output.
true
if TRACE level is enabled, false
if disabledpublic void trace(@Nullable java.lang.Object message)
Logs a message at TRACE level.
message
- Any object with a meaningful Any.toString methodpublic void trace(@NotNull java.lang.String message)
Logs a message at TRACE level.
message
- Text message to logpublic void trace(@NotNull kotlin.jvm.functions.Function0<java.lang.String> message)
Logs a lazy message at TRACE level. The message will be only evaluated if the log entry is really output.
message
- Function that produces the messagepublic void trace(@NotNull java.lang.String message, @NotNull java.lang.Object... arguments)
Logs a formatted message at TRACE level. "{}" placeholders will be replaced by given arguments.
message
- Formatted text message to logarguments
- Arguments for formatted text messagepublic void trace(@NotNull java.lang.String message, @NotNull kotlin.jvm.functions.Function0... arguments)
Logs a formatted message at TRACE level. "{}" placeholders will be replaced by given lazy arguments. The arguments will be only evaluated if the log entry is really output.
message
- Formatted text message to logarguments
- Functions that produce the arguments for formatted text messagepublic void trace(@NotNull java.lang.Throwable exception)
Logs an exception at TRACE level.
exception
- Caught exception or any other throwable to logpublic void trace(@NotNull java.lang.Throwable exception, @NotNull java.lang.String message)
Logs an exception with a custom message at TRACE level.
exception
- Caught exception or any other throwable to logmessage
- Text message to logpublic void trace(@NotNull java.lang.Throwable exception, @NotNull kotlin.jvm.functions.Function0<java.lang.String> message)
Logs an exception with a custom lazy message at TRACE level. The message will be only evaluated if the log entry is really output.
exception
- Caught exception or any other throwable to logmessage
- Function that produces the messagepublic void trace(@NotNull java.lang.Throwable exception, @NotNull java.lang.String message, @NotNull java.lang.Object... arguments)
Logs an exception with a formatted custom message at TRACE level. "{}" placeholders will be replaced by given arguments.
exception
- Caught exception or any other throwable to logmessage
- Formatted text message to logarguments
- Arguments for formatted text messagepublic void trace(@NotNull java.lang.Throwable exception, @NotNull java.lang.String message, @NotNull kotlin.jvm.functions.Function0... arguments)
Logs an exception with a formatted message at TRACE level. "{}" placeholders will be replaced by given lazy arguments. The arguments will be only evaluated if the log entry is really output.
exception
- Caught exception or any other throwable to logmessage
- Formatted text message to logarguments
- Functions that produce the arguments for formatted text messagepublic boolean isDebugEnabled()
Checks whether log entries at DEBUG level will be output.
true
if DEBUG level is enabled, false
if disabledpublic void debug(@Nullable java.lang.Object message)
Logs a message at DEBUG level.
message
- Any object with a meaningful Any.toString methodpublic void debug(@NotNull java.lang.String message)
Logs a message at DEBUG level.
message
- Text message to logpublic void debug(@NotNull kotlin.jvm.functions.Function0<java.lang.String> message)
Logs a lazy message at DEBUG level. The message will be only evaluated if the log entry is really output.
message
- Function that produces the messagepublic void debug(@NotNull java.lang.String message, @NotNull java.lang.Object... arguments)
Logs a formatted message at DEBUG level. "{}" placeholders will be replaced by given arguments.
message
- Formatted text message to logarguments
- Arguments for formatted text messagepublic void debug(@NotNull java.lang.String message, @NotNull kotlin.jvm.functions.Function0... arguments)
Logs a formatted message at DEBUG level. "{}" placeholders will be replaced by given lazy arguments. The arguments will be only evaluated if the log entry is really output.
message
- Formatted text message to logarguments
- Functions that produce the arguments for formatted text messagepublic void debug(@NotNull java.lang.Throwable exception)
Logs an exception at DEBUG level.
exception
- Caught exception or any other throwable to logpublic void debug(@NotNull java.lang.Throwable exception, @NotNull java.lang.String message)
Logs an exception with a custom message at DEBUG level.
exception
- Caught exception or any other throwable to logmessage
- Text message to logpublic void debug(@NotNull java.lang.Throwable exception, @NotNull kotlin.jvm.functions.Function0<java.lang.String> message)
Logs an exception with a custom lazy message at DEBUG level. The message will be only evaluated if the log entry is really output.
exception
- Caught exception or any other throwable to logmessage
- Function that produces the messagepublic void debug(@NotNull java.lang.Throwable exception, @NotNull java.lang.String message, @NotNull java.lang.Object... arguments)
Logs an exception with a formatted custom message at DEBUG level. "{}" placeholders will be replaced by given arguments.
exception
- Caught exception or any other throwable to logmessage
- Formatted text message to logarguments
- Arguments for formatted text messagepublic void debug(@NotNull java.lang.Throwable exception, @NotNull java.lang.String message, @NotNull kotlin.jvm.functions.Function0... arguments)
Logs an exception with a formatted message at DEBUG level. "{}" placeholders will be replaced by given lazy arguments. The arguments will be only evaluated if the log entry is really output.
exception
- Caught exception or any other throwable to logmessage
- Formatted text message to logarguments
- Functions that produce the arguments for formatted text messagepublic boolean isInfoEnabled()
Checks whether log entries at INFO level will be output.
true
if INFO level is enabled, false
if disabledpublic void info(@Nullable java.lang.Object message)
Logs a message at INFO level.
message
- Any object with a meaningful Any.toString methodpublic void info(@NotNull java.lang.String message)
Logs a message at INFO level.
message
- Text message to logpublic void info(@NotNull kotlin.jvm.functions.Function0<java.lang.String> message)
Logs a lazy message at INFO level. The message will be only evaluated if the log entry is really output.
message
- Function that produces the messagepublic void info(@NotNull java.lang.String message, @NotNull java.lang.Object... arguments)
Logs a formatted message at INFO level. "{}" placeholders will be replaced by given arguments.
message
- Formatted text message to logarguments
- Arguments for formatted text messagepublic void info(@NotNull java.lang.String message, @NotNull kotlin.jvm.functions.Function0... arguments)
Logs a formatted message at INFO level. "{}" placeholders will be replaced by given lazy arguments. The arguments will be only evaluated if the log entry is really output.
message
- Formatted text message to logarguments
- Functions that produce the arguments for formatted text messagepublic void info(@NotNull java.lang.Throwable exception)
Logs an exception at INFO level.
exception
- Caught exception or any other throwable to logpublic void info(@NotNull java.lang.Throwable exception, @NotNull java.lang.String message)
Logs an exception with a custom message at INFO level.
exception
- Caught exception or any other throwable to logmessage
- Text message to logpublic void info(@NotNull java.lang.Throwable exception, @NotNull kotlin.jvm.functions.Function0<java.lang.String> message)
Logs an exception with a custom lazy message at INFO level. The message will be only evaluated if the log entry is really output.
exception
- Caught exception or any other throwable to logmessage
- Function that produces the messagepublic void info(@NotNull java.lang.Throwable exception, @NotNull java.lang.String message, @NotNull java.lang.Object... arguments)
Logs an exception with a formatted custom message at INFO level. "{}" placeholders will be replaced by given arguments.
exception
- Caught exception or any other throwable to logmessage
- Formatted text message to logarguments
- Arguments for formatted text messagepublic void info(@NotNull java.lang.Throwable exception, @NotNull java.lang.String message, @NotNull kotlin.jvm.functions.Function0... arguments)
Logs an exception with a formatted message at INFO level. "{}" placeholders will be replaced by given lazy arguments. The arguments will be only evaluated if the log entry is really output.
exception
- Caught exception or any other throwable to logmessage
- Formatted text message to logarguments
- Functions that produce the arguments for formatted text messagepublic boolean isWarnEnabled()
Checks whether log entries at WARN level will be output.
true
if WARN level is enabled, false
if disabledpublic void warn(@Nullable java.lang.Object message)
Logs a message at WARN level.
message
- Any object with a meaningful Any.toString methodpublic void warn(@NotNull java.lang.String message)
Logs a message at WARN level.
message
- Text message to logpublic void warn(@NotNull kotlin.jvm.functions.Function0<java.lang.String> message)
Logs a lazy message at WARN level. The message will be only evaluated if the log entry is really output.
message
- Function that produces the messagepublic void warn(@NotNull java.lang.String message, @NotNull java.lang.Object... arguments)
Logs a formatted message at WARN level. "{}" placeholders will be replaced by given arguments.
message
- Formatted text message to logarguments
- Arguments for formatted text messagepublic void warn(@NotNull java.lang.String message, @NotNull kotlin.jvm.functions.Function0... arguments)
Logs a formatted message at WARN level. "{}" placeholders will be replaced by given lazy arguments. The arguments will be only evaluated if the log entry is really output.
message
- Formatted text message to logarguments
- Functions that produce the arguments for formatted text messagepublic void warn(@NotNull java.lang.Throwable exception)
Logs an exception at WARN level.
exception
- Caught exception or any other throwable to logpublic void warn(@NotNull java.lang.Throwable exception, @NotNull java.lang.String message)
Logs an exception with a custom message at WARN level.
exception
- Caught exception or any other throwable to logmessage
- Text message to logpublic void warn(@NotNull java.lang.Throwable exception, @NotNull kotlin.jvm.functions.Function0<java.lang.String> message)
Logs an exception with a custom lazy message at WARN level. The message will be only evaluated if the log entry is really output.
exception
- Caught exception or any other throwable to logmessage
- Function that produces the messagepublic void warn(@NotNull java.lang.Throwable exception, @NotNull java.lang.String message, @NotNull java.lang.Object... arguments)
Logs an exception with a formatted custom message at WARN level. "{}" placeholders will be replaced by given arguments.
exception
- Caught exception or any other throwable to logmessage
- Formatted text message to logarguments
- Arguments for formatted text messagepublic void warn(@NotNull java.lang.Throwable exception, @NotNull java.lang.String message, @NotNull kotlin.jvm.functions.Function0... arguments)
Logs an exception with a formatted message at WARN level. "{}" placeholders will be replaced by given lazy arguments. The arguments will be only evaluated if the log entry is really output.
exception
- Caught exception or any other throwable to logmessage
- Formatted text message to logarguments
- Functions that produce the arguments for formatted text messagepublic boolean isErrorEnabled()
Checks whether log entries at ERROR level will be output.
true
if ERROR level is enabled, false
if disabledpublic void error(@Nullable java.lang.Object message)
Logs a message at ERROR level.
message
- Any object with a meaningful Any.toString methodpublic void error(@NotNull java.lang.String message)
Logs a message at ERROR level.
message
- Text message to logpublic void error(@NotNull kotlin.jvm.functions.Function0<java.lang.String> message)
Logs a lazy message at ERROR level. The message will be only evaluated if the log entry is really output.
message
- Function that produces the messagepublic void error(@NotNull java.lang.String message, @NotNull java.lang.Object... arguments)
Logs a formatted message at ERROR level. "{}" placeholders will be replaced by given arguments.
message
- Formatted text message to logarguments
- Arguments for formatted text messagepublic void error(@NotNull java.lang.String message, @NotNull kotlin.jvm.functions.Function0... arguments)
Logs a formatted message at ERROR level. "{}" placeholders will be replaced by given lazy arguments. The arguments will be only evaluated if the log entry is really output.
message
- Formatted text message to logarguments
- Functions that produce the arguments for formatted text messagepublic void error(@NotNull java.lang.Throwable exception)
Logs an exception at ERROR level.
exception
- Caught exception or any other throwable to logpublic void error(@NotNull java.lang.Throwable exception, @NotNull java.lang.String message)
Logs an exception with a custom message at ERROR level.
exception
- Caught exception or any other throwable to logmessage
- Text message to logpublic void error(@NotNull java.lang.Throwable exception, @NotNull kotlin.jvm.functions.Function0<java.lang.String> message)
Logs an exception with a custom lazy message at ERROR level. The message will be only evaluated if the log entry is really output.
exception
- Caught exception or any other throwable to logmessage
- Function that produces the messagepublic void error(@NotNull java.lang.Throwable exception, @NotNull java.lang.String message, @NotNull java.lang.Object... arguments)
Logs an exception with a formatted custom message at ERROR level. "{}" placeholders will be replaced by given arguments.
exception
- Caught exception or any other throwable to logmessage
- Formatted text message to logarguments
- Arguments for formatted text messagepublic void error(@NotNull java.lang.Throwable exception, @NotNull java.lang.String message, @NotNull kotlin.jvm.functions.Function0... arguments)
Logs an exception with a formatted message at ERROR level. "{}" placeholders will be replaced by given lazy arguments. The arguments will be only evaluated if the log entry is really output.
exception
- Caught exception or any other throwable to logmessage
- Formatted text message to logarguments
- Functions that produce the arguments for formatted text message