ILogger.WriteCore Method

Definition

Aggregates most logging patterns to a single method. This must be compatible with the Func representation in the OWIN environment.

To check IsEnabled call WriteCore with only TraceEventType and check the return value, no event will be written.

public bool WriteCore (System.Diagnostics.TraceEventType eventType, int eventId, object state, Exception exception, Func<object,Exception,string> formatter);
abstract member WriteCore : System.Diagnostics.TraceEventType * int * obj * Exception * Func<obj, Exception, string> -> bool
Public Function WriteCore (eventType As TraceEventType, eventId As Integer, state As Object, exception As Exception, formatter As Func(Of Object, Exception, String)) As Boolean

Parameters

eventType
TraceEventType
eventId
Int32
state
Object
exception
Exception

Returns

Applies to