Method Log
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
Log<TState>(LogLevel, EventId, TState, Exception?, Func<TState, Exception?, string>)
Logs an event.
public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Parameters
logLevel
LogLevelThe log level.
eventId
EventIdThe event id.
state
TStateThe state.
exception
ExceptionThe exception.
formatter
Func<TState, Exception, string>The formatter.
Type Parameters
TState