public Boolean isTraceEnabled(int traceLevel)
Returns true if the current system trace level is set to the specified trace level; returns false if the two trace levels are not the same.
The isTraceEnabled() method is useful in determining if a trace message should or should not be logged. Because tracing can decrease performance, this method is useful in the development phase of a project.
if ( isTraceEnabled(3) ) { trace("Print this level-3 trace message"); }