public final class Logger extends Object
Modifier and Type | Method and 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(Throwable exception)
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 |
error(Object obj)
Create an error log entry.
|
static void |
error(String message)
Create an error log entry.
|
static void |
error(String message,
Object... arguments)
Create an error log entry. "{}" placeholders will be replaced by the given arguments.
|
static void |
error(Throwable exception)
Create an error log entry.
|
static void |
error(Throwable exception,
String message,
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(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 an info log entry.
|
static void |
info(String message)
Create an info log entry.
|
static void |
info(String message,
Object... arguments)
Create an info log entry. "{}" placeholders will be replaced by the given arguments.
|
static void |
info(Throwable exception)
Create an info log entry.
|
static void |
info(Throwable exception,
String message,
Object... arguments)
Create an info log entry. "{}" placeholders will be replaced by the given arguments.
|
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(Throwable exception)
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 |
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(Throwable exception)
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.
|
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(String message, Object... arguments)
message
- Formated text for the log entryarguments
- Arguments for the text messagepublic static void trace(Throwable exception, String message, Object... arguments)
exception
- Exception to logmessage
- Formated text for the log entryarguments
- Arguments for the text messagepublic static void trace(Throwable exception)
exception
- Exception to logpublic 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(String message, Object... arguments)
message
- Formated text for the log entryarguments
- Arguments for the text messagepublic static void debug(Throwable exception, String message, Object... arguments)
exception
- Exception to logmessage
- Formated text for the log entryarguments
- Arguments for the text messagepublic static void debug(Throwable exception)
exception
- Exception to logpublic 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(String message, Object... arguments)
message
- Formated text for the log entryarguments
- Arguments for the text messagepublic static void info(Throwable exception, String message, Object... arguments)
exception
- Exception to logmessage
- Formated text for the log entryarguments
- Arguments for the text messagepublic static void info(Throwable exception)
exception
- Exception to logpublic 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(String message, Object... arguments)
message
- Formated text for the log entryarguments
- Arguments for the text messagepublic static void warn(Throwable exception, String message, Object... arguments)
exception
- Exception to logmessage
- Formated text for the log entryarguments
- Arguments for the text messagepublic static void warn(Throwable exception)
exception
- Exception to logpublic 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(String message, Object... arguments)
message
- Formated text for the log entryarguments
- Arguments for the text messagepublic static void error(Throwable exception, String message, Object... arguments)
exception
- Exception to logmessage
- Formated text for the log entryarguments
- Arguments for the text messagepublic static void error(Throwable exception)
exception
- Exception to logCopyright © 2017. All rights reserved.