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
Exception
Gets the exception information, if available.
public Exception? Exception { get; init; }
Property Value
FormattedMessage
Gets the formatted message.
public required string FormattedMessage { get; init; }
Property Value
LogLevel
Gets the log level.
public required LogLevel LogLevel { get; init; }
Property Value
Properties
Gets the log properties.
public required IReadOnlyDictionary<string, object?> Properties { get; init; }
Property Value
Timestamp
Gets the timestamp of the log entry.
public required DateTimeOffset Timestamp { get; init; }