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