Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFTrace.SetTraceLevel Method (AFTraceSwitchLevel)

  • Last UpdatedNov 18, 2025
  • 1 minute read
AFTrace.SetTraceLevel Method (AFTraceSwitchLevel)
Sets the overall TraceLevel to the specified level.

Namespace:  OSIsoft.AF.Diagnostics
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

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.

Version Information

AFSDK


See Also

In This Topic
TitleResults for “How to create a CRG?”Also Available in