Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ILogger.WriteCore Method (TraceEventType, Int32, Object, Exception, Func(Of 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)

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(Of Object, Exception, String)

Return Value

Type: System.Boolean

Returns Boolean.

Return to top
Show: