Open sandboxFocus

Method TraceCore

TraceCore(string, TraceEventType, string)

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

Declaration
protected override 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.

Overrides

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 override 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.

Overrides