Table of Contents

Class LogEntry

Namespace
FlowGraph.Core.Diagnostics
Assembly
FlowGraph.Core.dll

Represents a structured log entry with rich contextual information.

public sealed class LogEntry
Inheritance
LogEntry
Inherited Members

Properties

Category

Gets the category of the log entry.

public LogCategory Category { get; init; }

Property Value

LogCategory

CorrelationId

Gets the correlation ID for tracing related log entries.

public string? CorrelationId { get; init; }

Property Value

string

Elapsed

Gets the elapsed time for performance-related entries.

public TimeSpan? Elapsed { get; init; }

Property Value

TimeSpan?

Exception

Gets the exception associated with the log entry, if any.

public Exception? Exception { get; init; }

Property Value

Exception

Level

Gets the severity level of the log entry.

public LogLevel Level { get; init; }

Property Value

LogLevel

Message

Gets the log message.

public string Message { get; init; }

Property Value

string

Properties

Gets the structured properties associated with the log entry.

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

Property Value

IReadOnlyDictionary<string, object>

Source

Gets the source component or method that generated the log entry.

public string Source { get; init; }

Property Value

string

Timestamp

Gets the timestamp when the log entry was created.

public DateTime Timestamp { get; init; }

Property Value

DateTime

Methods

ToString()

Returns a formatted string representation of the log entry.

public override string ToString()

Returns

string