Skip to content
ConsoleMonster
Class

TailedLogEntry

ConsoleMonster.Live.Tails

Namespace
ConsoleMonster.Live.Tails
Assembly
ConsoleMonster
Modifiers
sealed

A completed literal log line and the metadata recognised in that line.

Inheritance

  • object
  • TailedLogEntry

Usage

Explore 4 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 2

Accepted by parameters 2

Constructors

public TailedLogEntry(string text, string? level = null, DateTimeOffset? timestamp = null, string? message = null) #

Creates a literal entry without interpreting markup or changing its text.

Parameters

text string required
The original line, excluding its line terminator.
level string? = null optional
A level or status word accepted by LogLevels; null means info.
timestamp System.DateTimeOffset? = null optional
The timestamp written in the log, or null when none is known.
message string? = null optional
The display message after recognized metadata prefixes; null uses the original text.

Exceptions

  • ArgumentNullException – text is null.

Properties

public string Text { get; } #

The original literal text, including any timestamp, level markers and markup-like characters.

public string Message { get; } #

The literal display message. Original text remains available in TailedLogEntry.Text for filtering and plain output.

public string Level { get; } #

The canonical log level: info, warn, err, verbose, debug, pass or skip.

public DateTimeOffset? Timestamp { get; } #

The log's timestamp, or null; missing timestamps are never replaced with the current time.