Is Trace Enabled

Compares the specified trace level with the current trace level of the collaboration.

Inputs

Collaboration
The current collaboration object.

Trace level
An integer that specifies the trace level to be compared with the current trace level.

Output

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.

Notes

The Is Trace Enabled function block is useful in determining if a trace message should or should not be logged. Because tracing can decrease performance, Is Trace Enabled is particularly relevant during the development phase of a project.

Related information

This function block is based on the BaseCollaboration.isTraceEnabled() method. For more information, see isTraceEnabled().

Copyright IBM Corp. 2004