Class
TailedLogEntry
ConsoleMonster.Live.Tails
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
- Method FileLogTail.ReadAvailable
- Method LogLineParser.Parse
Accepted by parameters 2
- Method ConsoleLogTail.Run
- Method LogTailView.Post
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
- The original line, excluding its line terminator.
- level string? = null
- A level or status word accepted by LogLevels; null means info.
- timestamp System.DateTimeOffset? = null
- The timestamp written in the log, or null when none is known.
- message string? = null
- The display message after recognized metadata prefixes; null uses the original text.
Exceptions
ArgumentNullException– text is null.
Inherited Methods
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.