public class ExecutionPathDebugLog extends Object
As Log4j will return true to the "log.isDebugEnabled()" call when there is no log4j configuration, this leaves the door open to poor execution time performance if one forgets the log4j config file.
Note that a static variable control this setting and therefore the debug-enable applies to engines within the module or VM.
Modifier and Type | Field and Description |
---|---|
static boolean |
isDebugEnabled
Public access.
|
static boolean |
isTimerDebugEnabled
Public access.
|
Constructor and Description |
---|
ExecutionPathDebugLog() |
Modifier and Type | Method and Description |
---|---|
static void |
setDebugEnabled(Boolean debugEnabled)
Sets execution path debug logging.
|
static void |
setTimerDebugEnabled(Boolean timerDebugEnabled)
Sets debug logging for timer.
|
public static boolean isDebugEnabled
public static boolean isTimerDebugEnabled
public static void setDebugEnabled(Boolean debugEnabled)
debugEnabled
- true for allowing Log4j debug log messages to be generated for the execution pathpublic static void setTimerDebugEnabled(Boolean timerDebugEnabled)
timerDebugEnabled
- true for allowing Log4j debug log messages for regular timer execution