Interface IAsynchronousTraceListener
- Assembly
- Microsoft.Practices.EnterpriseLibrary.Logging.dll
Implements asynchronous tracing.
public interface IAsynchronousTraceListener
Methods
Flush(ReportTracingError)
Flushes the output buffer asynchronously.
void Flush(ReportTracingError reportError)
Parameters
reportError
ReportTracingErrorThe delegate to use to report errors while tracing asynchronously.
TraceData(TraceEventCache, string, TraceEventType, int, object, ReportTracingError)
Writes trace information, a data object and event information to the listener specific output.
void TraceData(TraceEventCache eventCache, string source, TraceEventType eventType, int id, object data, ReportTracingError reportError)
Parameters
eventCache
TraceEventCacheA TraceEventCache object that contains the current process ID, thread ID, and stack trace information.
source
stringA name used to identify the output, typically the name of the application that generated the trace event.
eventType
TraceEventTypeOne of the TraceEventType values specifying the type of event that has caused the trace.
id
intA numeric identifier for the event.
data
objectThe trace data to emit.
reportError
ReportTracingErrorThe delegate to use to report errors while tracing asynchronously.
TraceTransfer(TraceEventCache, string, int, string, Guid, ReportTracingError)
Writes trace information, a message, a related activity identity and event information to the listener specific output.
void TraceTransfer(TraceEventCache eventCache, string source, int id, string message, Guid relatedActivityId, ReportTracingError reportError)
Parameters
eventCache
TraceEventCacheA TraceEventCache object that contains the current process ID, thread ID, and stack trace information.
source
stringA name used to identify the output, typically the name of the application that generated the trace event.
id
intA numeric identifier for the event.
message
stringA message to write.
relatedActivityId
GuidA Guid object identifying a related activity.
reportError
ReportTracingErrorThe delegate to use to report errors while tracing asynchronously.