Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- eventType
 Type: System.Diagnostics.TraceEventType
- eventId
 Type: System.Int32
- state
 Type: System.Object
- exception
 Type: System.Exception
- formatter
 Type: System.Func<Object, Exception, String>
Return Value
Type: System.Boolean
Returns Boolean.
See Also
ILogger Interface
Microsoft.Owin.Logging Namespace
Return to top