StructuredTrace Constructor (BooleanSwitch, String)CleanCode C# Libraries v1.2.03 API
Initializes a new instance of the StructuredTrace class.

Namespace: CleanCode.Diagnostics
Assembly: CleanCode (in CleanCode.dll) Version: 1.2.3.0 (1.2.03)
Syntax

public StructuredTrace(
	BooleanSwitch messagesEnabledSwitch,
	string className
)

Parameters

messagesEnabledSwitch
Type: OnlineSystem.Diagnostics BooleanSwitch
Flag indicating whether to output debug lines or not.
className
Type: OnlineSystem String
Name of the class using this BooleanSwitch.
Exceptions

Remarks

This constructor includes a className, allowing you to differentiate class activity in the trace output. Every line of output will include this className in the log.
See Also