Expresso 5-6

com.jcorporate.expresso.core.logging
Class LoggingSwitch

java.lang.Object
  extended bycom.jcorporate.expresso.core.logging.LoggingSwitch

public class LoggingSwitch
extends Object

This class is specifically to allow optimization of the Expresso debug logging statements. By changing debugLogging to false, many java compilers will optimize out any statements that would only be executed if debugLogging equals true.

The result is smaller, faster code for a production environment.

Please note that not all logging will be turned off if debugLogging is set to false. Only debug tracing statements should be wrapped in: if(LoggingSwitch.debugLogging == true) {

}

Statements. Reporting of status and exceptional conditions should be left intect and controlled through other configuration file mechanisms.


Field Summary
static boolean debugLogging
           
 
Constructor Summary
LoggingSwitch()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debugLogging

public static final boolean debugLogging
See Also:
Constant Field Values
Constructor Detail

LoggingSwitch

public LoggingSwitch()

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.