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
CorrelationId
Gets the correlation ID for tracing related log entries.
public string? CorrelationId { get; init; }
Property Value
Elapsed
Gets the elapsed time for performance-related entries.
public TimeSpan? Elapsed { get; init; }
Property Value
Exception
Gets the exception associated with the log entry, if any.
public Exception? Exception { get; init; }
Property Value
Level
Gets the severity level of the log entry.
public LogLevel Level { get; init; }
Property Value
Message
Gets the log message.
public string Message { get; init; }
Property Value
Properties
Gets the structured properties associated with the log entry.
public IReadOnlyDictionary<string, object?> Properties { get; init; }
Property Value
Source
Gets the source component or method that generated the log entry.
public string Source { get; init; }
Property Value
Timestamp
Gets the timestamp when the log entry was created.
public DateTime Timestamp { get; init; }
Property Value
Methods
ToString()
Returns a formatted string representation of the log entry.
public override string ToString()