<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.
using System; using System.Runtime.CompilerServices; namespace Microsoft.Extensions.Logging.Abstractions { [NullableContext(1)] [Nullable(0)] public readonly struct LogEntry<[Nullable(2)] TState> { public LogLevel LogLevel { get; } public string Category { get; } public EventId EventId { get; } public TState State { get; } [Nullable(2)] public Exception Exception { [NullableContext(2)] get; } [Nullable(new byte[] { 1, 1, 2, 1 })] public Func<TState, Exception, string> Formatter { [return: Nullable(new byte[] { 1, 1, 2, 1 })] get; } public LogEntry(LogLevel logLevel, string category, EventId eventId, TState state, [Nullable(2)] Exception exception, [Nullable(new byte[] { 1, 1, 2, 1 })] Func<TState, Exception, string> formatter) { LogLevel = logLevel; Category = category; EventId = eventId; State = state; Exception = exception; Formatter = formatter; } } }