public final class Logger extends Object
Level.INFO
, which ignores trace and debug log
entries.Modifier and Type | Method | Description |
---|---|---|
static void |
debug(Object obj) |
Create a debug log entry.
|
static void |
debug(String message) |
Create a debug log entry.
|
static void |
debug(String message,
Object... arguments) |
Create a debug log entry. "{}" placeholders will be replaced by the given arguments.
|
static void |
debug(String message,
Supplier<?>... arguments) |
Create a debug log entry. "{}" placeholders will be replaced by the given arguments.
|
static void |
debug(Throwable exception) |
Create a debug log entry.
|
static void |
debug(Throwable exception,
String message) |
Create a debug log entry.
|
static void |
debug(Throwable exception,
String message,
Object... arguments) |
Create a debug log entry. "{}" placeholders will be replaced by the given arguments.
|
static void |
debug(Throwable exception,
String message,
Supplier<?>... arguments) |
Create a debug log entry. "{}" placeholders will be replaced by the given arguments.
|
static void |
debug(Throwable exception,
Supplier<?> supplier) |
Create a debug log entry.
|
static void |
debug(Supplier<?> supplier) |
Create a debug log entry.
|
static void |
error(Object obj) |
Create a error log entry.
|
static void |
error(String message) |
Create a error log entry.
|
static void |
error(String message,
Object... arguments) |
Create a error log entry. "{}" placeholders will be replaced by the given arguments.
|
static void |
error(String message,
Supplier<?>... arguments) |
Create a error log entry. "{}" placeholders will be replaced by the given arguments.
|
static void |
error(Throwable exception) |
Create a error log entry.
|
static void |
error(Throwable exception,
String message) |
Create a error log entry.
|
static void |
error(Throwable exception,
String message,
Object... arguments) |
Create a error log entry. "{}" placeholders will be replaced by the given arguments.
|
static void |
error(Throwable exception,
String message,
Supplier<?>... arguments) |
Create a error log entry. "{}" placeholders will be replaced by the given arguments.
|
static void |
error(Throwable exception,
Supplier<?> supplier) |
Create a error log entry.
|
static void |
error(Supplier<?> supplier) |
Create a error log entry.
|
static Configurator |
getConfiguration() |
Get a copy of the current configuration.
|
static Level |
getLevel() |
Get the current global severity level.
|
static Level |
getLevel(Class<?> classObject) |
Get the current severity level for a specific class.
|
static Level |
getLevel(Package packageObject) |
Get the current severity level for a specific package.
|
static Level |
getLevel(String packageOrClass) |
Get the current severity level for a specific package or class.
|
static void |
info(Object obj) |
Create a info log entry.
|
static void |
info(String message) |
Create a info log entry.
|
static void |
info(String message,
Object... arguments) |
Create a info log entry. "{}" placeholders will be replaced by the given arguments.
|
static void |
info(String message,
Supplier<?>... arguments) |
Create a info log entry. "{}" placeholders will be replaced by the given arguments.
|
static void |
info(Throwable exception) |
Create a info log entry.
|
static void |
info(Throwable exception,
String message) |
Create a info log entry.
|
static void |
info(Throwable exception,
String message,
Object... arguments) |
Create a info log entry. "{}" placeholders will be replaced by the given arguments.
|
static void |
info(Throwable exception,
String message,
Supplier<?>... arguments) |
Create a info log entry. "{}" placeholders will be replaced by the given arguments.
|
static void |
info(Throwable exception,
Supplier<?> supplier) |
Create a info log entry.
|
static void |
info(Supplier<?> supplier) |
Create a info log entry.
|
static void |
trace(Object obj) |
Create a trace log entry.
|
static void |
trace(String message) |
Create a trace log entry.
|
static void |
trace(String message,
Object... arguments) |
Create a trace log entry. "{}" placeholders will be replaced by the given arguments.
|
static void |
trace(String message,
Supplier<?>... arguments) |
Create a trace log entry. "{}" placeholders will be replaced by the given arguments.
|
static void |
trace(Throwable exception) |
Create a trace log entry.
|
static void |
trace(Throwable exception,
String message) |
Create a trace log entry.
|
static void |
trace(Throwable exception,
String message,
Object... arguments) |
Create a trace log entry. "{}" placeholders will be replaced by the given arguments.
|
static void |
trace(Throwable exception,
String message,
Supplier<?>... arguments) |
Create a trace log entry. "{}" placeholders will be replaced by the given arguments.
|
static void |
trace(Throwable exception,
Supplier<?> supplier) |
Create a trace log entry.
|
static void |
trace(Supplier<?> supplier) |
Create a trace log entry.
|
static void |
warn(Object obj) |
Create a warning log entry.
|
static void |
warn(String message) |
Create a warning log entry.
|
static void |
warn(String message,
Object... arguments) |
Create a warning log entry. "{}" placeholders will be replaced by the given arguments.
|
static void |
warn(String message,
Supplier<?>... arguments) |
Create a warning log entry. "{}" placeholders will be replaced by the given arguments.
|
static void |
warn(Throwable exception) |
Create a warning log entry.
|
static void |
warn(Throwable exception,
String message) |
Create a warning log entry.
|
static void |
warn(Throwable exception,
String message,
Object... arguments) |
Create a warning log entry. "{}" placeholders will be replaced by the given arguments.
|
static void |
warn(Throwable exception,
String message,
Supplier<?>... arguments) |
Create a warning log entry. "{}" placeholders will be replaced by the given arguments.
|
static void |
warn(Throwable exception,
Supplier<?> supplier) |
Create a warning log entry.
|
static void |
warn(Supplier<?> supplier) |
Create a warning log entry.
|
public static Level getLevel()
public static Level getLevel(Package packageObject)
packageObject
- Packagepublic static Level getLevel(Class<?> classObject)
classObject
- Name of the classpublic static Level getLevel(String packageOrClass)
packageOrClass
- Name of the package respectively classpublic static void trace(Object obj)
obj
- The result of the toString()
method will be loggedpublic static void trace(String message)
message
- Text message to logpublic static void trace(Supplier<?> supplier)
supplier
- Function that produces the messagepublic static void trace(String message, Object... arguments)
message
- Formatted text for the log entryarguments
- Arguments for the text messagepublic static void trace(String message, Supplier<?>... arguments)
message
- Formatted text for the log entryarguments
- Functions that produce the arguments for formatted text messagepublic static void trace(Throwable exception)
exception
- Exception to logpublic static void trace(Throwable exception, String message)
exception
- Exception to logmessage
- Text message to logpublic static void trace(Throwable exception, Supplier<?> supplier)
exception
- Exception to logsupplier
- Function that produces the messagepublic static void trace(Throwable exception, String message, Object... arguments)
exception
- Exception to logmessage
- Formatted text for the log entryarguments
- Arguments for the text messagepublic static void trace(Throwable exception, String message, Supplier<?>... arguments)
exception
- Exception to logmessage
- Formatted text for the log entryarguments
- Functions that produce the arguments for formatted text messagepublic static void debug(Object obj)
obj
- The result of the toString()
method will be loggedpublic static void debug(String message)
message
- Text message to logpublic static void debug(Supplier<?> supplier)
supplier
- Function that produces the messagepublic static void debug(String message, Object... arguments)
message
- Formatted text for the log entryarguments
- Arguments for the text messagepublic static void debug(String message, Supplier<?>... arguments)
message
- Formatted text for the log entryarguments
- Functions that produce the arguments for formatted text messagepublic static void debug(Throwable exception)
exception
- Exception to logpublic static void debug(Throwable exception, String message)
exception
- Exception to logmessage
- Text message to logpublic static void debug(Throwable exception, Supplier<?> supplier)
exception
- Exception to logsupplier
- Function that produces the messagepublic static void debug(Throwable exception, String message, Object... arguments)
exception
- Exception to logmessage
- Formatted text for the log entryarguments
- Arguments for the text messagepublic static void debug(Throwable exception, String message, Supplier<?>... arguments)
exception
- Exception to logmessage
- Formatted text for the log entryarguments
- Functions that produce the arguments for formatted text messagepublic static void info(Object obj)
obj
- The result of the toString()
method will be loggedpublic static void info(String message)
message
- Text message to logpublic static void info(Supplier<?> supplier)
supplier
- Function that produces the messagepublic static void info(String message, Object... arguments)
message
- Formatted text for the log entryarguments
- Arguments for the text messagepublic static void info(String message, Supplier<?>... arguments)
message
- Formatted text for the log entryarguments
- Functions that produce the arguments for formatted text messagepublic static void info(Throwable exception)
exception
- Exception to logpublic static void info(Throwable exception, String message)
exception
- Exception to logmessage
- Text message to logpublic static void info(Throwable exception, Supplier<?> supplier)
exception
- Exception to logsupplier
- Function that produces the messagepublic static void info(Throwable exception, String message, Object... arguments)
exception
- Exception to logmessage
- Formatted text for the log entryarguments
- Arguments for the text messagepublic static void info(Throwable exception, String message, Supplier<?>... arguments)
exception
- Exception to logmessage
- Formatted text for the log entryarguments
- Functions that produce the arguments for formatted text messagepublic static void warn(Object obj)
obj
- The result of the toString()
method will be loggedpublic static void warn(String message)
message
- Text message to logpublic static void warn(Supplier<?> supplier)
supplier
- Function that produces the messagepublic static void warn(String message, Object... arguments)
message
- Formatted text for the log entryarguments
- Arguments for the text messagepublic static void warn(String message, Supplier<?>... arguments)
message
- Formatted text for the log entryarguments
- Functions that produce the arguments for formatted text messagepublic static void warn(Throwable exception)
exception
- Exception to logpublic static void warn(Throwable exception, String message)
exception
- Exception to logmessage
- Text message to logpublic static void warn(Throwable exception, Supplier<?> supplier)
exception
- Exception to logsupplier
- Function that produces the messagepublic static void warn(Throwable exception, String message, Object... arguments)
exception
- Exception to logmessage
- Formatted text for the log entryarguments
- Arguments for the text messagepublic static void warn(Throwable exception, String message, Supplier<?>... arguments)
exception
- Exception to logmessage
- Formatted text for the log entryarguments
- Functions that produce the arguments for formatted text messagepublic static void error(Object obj)
obj
- The result of the toString()
method will be loggedpublic static void error(String message)
message
- Text message to logpublic static void error(Supplier<?> supplier)
supplier
- Function that produces the messagepublic static void error(String message, Object... arguments)
message
- Formatted text for the log entryarguments
- Arguments for the text messagepublic static void error(String message, Supplier<?>... arguments)
message
- Formatted text for the log entryarguments
- Functions that produce the arguments for formatted text messagepublic static void error(Throwable exception)
exception
- Exception to logpublic static void error(Throwable exception, String message)
exception
- Exception to logmessage
- Text message to logpublic static void error(Throwable exception, Supplier<?> supplier)
exception
- Exception to logsupplier
- Function that produces the messagepublic static void error(Throwable exception, String message, Object... arguments)
exception
- Exception to logmessage
- Formatted text for the log entryarguments
- Arguments for the text messagepublic static void error(Throwable exception, String message, Supplier<?>... arguments)
exception
- Exception to logmessage
- Formatted text for the log entryarguments
- Functions that produce the arguments for formatted text messagepublic static Configurator getConfiguration()
Copyright © 2019. All rights reserved.