com.espertech.esper.client
Class ConfigurationEngineDefaults.Logging

java.lang.Object
  extended by com.espertech.esper.client.ConfigurationEngineDefaults.Logging
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
ConfigurationEngineDefaults

public static class ConfigurationEngineDefaults.Logging
extends java.lang.Object
implements java.io.Serializable

Holds view logging settings other then the Apache commons or Log4J settings.

See Also:
Serialized Form

Constructor Summary
protected ConfigurationEngineDefaults.Logging()
          Ctor - sets up defaults.
 
Method Summary
 java.lang.String getAuditPattern()
          Returns the pattern that formats audit logs.
 boolean isEnableExecutionDebug()
          Returns true if execution path debug logging is enabled.
 boolean isEnableJDBC()
          Returns an indicator whether JDBC query reporting is enabled.
 boolean isEnableQueryPlan()
          Returns indicator whether query plan logging is enabled or not.
 boolean isEnableTimerDebug()
          Returns true if timer debug level logging is enabled (true by default).
 void setAuditPattern(java.lang.String auditPattern)
          Sets the audit formatting pattern that formats audit logs, or null if using default format.
 void setEnableExecutionDebug(boolean enableExecutionDebug)
          Set the debug flag for debugging the execution path, in which case the engine logs to Log4j in debug-level during execution.
 void setEnableJDBC(boolean enableJDBC)
          Set the indicator whether JDBC query reporting is enabled.
 void setEnableQueryPlan(boolean enableQueryPlan)
          Set indicator whether query plan logging is enabled, by default it is disabled.
 void setEnableTimerDebug(boolean enableTimerDebug)
          Set this value to false to reduce the debug-level logging output for the timer thread(s).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationEngineDefaults.Logging

protected ConfigurationEngineDefaults.Logging()
Ctor - sets up defaults.

Method Detail

isEnableExecutionDebug

public boolean isEnableExecutionDebug()
Returns true if execution path debug logging is enabled.

Only if this flag is set to true, in addition to LOG4J settings set to DEBUG, does an engine instance, produce debug out.

Returns:
true if debug logging through Log4j is enabled for any event processing execution paths

setEnableExecutionDebug

public void setEnableExecutionDebug(boolean enableExecutionDebug)
Set the debug flag for debugging the execution path, in which case the engine logs to Log4j in debug-level during execution.

Parameters:
enableExecutionDebug - false to disable debug logging in the execution path, true to enable

isEnableTimerDebug

public boolean isEnableTimerDebug()
Returns true if timer debug level logging is enabled (true by default).

Set this value to false to reduce the debug-level logging output for the timer thread(s). For use only when debug-level logging is enabled.

Returns:
indicator whether timer execution is noisy in debug or not

setEnableTimerDebug

public void setEnableTimerDebug(boolean enableTimerDebug)
Set this value to false to reduce the debug-level logging output for the timer thread(s). For use only when debug-level logging is enabled.

Parameters:
enableTimerDebug - indicator whether timer execution is noisy in debug or not (true is noisy)

isEnableQueryPlan

public boolean isEnableQueryPlan()
Returns indicator whether query plan logging is enabled or not.

Returns:
indicator

setEnableQueryPlan

public void setEnableQueryPlan(boolean enableQueryPlan)
Set indicator whether query plan logging is enabled, by default it is disabled.

Parameters:
enableQueryPlan - indicator

isEnableJDBC

public boolean isEnableJDBC()
Returns an indicator whether JDBC query reporting is enabled.

Returns:
indicator

setEnableJDBC

public void setEnableJDBC(boolean enableJDBC)
Set the indicator whether JDBC query reporting is enabled.

Parameters:
enableJDBC - set to true for JDBC query reorting enabled

getAuditPattern

public java.lang.String getAuditPattern()
Returns the pattern that formats audit logs.

Available conversion characters are:

%m - Used to output the audit message. %s - Used to output the statement name. %u - Used to output the engine URI.

Returns:
audit formatting pattern

setAuditPattern

public void setAuditPattern(java.lang.String auditPattern)
Sets the audit formatting pattern that formats audit logs, or null if using default format.

Parameters:
auditPattern - pattern to use

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com