AFTrace Methods
- Last UpdatedNov 18, 2025
- 4 minute read
- PI System
- AF SDK 2024 R2
- Developer
The AFTrace type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| AddListener |
Adds a TraceListener to the list of listeners that receive
messages from AFTrace.
| |
| AddTracingMethodNames |
Adds the input names to the list of methods to ignore when determining the calling method.
| |
| Flush |
Flushes the trace output buffers, and causes buffered data to be written to the output listeners.
| |
| GetTraceLevel |
Returns the trace level for the object.
| |
| IsTraced |
Indicates if the specified level is traced.
| |
| RemoveListener |
Removes a TraceListener from the list of listeners that receive
messages from AFTrace.
| |
| SetTraceLevel(String) |
Sets the overall TraceLevel to the specified string
representation of the levels.
| |
| SetTraceLevel(AFTraceSwitchLevel) |
Sets the overall TraceLevel to the specified level.
| |
| SetTraceLevel(AFAnalysis, AFTraceSwitchLevel) |
Sets a trace level for an AFAnalysis object.
| |
| SetTraceLevel(AFNotification, AFTraceSwitchLevel) |
Sets the trace level for an AFNotification object.
| |
| SetTraceLevel(AFObject, AFTraceSwitchLevel) |
Sets the trace level for a specific object and its child objects.
| |
| TraceData |
Output a data trace event.
| |
| TraceDetail |
Output a detail trace event.
| |
| TraceError |
Output an error trace event.
| |
| TraceEvent(Exception) |
Output an error trace event for the exception.
| |
| 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.
|