<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.0-preview.5.25277.114" />

LogEntry<TState>

public struct LogEntry<TState>
Holds the information for a single log entry.
public string Category { get; }

Gets the log category.

public EventId EventId { get; }

Gets the log event ID.

public Exception Exception { get; }

Gets the log exception.

public Func<TState, Exception, string> Formatter { get; }

Gets the formatter.

public LogLevel LogLevel { get; }

Gets the log level.

public TState State { get; }

Gets the state.

public LogEntry(LogLevel logLevel, string category, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter)

Initializes an instance of the LogEntry struct.