Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.jcorporate.expresso.core.logging
Class LoggingSwitch  view LoggingSwitch download LoggingSwitch.java

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

public class LoggingSwitch
extends java.lang.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()