java.lang.Object
com.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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
debugLogging
public static final boolean debugLogging
- See Also:
- Constant Field Values
LoggingSwitch
public LoggingSwitch()