This site provides a machine-readable index at /llms.txt.

Skip to main content Skip to navigation

LogEntry Pennington.Tui

A single captured log record, held in BoundedSequenceLog<LogEntry>.

Properties

Category string
Logger category (typically the type name).
Exception System.Exception?
Default: null
Exception attached to the record, if any.
Level LogLevel
Severity level.
Message string
Formatted log message.
Sequence long
Default: 0
Monotonically increasing id assigned at append time.
Timestamp System.DateTimeOffset
When the record was written.

Constructors

.ctor

#
public readonly record struct LogEntry(
    long Sequence,
    DateTimeOffset Timestamp,
    LogLevel Level,
    string Category,
    string Message,
    Exception? Exception);

A single captured log record, held in BoundedSequenceLog<LogEntry>.

Parameters

Sequence long
Monotonically increasing id assigned at append time.
Timestamp DateTimeOffset
When the record was written.
Level LogLevel
Severity level.
Category string
Logger category (typically the type name).
Message string
Formatted log message.
Exception Exception?
Exception attached to the record, if any.

Pennington.Tui.LogEntry

namespace Pennington.Tui;

/// A single captured log record, held in BoundedSequenceLog<LogEntry>.
public record LogEntry
{
    /// A single captured log record, held in BoundedSequenceLog<LogEntry>.
    
public readonly record struct LogEntry(
    long Sequence,
    DateTimeOffset Timestamp,
    LogLevel Level,
    string Category,
    string Message,
    Exception? Exception);
/// Logger category (typically the type name).
string Category
; /// Exception attached to the record, if any.
Exception? Exception
; /// Severity level.
LogLevel Level
; /// Formatted log message.
string Message
; /// Monotonically increasing id assigned at append time.
long Sequence
; /// When the record was written.
DateTimeOffset Timestamp
; }