org.apache.sandesha2.util
Class LoggingControl

java.lang.Object
  extended by org.apache.sandesha2.util.LoggingControl

public class LoggingControl
extends java.lang.Object

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

LoggingControl

public LoggingControl()
Method Detail

setController

public static void setController(LoggingControl.LoggingController lc)

isAnyTracingEnabled

public static boolean isAnyTracingEnabled()


Copyright © The Apache Software Foundation. All Rights Reserved.