Share via


ILogger.WriteCore Method (TraceEventType, Int32, Object, Exception, Func<Object, Exception, String>)

 

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.

Namespace:   Microsoft.Owin.Logging
Assembly:  Microsoft.Owin (in Microsoft.Owin.dll)

Syntax

bool WriteCore(
    TraceEventType eventType,
    int eventId,
    object state,
    Exception exception,
    Func<object, Exception, string> formatter
)
bool WriteCore(
    TraceEventType eventType,
    int eventId,
    Object^ state,
    Exception^ exception,
    Func<Object^, Exception^, String^>^ formatter
)
abstract WriteCore : 
        eventType:TraceEventType *
        eventId:int *
        state:Object *
        exception:Exception *
        formatter:Func<Object, Exception, string> -> bool
Function WriteCore (
    eventType As TraceEventType,
    eventId As Integer,
    state As Object,
    exception As Exception,
    formatter As Func(Of Object, Exception, String)
) As Boolean

Parameters

Return Value

Type: System.Boolean

Returns Boolean.

See Also

ILogger Interface
Microsoft.Owin.Logging Namespace

Return to top