Skip to content

FileLoggingOutput.Log(LogLevel, EventId, TState, Exception?, Func<TState, Exception?, string>, string)

Log(LogLevel, EventId, TState, Exception?, Func<TState, Exception?, string>, string)

View source
public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter, string category)
Logs a message.

Parameters

logLevelLogLevel
The log level.
eventIdEventId
The event identifier.
stateTState
The state.
exceptionException?
The exception.
formatterFunc<TState, Exception?, string>
The formatter.
categorystring
The category.