Provides methods for controlling trace in IBM.CTG.Client.dll.

Namespace:  IBM.CTG
Assembly:  IBM.CTG.Client (in IBM.CTG.Client.dll) Version: 9.0.0.2

Syntax

C#
public static class Trace
Visual Basic
Public NotInheritable Class Trace
Visual C++
public ref class Trace abstract sealed

Remarks

Trace in IBM.CTG.Client.dll can be enabled using an application or web configuration file, or programmatically using the Trace class.

Enabling trace using an application or web configuration file

Trace can be enabled using the CtgTrace trace switch in an application configuration file. The switch allows the trace level to be specified as a CICS TG TraceLevel value, a .NET Framework TraceLevel value, or an integer between 0 and 4 inclusive. The switch also supports optional attributes dataDumpLength and dataDumpOffset, which control the maximum amount of data written and the starting offset into the data for trace points written at CtgTrcLevel4.

Enabling trace programmatically using the Trace class

The Trace class provides the following members for controlling trace:

Inheritance Hierarchy

System..::..Object
  IBM.CTG..::..Trace

Thread Safety

Members of this type are thread safe.

See Also