net.esper.util
Class ExecutionPathDebugLog

java.lang.Object
  extended by net.esper.util.ExecutionPathDebugLog

public class ExecutionPathDebugLog
extends Object

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 engines within the module or VM.


Constructor Summary
ExecutionPathDebugLog()
           
 
Method Summary
static boolean isEnabled()
          Returns true to allow execution path debug logging, or false if not.
static void setDebugEnabled(Boolean debugEnabled)
          Sets execution path debug logging.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutionPathDebugLog

public ExecutionPathDebugLog()
Method Detail

isEnabled

public static boolean isEnabled()
Returns true to allow execution path debug logging, or false if not.

Returns:
true for debug logging, false for no debug logging

setDebugEnabled

public static void setDebugEnabled(Boolean debugEnabled)
Sets execution path debug logging.

Parameters:
debugEnabled - true for allowing Log4j debug log messages to be generated for the execution path