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

BufferedLogRecord

public abstract class BufferedLogRecord
Represents a buffered log record to be written in batch to an IBufferedLogger.
public virtual ActivitySpanId? ActivitySpanId { get; }

Gets an activity span ID for this record, representing the state of the thread that created the record.

public virtual ActivityTraceId? ActivityTraceId { get; }

Gets an activity trace ID for this record, representing the state of the thread that created the record.

public virtual IReadOnlyList<KeyValuePair<string, object>> Attributes { get; }

Gets the variable set of name/value pairs associated with the record.

public abstract EventId EventId { get; }

Gets the record's event ID.

public virtual string Exception { get; }

Gets an exception string for this record.

public virtual string FormattedMessage { get; }

Gets the formatted log message.

public abstract LogLevel LogLevel { get; }

Gets the record's logging severity level.

public virtual int? ManagedThreadId { get; }

Gets the ID of the thread that created the log record.

public virtual string MessageTemplate { get; }

Gets the original log message template.

public abstract DateTimeOffset Timestamp { get; }

Gets the time when the log record was first created.

protected BufferedLogRecord()