Freigeben über


BufferedLogRecord Class

Definition

Represents a buffered log record to be written in batch to an IBufferedLogger.

public ref class BufferedLogRecord abstract
public abstract class BufferedLogRecord
type BufferedLogRecord = class
Public MustInherit Class BufferedLogRecord
Inheritance
BufferedLogRecord

Remarks

Instances of this type can be pooled and reused. Implementations of IBufferedLogger must not hold onto instance of BufferedLogRecord passed to its LogRecords(IEnumerable<BufferedLogRecord>) method beyond the invocation of that method.

Constructors

BufferedLogRecord()

Properties

ActivitySpanId

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

ActivityTraceId

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

Attributes

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

EventId

Gets the record's event ID.

Exception

Gets an exception string for this record.

FormattedMessage

Gets the formatted log message.

LogLevel

Gets the record's logging severity level.

ManagedThreadId

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

MessageTemplate

Gets the original log message template.

Timestamp

Gets the time when the log record was first created.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to