AFTrace.SetTraceLevel Method (AFTraceSwitchLevel)
- Last UpdatedJan 12, 2026
- 1 minute read
- PI System
- AF SDK 3.2.0
- Developer
Sets the overall TraceLevel to the specified level.
Namespace: OSIsoft.AF.Diagnostics
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
Syntax
public static void SetTraceLevel( AFTraceSwitchLevel level )
Public Shared Sub SetTraceLevel ( level As AFTraceSwitchLevel ) Dim level As AFTraceSwitchLevel AFTrace.SetTraceLevel(level)
public: static void SetTraceLevel( AFTraceSwitchLevel level )
static member SetTraceLevel : level : AFTraceSwitchLevel -> unit
Parameters
- level
- Type: OSIsoft.AF.DiagnosticsAFTraceSwitchLevel
The new value for the overall TraceLevel.