PostSharp 6.7 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Backends.​Trace Namespace / Base­Collecting­Trace­Listener Class / Base­Collecting­Trace­Listener Methods / Base­Collecting­Trace­Listener.​Trace­Core Method / Base­Collecting­Trace­Listener.​Trace­Core Method (String, Trace­Event­Type, String, Object[])

BaseCollectingTraceListener.TraceCore Method (String, TraceEventType, String, Object[])

Sends an event to PostSharp where the text is provided as a formatting string and an array of parameters.

Namespace:  PostSharp.Patterns.Diagnostics.Backends.Trace
Assembly:  PostSharp.Patterns.Diagnostics.Backends.Tracing (in PostSharp.Patterns.Diagnostics.Backends.Tracing.dll) Version: 6.7.12.0 (6.7.12.0)
Syntax
C#
protected abstract void TraceCore(
	string eventSource,
	TraceEventType eventType,
	string format,
	Object[] data
)

Parameters

eventSource
Type: System.String
Name of the trace source that's attempting to create an event.
eventType
Type: System.Diagnostics.TraceEventType
Log level of the event.
format
Type: System.String
Format of the message to be printed, with number- or text-based placeholders.
data
Type: System.Object[]
Arguments for the format. Must not be null.
See Also