Struct LogEntry<TState>
Assembly: Microsoft.Extensions.Logging.Abstractions.dll
Syntax
public readonly struct LogEntry<TState>
Type Parameters
Constructors
LogEntry(LogLevel, string, EventId, TState, Exception?, Func<TState, Exception?, string>)
Declaration
public LogEntry(LogLevel logLevel, string category, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Parameters
Properties
Category
Declaration
public string Category { get; }
Property Value
EventId
Declaration
public EventId EventId { get; }
Property Value
Exception
Declaration
public Exception? Exception { get; }
Property Value
Formatter
Declaration
public Func<TState, Exception?, string>? Formatter { get; }
Property Value
LogLevel
Declaration
public LogLevel LogLevel { get; }
Property Value
State
Declaration
public TState State { get; }
Property Value