ILogger::WriteCore Method

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)

bool WriteCore(
	TraceEventType eventType, 
	int eventId, 
	Object^ state, 
	Exception^ exception, 
	Func<Object^, Exception^, String^>^ formatter
)

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.
Show: