public final class Logger
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
static void |
debug(java.lang.Object obj) |
Create a debug log entry.
|
static void |
debug(java.lang.String message) |
Create a debug log entry.
|
static void |
debug(java.lang.String message,
java.lang.Object... arguments) |
Create a debug log entry. "{}" placeholders will be replaced by the given arguments.
|
static void |
debug(java.lang.Throwable exception) |
Create a debug log entry.
|
static void |
debug(java.lang.Throwable exception,
java.lang.String message,
java.lang.Object... arguments) |
Create a debug log entry. "{}" placeholders will be replaced by the given arguments.
|
static void |
error(java.lang.Object obj) |
Create an error log entry.
|
static void |
error(java.lang.String message) |
Create an error log entry.
|
static void |
error(java.lang.String message,
java.lang.Object... arguments) |
Create an error log entry. "{}" placeholders will be replaced by the given arguments.
|
static void |
error(java.lang.Throwable exception) |
Create an error log entry.
|
static void |
error(java.lang.Throwable exception,
java.lang.String message,
java.lang.Object... arguments) |
Create an error log entry. "{}" placeholders will be replaced by the given arguments.
|
static Level |
getLevel() |
Get the current global severity level.
|
static Level |
getLevel(java.lang.Class<?> classObject) |
Get the current severity level for a specific class.
|
static Level |
getLevel(java.lang.Package packageObject) |
Get the current severity level for a specific package.
|
static Level |
getLevel(java.lang.String packageOrClass) |
Get the current severity level for a specific package or class.
|
static void |
info(java.lang.Object obj) |
Create an info log entry.
|
static void |
info(java.lang.String message) |
Create an info log entry.
|
static void |
info(java.lang.String message,
java.lang.Object... arguments) |
Create an info log entry. "{}" placeholders will be replaced by the given arguments.
|
static void |
info(java.lang.Throwable exception) |
Create an info log entry.
|
static void |
info(java.lang.Throwable exception,
java.lang.String message,
java.lang.Object... arguments) |
Create an info log entry. "{}" placeholders will be replaced by the given arguments.
|
static void |
trace(java.lang.Object obj) |
Create a trace log entry.
|
static void |
trace(java.lang.String message) |
Create a trace log entry.
|
static void |
trace(java.lang.String message,
java.lang.Object... arguments) |
Create a trace log entry. "{}" placeholders will be replaced by the given arguments.
|
static void |
trace(java.lang.Throwable exception) |
Create a trace log entry.
|
static void |
trace(java.lang.Throwable exception,
java.lang.String message,
java.lang.Object... arguments) |
Create a trace log entry. "{}" placeholders will be replaced by the given arguments.
|
static void |
warn(java.lang.Object obj) |
Create a warning log entry.
|
static void |
warn(java.lang.String message) |
Create a warning log entry.
|
static void |
warn(java.lang.String message,
java.lang.Object... arguments) |
Create a warning log entry. "{}" placeholders will be replaced by the given arguments.
|
static void |
warn(java.lang.Throwable exception) |
Create a warning log entry.
|
static void |
warn(java.lang.Throwable exception,
java.lang.String message,
java.lang.Object... arguments) |
Create a warning log entry. "{}" placeholders will be replaced by the given arguments.
|
public static Level getLevel()
public static Level getLevel(java.lang.Package packageObject)
packageObject - Packagepublic static Level getLevel(java.lang.Class<?> classObject)
classObject - Name of the classpublic static Level getLevel(java.lang.String packageOrClass)
packageOrClass - Name of the package respectively classpublic static void trace(java.lang.Object obj)
obj - The result of the toString() method will be loggedpublic static void trace(java.lang.String message)
message - Text message to logpublic static void trace(java.lang.String message,
java.lang.Object... arguments)
message - Formated text for the log entryarguments - Arguments for the text messagepublic static void trace(java.lang.Throwable exception,
java.lang.String message,
java.lang.Object... arguments)
exception - Exception to logmessage - Formated text for the log entryarguments - Arguments for the text messagepublic static void trace(java.lang.Throwable exception)
exception - Exception to logpublic static void debug(java.lang.Object obj)
obj - The result of the toString() method will be loggedpublic static void debug(java.lang.String message)
message - Text message to logpublic static void debug(java.lang.String message,
java.lang.Object... arguments)
message - Formated text for the log entryarguments - Arguments for the text messagepublic static void debug(java.lang.Throwable exception,
java.lang.String message,
java.lang.Object... arguments)
exception - Exception to logmessage - Formated text for the log entryarguments - Arguments for the text messagepublic static void debug(java.lang.Throwable exception)
exception - Exception to logpublic static void info(java.lang.Object obj)
obj - The result of the toString() method will be loggedpublic static void info(java.lang.String message)
message - Text message to logpublic static void info(java.lang.String message,
java.lang.Object... arguments)
message - Formated text for the log entryarguments - Arguments for the text messagepublic static void info(java.lang.Throwable exception,
java.lang.String message,
java.lang.Object... arguments)
exception - Exception to logmessage - Formated text for the log entryarguments - Arguments for the text messagepublic static void info(java.lang.Throwable exception)
exception - Exception to logpublic static void warn(java.lang.Object obj)
obj - The result of the toString() method will be loggedpublic static void warn(java.lang.String message)
message - Text message to logpublic static void warn(java.lang.String message,
java.lang.Object... arguments)
message - Formated text for the log entryarguments - Arguments for the text messagepublic static void warn(java.lang.Throwable exception,
java.lang.String message,
java.lang.Object... arguments)
exception - Exception to logmessage - Formated text for the log entryarguments - Arguments for the text messagepublic static void warn(java.lang.Throwable exception)
exception - Exception to logpublic static void error(java.lang.Object obj)
obj - The result of the toString() method will be loggedpublic static void error(java.lang.String message)
message - Text message to logpublic static void error(java.lang.String message,
java.lang.Object... arguments)
message - Formated text for the log entryarguments - Arguments for the text messagepublic static void error(java.lang.Throwable exception,
java.lang.String message,
java.lang.Object... arguments)
exception - Exception to logmessage - Formated text for the log entryarguments - Arguments for the text messagepublic static void error(java.lang.Throwable exception)
exception - Exception to logCopyright © 2017. All rights reserved.