Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Microsoft.​Extensions.​Logging.​Abstractions.​BufferedLogRecord
Assembly: Microsoft.Extensions.Logging.Abstractions
Inheritance: object → BufferedLogRecord
Represents a buffered log record to be written in batch to an <see cref="T:Microsoft.Extensions.Logging.Abstractions.IBufferedLogger" /> .
Remarks
Instances of this type can be pooled and reused. Implementations of <see cref="T:Microsoft.Extensions.Logging.Abstractions.IBufferedLogger" /> must
not hold onto instance of <see cref="T:Microsoft.Extensions.Logging.Abstractions.BufferedLogRecord" /> passed to its <see cref="M:Microsoft.Extensions.Logging.Abstractions.IBufferedLogger.LogRecords(System.Collections.Generic.IEnumerable{Microsoft.Extensions.Logging.Abstractions.BufferedLogRecord})" /> method
beyond the invocation of that method.
Properties
Timestamp
Gets the time when the log record was first created.
public
LogLevel
LogLevel
Gets the record's logging severity level.
public
EventId
EventId
Gets the record's event ID.
public
string
Exception
Gets an exception string for this record.
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.
public
int?
ManagedThreadId
Gets the ID of the thread that created the log record.
public
string
FormattedMessage
Gets the formatted log message.
public
string
MessageTemplate
Gets the original log message template.
public
System.​Collections.​Generic.​IReadOnlyList<​System.​Collections.​Generic.​KeyValuePair<​string, object>>
Attributes
Gets the variable set of name/value pairs associated with the record.
Methods
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object