Table of Contents

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 LogLevel

The log level.

eventId EventId

The event id.

state TState

The state.

exception Exception

The exception.

formatter Func<TState, Exception, string>

The formatter.

Type Parameters

TState