public class DebugHandler
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static DebugHandler |
getInstance()
Get the singleton instance of the class
|
boolean |
isDebug()
Check whether debug logging is enabled for ANY key.
|
boolean |
isDebug(java.lang.String key)
Check whether debug logging is enabled for a given key.
|
static void |
sendDebugMessage(java.lang.String text,
java.lang.String key)
Log a standard message
|
static void |
sendTimerMessage(java.lang.String text,
long start,
java.lang.String key)
Log a timer message, which is intended to show how long a given action has taken
|
public static DebugHandler getInstance()
public static void sendTimerMessage(java.lang.String text,
long start,
java.lang.String key)
Debugging is controlled by keys which are specified as system properties at application startup. If the key is not set, then any log reuests with that key are ignored.
text - A text message to put in the logstart - The time the action was started, in millisecondskey - The debug keypublic static void sendDebugMessage(java.lang.String text,
java.lang.String key)
Debugging is controlled by keys which are specified as system properties at application startup. If the key is not set, then any log reuests with that key are ignored.
text - A text message to put in the logkey - The debug keypublic boolean isDebug(java.lang.String key)
key - The debug keypublic boolean isDebug()