|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.sandesha2.util.LoggingControl
public class LoggingControl
log.isDebugEnabled() can be expensive. This class allows for another, cheaper call to check if ANY trace or debug logging is enabled for Sandesha2. This is pluggable to allow integration with whatever trace mechanism is provided by the environment Sandesha2 is deployed into. There is a default controller which simply returns false which can be engaged by setting the Sandesha2.LoggingControl.ProhibitDebugLogging system property.
Nested Class Summary | |
---|---|
static interface |
LoggingControl.LoggingController
|
Constructor Summary | |
---|---|
LoggingControl()
|
Method Summary | |
---|---|
static boolean |
isAnyTracingEnabled()
|
static void |
setController(LoggingControl.LoggingController lc)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LoggingControl()
Method Detail |
---|
public static void setController(LoggingControl.LoggingController lc)
public static boolean isAnyTracingEnabled()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |