public class LoggerUtils
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
LoggerUtils.ExceptionLogger |
| Constructor and Description |
|---|
LoggerUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addDisabledLogger(java.lang.Class<?> clazz) |
static org.slf4j.Logger |
getLogger(java.lang.Class<?> clazz) |
static org.slf4j.Logger |
getLogger(java.lang.Object name) |
static boolean |
isEnabled() |
static void |
logHandledException(org.slf4j.Logger defaultLogger,
java.lang.Exception e)
Log the
Exception on the LoggerUtils.ExceptionLogger. |
static void |
setDefaultLoggerFactory(org.slf4j.ILoggerFactory defaultLoggerFactory) |
static void |
setEnabled(boolean enabled) |
static void |
setExceptionLogger(LoggerUtils.ExceptionLogger exceptionLogger) |
public static org.slf4j.Logger getLogger(java.lang.Object name)
public static org.slf4j.Logger getLogger(java.lang.Class<?> clazz)
public static void setEnabled(boolean enabled)
public static boolean isEnabled()
public static void setDefaultLoggerFactory(org.slf4j.ILoggerFactory defaultLoggerFactory)
public static void addDisabledLogger(java.lang.Class<?> clazz)
public static void logHandledException(org.slf4j.Logger defaultLogger,
java.lang.Exception e)
Exception on the LoggerUtils.ExceptionLogger. If it is null, the defaultLogger is useddefaultLogger - The Logger used if the LoggerUtils.ExceptionLogger is nulle - The Exception to logpublic static void setExceptionLogger(LoggerUtils.ExceptionLogger exceptionLogger)