Initializes a new instance of the StructuredTraceSource class.
Namespace: CleanCode.DiagnosticsAssembly: CleanCode (in CleanCode.dll) Version: 1.2.3.0 (1.2.03)
Syntax
public StructuredTraceSource( string name, SourceLevels defaultLevel )
Parameters
- name
- Type:
System String
The key name identifying this trace, typically the name of the class or application.
- defaultLevel
- Type:
System.Diagnostics SourceLevels
A bitwise combination of the
SourceLevels values that specifies the default source level at which to trace.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | name is an empty string (""). |
| ArgumentNullException | name is null. |
See Also