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

TraceCollectingTraceListener.TraceCore Method (String, TraceEventType, String)

Sends an event to PostSharp where you provide the text in its final formatted form.

Namespace:  PostSharp.Patterns.Diagnostics.Backends.Trace
Assembly:  PostSharp.Patterns.Diagnostics.Backends.Tracing (in PostSharp.Patterns.Diagnostics.Backends.Tracing.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
protected override void TraceCore(
	string eventSource,
	TraceEventType eventType,
	string text
)

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.
text
Type: System.String
Formatted message to be printed.
See Also