This class provides three utility methods and defines some common constants. The methods include:
The constants include:
Method
generateUUID()
Method description
Generates a Unique ID
Syntax
public String generateUUID()
Parameters
None
Method
logEvent
Method description
Determines whether this event should be logged
Syntax
public boolean logEvent(EventInfo eventInfo)
Parameters
Method
trace
Method description
Sets tracing
Syntax
Without exception object
public void trace(String severity, String category, String msg)
With exception object
public void trace(String severity, String category, String msg, Throwable t)
Parameters
Constants
These indicate trace severity levels:
public static final String BCG_TRACE_SEVERITY_DEBUG = "Debug" public static final String BCG_TRACE_SEVERITY_INFO = "Info" public static final String BCG_TRACE_SEVERITY_WARNING = "Warning" public static final String BCG_TRACE_SEVERITY_ERROR = "Error" public static final String BCG_TRACE_SEVERITY_CRITICAL = "Critical"