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
logLevelLogLevelThe log level.
eventIdEventIdThe event id.
stateTStateThe state.
exceptionExceptionThe exception.
formatterFunc<TState, Exception, string>The formatter.
Type Parameters
TState