Skip to content

LogEntry Constructors

Represents a single log entry with its associated metadata.

LogEntry(DateTimeOffset, LogLevel, string, EventId, string, Exception?)

public LogEntry(DateTimeOffset Timestamp, LogLevel LogLevel, string Category, EventId EventId, string Message, Exception? Exception)
Represents a single log entry with its associated metadata.

Parameters

TimestampDateTimeOffset
LogLevelLogLevel
Categorystring
EventIdEventId
Messagestring
ExceptionException?