PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​Backends.​TraceBase­Collecting­Trace­ListenerTrace­Core
Open sandboxFocus

BaseCollectingTraceListener.TraceCore Method

TraceCore(String, TraceEventType, String)

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

Declaration
protected abstract void TraceCore(string eventSource, TraceEventType eventType, string text)
Parameters
Type Name Description
String eventSource

Name of the trace source that's attempting to create an event.

TraceEventType eventType

Log level of the event.

String text

Formatted message to be printed.

TraceCore(String, TraceEventType, String, Object[])

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

Declaration
protected abstract void TraceCore(string eventSource, TraceEventType eventType, string format, object[] data)
Parameters
Type Name Description
String eventSource

Name of the trace source that's attempting to create an event.

TraceEventType eventType

Log level of the event.

String format

Format of the message to be printed, with number- or text-based placeholders.

Object[] data

Arguments for the format. Must not be null.