Class TraceBuffer
Records debugging traces in the NDMF preview system
public static class TraceBuffer
- Inheritance
-
TraceBuffer
- Inherited Members
Methods
Clear()
public static void Clear()
RecordTraceEvent(string, Func<TraceEvent, string>, object, object, object, string, int?, long?, bool, TraceEventLevel?)
Records a tracing event.
Note that arguments that are ComputeContext will be converted to their description string to avoid keeping those contexts alive inappropriately.
public static TraceEvent RecordTraceEvent(string eventType, Func<TraceEvent, string> formatEvent, object arg0 = null, object arg1 = null, object arg2 = null, string filename = null, int? line = null, long? parentEventId = null, bool collapse = false, TraceEventLevel? level = null)
Parameters
eventTypestringAn internal identifier for this event
formatEventFunc<TraceEvent, string>A method that will format this event to a human-readable string
arg0objectArbitrary data usable by formatEvent
arg1objectArbitrary data usable by formatEvent
arg2objectArbitrary data usable by formatEvent
filenamestringOptional filename usable by formatEvent
lineint?Optional line number usable by formatEvent
parentEventIdlong?An event ID to associate as the parent of this event; if not provided, the containing event scope will be used (see TraceEvent.Scope). If negative, no parent will be assigned.
collapseboolIf true, and the most recent event had the same eventType, overwrite that event
levelTraceEventLevel?The tracing detail level (default is INFO)