BCGUtil

This class provides three utility methods and defines some common constants. The methods 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

eventInfo
The event information

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

severity
A constant indicating severity level. See below.

category
The affected module name

msg
The trace message

t
The exception

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"

Copyright IBM Corp. 2003, 2004