Class ExecutionPathDebugLog
java.lang.Object
com.espertech.esper.common.internal.util.ExecutionPathDebugLog
Utility class that control debug-level logging in the execution path
beyond which is controlled by Log4j.
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 runtime within the module or VM.
-
Field Summary
Modifier and TypeFieldDescriptionstatic boolean
Public access.static boolean
Public access. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
setDebugEnabled
(Boolean debugEnabled) Sets execution path debug logging.static void
setTimerDebugEnabled
(Boolean timerDebugEnabled) Sets debug logging for timer.
-
Field Details
-
isDebugEnabled
public static boolean isDebugEnabledPublic access. -
isTimerDebugEnabled
public static boolean isTimerDebugEnabledPublic access.
-
-
Constructor Details
-
ExecutionPathDebugLog
public ExecutionPathDebugLog()
-
-
Method Details
-
setDebugEnabled
Sets execution path debug logging.- Parameters:
debugEnabled
- true for allowing Log4j debug log messages to be generated for the execution path
-
setTimerDebugEnabled
Sets debug logging for timer.- Parameters:
timerDebugEnabled
- true for allowing Log4j debug log messages for regular timer execution
-