public class ViewerLogger extends Object
Implements logging messages to integrated or user defined logger.
Constructor and Description |
---|
ViewerLogger() |
Modifier and Type | Method and Description |
---|---|
static void |
debug(String message,
Object... arguments)
Debug message
|
static void |
debug(Throwable throwable,
String message,
Object... arguments)
Debug message
|
static void |
error(String message,
Object... arguments)
Error message
|
static void |
error(Throwable throwable,
String message,
Object... arguments)
Error message
|
static boolean |
isDebugEnabled()
Checks is debug logging enabled
|
static boolean |
isErrorEnabled()
Checks is error logging enabled
|
static boolean |
isTraceEnabled()
Checks is trace logging enabled
|
static boolean |
isWarningEnabled()
Checks is warning logging enabled
|
static void |
setLogger(com.groupdocs.foundation.logging.ILogger logger)
Sets the logger.
|
static void |
trace(String message,
Object... arguments)
Trace message
|
static void |
trace(Throwable throwable,
String message,
Object... arguments)
Trace message
|
static void |
warning(String message,
Object... arguments)
Warning message
|
static void |
warning(Throwable throwable,
String message,
Object... arguments)
Warning message
|
public static void debug(String message, Object... arguments)
Debug message
message
- The debug message, can contains {} to be replaced with argumentsarguments
- The arguments, replaces {} in message in order of passingpublic static void debug(Throwable throwable, String message, Object... arguments)
Debug message
throwable
- The exception messagemessage
- The debug message, can contains {} to be replaced with argumentsarguments
- The arguments, replaces {} in message in order of passingpublic static void error(String message, Object... arguments)
Error message
message
- The error message, can contains {} to be replaced with argumentsarguments
- The arguments, replaces {} in message in order of passingpublic static void error(Throwable throwable, String message, Object... arguments)
Error message
throwable
- The exception messagemessage
- The error message, can contains {} to be replaced with argumentsarguments
- The arguments, replaces {} in message in order of passingpublic static boolean isDebugEnabled()
public static boolean isErrorEnabled()
public static boolean isTraceEnabled()
public static boolean isWarningEnabled()
public static void setLogger(com.groupdocs.foundation.logging.ILogger logger)
Sets the logger.
logger
- The input logger.public static void trace(String message, Object... arguments)
Trace message
message
- The trace message, can contains {} to be replaced with argumentsarguments
- The arguments, replaces {} in message in order of passingpublic static void trace(Throwable throwable, String message, Object... arguments)
Trace message
throwable
- The exception messagemessage
- The trace message, can contains {} to be replaced with argumentsarguments
- The arguments, replaces {} in message in order of passingpublic static void warning(String message, Object... arguments)
Warning message
message
- The warning message, can contains {} to be replaced with argumentsarguments
- The arguments, replaces {} in message in order of passing