LogEntry Class

Represents a single log entry in the log viewer.

public class LogEntry

Constructors

NameDescription
LogEntry()

LogEntry()

public LogEntry()

No documentation is available.

Properties

NameDescription
ChildrenGets or sets the child log entries nested under this entry.
ExpandedGets or sets whether this entry starts expanded (children shown). Default is false (collapsed).
LogLevelGets or sets the severity level of the log entry.
MessageGets or sets the log message payload. This can be a plain text string or a structured object.
TimestampGets or sets the timestamp when the log entry was created.

Children

LogEntry.cs

Gets or sets the child log entries nested under this entry.

public IReadOnlyList<LogEntry>? Children { get; set; }

Expanded

LogEntry.cs

Gets or sets whether this entry starts expanded (children shown). Default is false (collapsed).

public bool Expanded { get; set; }

Property value

bool

LogLevel

LogEntry.cs

Gets or sets the severity level of the log entry.

public LogLevel LogLevel { get; set; }

Property value

LogLevel

Gets or sets the log message payload. This can be a plain text string or a structured object.

public object? Message { get; set; }

Property value

object?

Timestamp

LogEntry.cs

Gets or sets the timestamp when the log entry was created.

public DateTimeOffset Timestamp { get; set; }

Property value

DateTimeOffset