public final class Log
extends java.lang.Object
setDebugLevel(Debug.DEBUG_LEVEL_WARNING);| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Marker |
DEBUG_LAYER_APPLICATION
Should be used to show application layer (device+service) debug messages
|
static org.slf4j.Marker |
DEBUG_LAYER_COMMUNICATION
Should be used to show communication layer debug messages.
|
static org.slf4j.Marker |
DEBUG_LAYER_FRAMEWORK
Should be used to show general framework debug messages.
|
| Constructor and Description |
|---|
Log() |
| Modifier and Type | Method and Description |
|---|---|
static void |
debug(java.lang.String msg)
Logs a debug message.
Use this for debugging messages. The message is logged only when the current debug level is >= DEBUG_LEVEL_DEBUG. |
static void |
debug(java.lang.String msg,
org.slf4j.Marker layer)
Logs a debug message.
Use this for debugging messages. The message is logged only when the current debug level is >= DEBUG_LEVEL_DEBUG. |
static void |
error(java.lang.String msg)
Logs an error message.
Use this for messages regarding critical errors. The message is logged only when the current debug level is >= DEBUG_LEVEL_ERROR. |
static void |
info(java.lang.String msg)
Logs an info message.
Use this for informational messages. The message is logged only when the current debug level is >= DEBUG_LEVEL_INFO. |
static boolean |
isDebug()
Checks whether the current log level is at least debug.
|
static boolean |
isError()
Checks whether the current log level is at least error.
|
static boolean |
isInfo()
Checks whether the current log level is at least info.
|
static boolean |
isWarn()
Checks whether the current log level is at least warning.
|
static void |
printStackTrace(java.lang.Throwable t)
Prints stack trace, if debug level is "Error" or higher and logging of stack traces is on.
|
static void |
warn(java.lang.String msg)
Logs a warning message.
Use this for messages about malfunctions which are not so severe to be treated as errors. The message is logged only when the current debug level is >= DEBUG_LEVEL_WARN. |
public static final org.slf4j.Marker DEBUG_LAYER_FRAMEWORK
public static final org.slf4j.Marker DEBUG_LAYER_APPLICATION
public static final org.slf4j.Marker DEBUG_LAYER_COMMUNICATION
public static boolean isDebug()
public static boolean isInfo()
public static boolean isWarn()
public static boolean isError()
public static void debug(java.lang.String msg)
msg - the message to log.public static void debug(java.lang.String msg,
org.slf4j.Marker layer)
msg - the message to log.layer - the debug layer to log the message topublic static void info(java.lang.String msg)
msg - the message to log.public static void error(java.lang.String msg)
msg - the message to log.public static void warn(java.lang.String msg)
msg - the message to log.public static void printStackTrace(java.lang.Throwable t)
t - the throwable.