Skip to content

InMemoryLogBuffer.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 to the buffer.

Parameters

logLevelLogLevel
eventIdEventId
stateTState
exceptionException?
formatterFunc<TState, Exception?, string>
categorystring