IAFTrace Interface
- Last UpdatedNov 18, 2025
- 3 minute read
- PI System
- AF SDK 2024 R2
- Developer
This interfaces provides a way for an object to implement object-level tracing.
Namespace: OSIsoft.AF.Diagnostics
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public interface IAFTrace
Public Interface IAFTrace Dim instance As IAFTrace
public interface class IAFTrace
type IAFTrace = interface end
The IAFTrace type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| IsTraced |
Indicates if a specified level is being traced.
| |
| TraceData |
Output a data trace event.
| |
| TraceDetail |
Output a detail trace event.
| |
| TraceError |
Output an error trace event.
| |
| TraceEvent(AFTraceSwitchLevel, String) |
Output a trace event with a message.
| |
| TraceEvent(AFTraceSwitchLevel, String, Int32) |
Output a trace event with a message and a duration.
| |
| TraceEvent(AFTraceSwitchLevel, String, Object) |
Output a trace event as a formatted message with a variable number of arguments.
| |
| TraceInformation |
Output an information trace event.
| |
| TraceSummary |
Output a summary trace event.
| |
| TraceWarning |
Output a warning trace event.
|
Remarks
This interface is implemented on objects that want to provide event trace
information. The child objects will call the parent implementation which will
allow the parent to add additional information until the AFTrace
class is called to generate the message.