Table of Contents

Class StructuredLogEntry

Namespace
DotCompute.Abstractions.Logging
Assembly
DotCompute.Abstractions.dll

Represents a structured log entry with metadata.

public sealed class StructuredLogEntry
Inheritance
StructuredLogEntry
Inherited Members

Properties

CorrelationId

Gets the correlation ID, if available.

public string? CorrelationId { get; init; }

Property Value

string

Exception

Gets the exception information, if available.

public Exception? Exception { get; init; }

Property Value

Exception

FormattedMessage

Gets the formatted message.

public required string FormattedMessage { get; init; }

Property Value

string

LogLevel

Gets the log level.

public required LogLevel LogLevel { get; init; }

Property Value

LogLevel

Properties

Gets the log properties.

public required IReadOnlyDictionary<string, object?> Properties { get; init; }

Property Value

IReadOnlyDictionary<string, object>

Timestamp

Gets the timestamp of the log entry.

public required DateTimeOffset Timestamp { get; init; }

Property Value

DateTimeOffset