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

TraceSourceCollectingTraceListener.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.TraceSource
Assembly:  PostSharp.Patterns.Diagnostics.Backends.Tracing (in PostSharp.Patterns.Diagnostics.Backends.Tracing.dll) Version: 6.10.5.0 (6.10.5.0)
Syntax
C#
protected override 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