public final class Logger
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
static void |
debug(java.lang.Object message) |
Logs a message at
DEBUG level. |
static void |
debug(java.lang.String message) |
Logs a message at
DEBUG level. |
static void |
debug(java.lang.String message,
java.lang.Object... arguments) |
Logs a formatted message at
DEBUG level. |
static void |
debug(java.lang.String message,
Supplier<?>... arguments) |
Logs a formatted message at
DEBUG level. |
static void |
debug(java.lang.Throwable exception) |
Logs an exception at
DEBUG level. |
static void |
debug(java.lang.Throwable exception,
java.lang.String message) |
Logs an exception with a custom message at
DEBUG level. |
static 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. |
static void |
debug(java.lang.Throwable exception,
java.lang.String message,
Supplier<?>... arguments) |
Logs an exception with a formatted message at
DEBUG level. |
static void |
debug(java.lang.Throwable exception,
Supplier<java.lang.String> message) |
Logs an exception with a custom lazy message at
DEBUG level. |
static void |
debug(Supplier<?> message) |
Logs a lazy message at
DEBUG level. |
static void |
error(java.lang.Object message) |
Logs a message at
ERROR level. |
static void |
error(java.lang.String message) |
Logs a message at
ERROR level. |
static void |
error(java.lang.String message,
java.lang.Object... arguments) |
Logs a formatted message at
ERROR level. |
static void |
error(java.lang.String message,
Supplier<?>... arguments) |
Logs a formatted message at
ERROR level. |
static void |
error(java.lang.Throwable exception) |
Logs an exception at
ERROR level. |
static void |
error(java.lang.Throwable exception,
java.lang.String message) |
Logs an exception with a custom message at
ERROR level. |
static 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. |
static void |
error(java.lang.Throwable exception,
java.lang.String message,
Supplier<?>... arguments) |
Logs an exception with a formatted message at
ERROR level. |
static void |
error(java.lang.Throwable exception,
Supplier<java.lang.String> message) |
Logs an exception with a custom lazy message at
ERROR level. |
static void |
error(Supplier<?> message) |
Logs a lazy message at
ERROR level. |
static Level |
getLevel() |
Gets the minimum enabled severity level.
|
static Level |
getLevel(java.lang.Class<?> classObject) |
Gets the minimum enabled severity level.
|
static Level |
getLevel(java.lang.Package packageObject) |
Gets the minimum enabled severity level.
|
static void |
info(java.lang.Object message) |
Logs a message at
INFO level. |
static void |
info(java.lang.String message) |
Logs a message at
INFO level. |
static void |
info(java.lang.String message,
java.lang.Object... arguments) |
Logs a formatted message at
INFO level. |
static void |
info(java.lang.String message,
Supplier<?>... arguments) |
Logs a formatted message at
INFO level. |
static void |
info(java.lang.Throwable exception) |
Logs an exception at
INFO level. |
static void |
info(java.lang.Throwable exception,
java.lang.String message) |
Logs an exception with a custom message at
INFO level. |
static 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. |
static void |
info(java.lang.Throwable exception,
java.lang.String message,
Supplier<?>... arguments) |
Logs an exception with a formatted message at
INFO level. |
static void |
info(java.lang.Throwable exception,
Supplier<java.lang.String> message) |
Logs an exception with a custom lazy message at
INFO level. |
static void |
info(Supplier<?> message) |
Logs a lazy message at
INFO level. |
static void |
trace(java.lang.Object message) |
Logs a message at
TRACE level. |
static void |
trace(java.lang.String message) |
Logs a message at
TRACE level. |
static void |
trace(java.lang.String message,
java.lang.Object... arguments) |
Logs a formatted message at
TRACE level. |
static void |
trace(java.lang.String message,
Supplier<?>... arguments) |
Logs a formatted message at
TRACE level. |
static void |
trace(java.lang.Throwable exception) |
Logs an exception at
TRACE level. |
static void |
trace(java.lang.Throwable exception,
java.lang.String message) |
Logs an exception with a custom message at
TRACE level. |
static 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. |
static void |
trace(java.lang.Throwable exception,
java.lang.String message,
Supplier<?>... arguments) |
Logs an exception with a formatted message at
TRACE level. |
static void |
trace(java.lang.Throwable exception,
Supplier<java.lang.String> message) |
Logs an exception with a custom lazy message at
TRACE level. |
static void |
trace(Supplier<?> message) |
Logs a lazy message at
TRACE level. |
static void |
warn(java.lang.Object message) |
Logs a message at
WARNING level. |
static void |
warn(java.lang.String message) |
Logs a message at
WARNING level. |
static void |
warn(java.lang.String message,
java.lang.Object... arguments) |
Logs a formatted message at
WARNING level. |
static void |
warn(java.lang.String message,
Supplier<?>... arguments) |
Logs a formatted message at
WARNING level. |
static void |
warn(java.lang.Throwable exception) |
Logs an exception at
WARNING level. |
static void |
warn(java.lang.Throwable exception,
java.lang.String message) |
Logs an exception with a custom message at
WARNING level. |
static void |
warn(java.lang.Throwable exception,
java.lang.String message,
java.lang.Object... arguments) |
Logs an exception with a formatted custom message at
WARNING level. |
static void |
warn(java.lang.Throwable exception,
java.lang.String message,
Supplier<?>... arguments) |
Logs an exception with a formatted message at
WARNING level. |
static void |
warn(java.lang.Throwable exception,
Supplier<java.lang.String> message) |
Logs an exception with a custom lazy message at
WARNING level. |
static void |
warn(Supplier<?> message) |
Logs a lazy message at
WARNING level. |
public static Level getLevel()
public static Level getLevel(java.lang.Package packageObject)
packageObject - Will be ignoredpublic static Level getLevel(java.lang.Class<?> classObject)
classObject - Will be ignoredpublic static void trace(java.lang.Object message)
TRACE level.message - String or any other object with a meaningful Object.toString() methodpublic static void trace(java.lang.String message)
TRACE level.message - Text message to logpublic static void trace(Supplier<?> message)
TRACE level. The message will be only evaluated if the log entry is
really output.message - Function that produces the messagepublic static void trace(java.lang.String message,
java.lang.Object... arguments)
TRACE level. "{}" placeholders will be replaced by given
arguments.message - Formatted text message to logarguments - Arguments for formatted text messagepublic static void trace(java.lang.String message,
Supplier<?>... arguments)
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 static void trace(java.lang.Throwable exception)
TRACE level.exception - Caught exception or any other throwable to logpublic static void trace(java.lang.Throwable exception,
java.lang.String message)
TRACE level.exception - Caught exception or any other throwable to logmessage - Text message to logpublic static void trace(java.lang.Throwable exception,
Supplier<java.lang.String> message)
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 static void trace(java.lang.Throwable exception,
java.lang.String message,
java.lang.Object... arguments)
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 static void trace(java.lang.Throwable exception,
java.lang.String message,
Supplier<?>... arguments)
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 static void debug(java.lang.Object message)
DEBUG level.message - String or any other object with a meaningful Object.toString() methodpublic static void debug(java.lang.String message)
DEBUG level.message - Text message to logpublic static void debug(Supplier<?> message)
DEBUG level. The message will be only evaluated if the log entry is
really output.message - Function that produces the messagepublic static void debug(java.lang.String message,
java.lang.Object... arguments)
DEBUG level. "{}" placeholders will be replaced by given
arguments.message - Formatted text message to logarguments - Arguments for formatted text messagepublic static void debug(java.lang.String message,
Supplier<?>... arguments)
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 static void debug(java.lang.Throwable exception)
DEBUG level.exception - Caught exception or any other throwable to logpublic static void debug(java.lang.Throwable exception,
java.lang.String message)
DEBUG level.exception - Caught exception or any other throwable to logmessage - Text message to logpublic static void debug(java.lang.Throwable exception,
Supplier<java.lang.String> message)
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 static void debug(java.lang.Throwable exception,
java.lang.String message,
java.lang.Object... arguments)
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 static void debug(java.lang.Throwable exception,
java.lang.String message,
Supplier<?>... arguments)
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 static void info(java.lang.Object message)
INFO level.message - String or any other object with a meaningful Object.toString() methodpublic static void info(java.lang.String message)
INFO level.message - Text message to logpublic static void info(Supplier<?> message)
INFO level. The message will be only evaluated if the log entry is
really output.message - Function that produces the messagepublic static void info(java.lang.String message,
java.lang.Object... arguments)
INFO level. "{}" placeholders will be replaced by given arguments.message - Formatted text message to logarguments - Arguments for formatted text messagepublic static void info(java.lang.String message,
Supplier<?>... arguments)
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 static void info(java.lang.Throwable exception)
INFO level.exception - Caught exception or any other throwable to logpublic static void info(java.lang.Throwable exception,
java.lang.String message)
INFO level.exception - Caught exception or any other throwable to logmessage - Text message to logpublic static void info(java.lang.Throwable exception,
Supplier<java.lang.String> message)
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 static void info(java.lang.Throwable exception,
java.lang.String message,
java.lang.Object... arguments)
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 static void info(java.lang.Throwable exception,
java.lang.String message,
Supplier<?>... arguments)
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 static void warn(java.lang.Object message)
WARNING level.message - String or any other object with a meaningful Object.toString() methodpublic static void warn(java.lang.String message)
WARNING level.message - Text message to logpublic static void warn(Supplier<?> message)
WARNING level. The message will be only evaluated if the log entry
is really output.message - Function that produces the messagepublic static void warn(java.lang.String message,
java.lang.Object... arguments)
WARNING level. "{}" placeholders will be replaced by given
arguments.message - Formatted text message to logarguments - Arguments for formatted text messagepublic static void warn(java.lang.String message,
Supplier<?>... arguments)
WARNING 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 static void warn(java.lang.Throwable exception)
WARNING level.exception - Caught exception or any other throwable to logpublic static void warn(java.lang.Throwable exception,
java.lang.String message)
WARNING level.exception - Caught exception or any other throwable to logmessage - Text message to logpublic static void warn(java.lang.Throwable exception,
Supplier<java.lang.String> message)
WARNING 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 static void warn(java.lang.Throwable exception,
java.lang.String message,
java.lang.Object... arguments)
WARNING 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 static void warn(java.lang.Throwable exception,
java.lang.String message,
Supplier<?>... arguments)
WARNING 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 static void error(java.lang.Object message)
ERROR level.message - String or any other object with a meaningful Object.toString() methodpublic static void error(java.lang.String message)
ERROR level.message - Text message to logpublic static void error(Supplier<?> message)
ERROR level. The message will be only evaluated if the log entry is
really output.message - Function that produces the messagepublic static void error(java.lang.String message,
java.lang.Object... arguments)
ERROR level. "{}" placeholders will be replaced by given
arguments.message - Formatted text message to logarguments - Arguments for formatted text messagepublic static void error(java.lang.String message,
Supplier<?>... arguments)
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 static void error(java.lang.Throwable exception)
ERROR level.exception - Caught exception or any other throwable to logpublic static void error(java.lang.Throwable exception,
java.lang.String message)
ERROR level.exception - Caught exception or any other throwable to logmessage - Text message to logpublic static void error(java.lang.Throwable exception,
Supplier<java.lang.String> message)
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 static void error(java.lang.Throwable exception,
java.lang.String message,
java.lang.Object... arguments)
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 static void error(java.lang.Throwable exception,
java.lang.String message,
Supplier<?>... arguments)
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 messageCopyright © 2022. All rights reserved.