LogEntry Pennington.Tui
A single captured log record, held in BoundedSequenceLog<LogEntry>.
Properties
Categorystring- Logger category (typically the type name).
ExceptionSystem.Exception?- Default:
nullException attached to the record, if any. LevelLogLevel- Severity level.
Messagestring- Formatted log message.
Sequencelong- Default:
0Monotonically increasing id assigned at append time. TimestampSystem.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
Sequencelong- Monotonically increasing id assigned at append time.
TimestampDateTimeOffset- When the record was written.
LevelLogLevel- Severity level.
Categorystring- Logger category (typically the type name).
Messagestring- Formatted log message.
ExceptionException?- 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
;
}