LogEntry
ConsoleMonster.Widgets
One line in a LogRegion.
Inheritance
- object
- LogEntry
Usage
Explore 5 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 3
- Property LogViewport.Entries
- Property LogTailView.Entries
- Property LogRegion.Entries
Accepted by parameters 2
- Method LogFilter.Matches
- Method LogRegion.Write
Constructors
public LogEntry(TimeSpan time, string level, string text) #Creates an entry.
Parameters
- time System.TimeSpan
- Session time of the entry.
- level string
- Level: out, err, info, warn, verbose, debug, host, pass, fail.
- text string
- The text (single line).
public LogEntry(TimeSpan time, string level, string text, DateTimeOffset? timestamp) #Creates a literal entry with session time and an optional source timestamp.
Parameters
- time System.TimeSpan
- Session time of the entry.
- level string
- The source timestamp, or null when unknown.
- text string
- The canonical log level.
- timestamp System.DateTimeOffset?
- The original literal text.
public LogEntry(TimeSpan time, string level, string text, DateTimeOffset? timestamp, string? tag) #Creates a literal entry from a named source, shown in the tag column and matched by LogFilter.Tag.
Parameters
- time System.TimeSpan
- Session time of the entry.
- level string
- The canonical log level.
- text string
- The original literal text.
- timestamp System.DateTimeOffset?
- The source timestamp, or null when unknown.
- tag string?
- The source (a job, component or item name), or null.
public LogEntry(TimeSpan time, string level, RichText text) #Creates a multicolour entry.
Parameters
- time System.TimeSpan
- Session time of the entry.
- level string
- The level.
- text ConsoleMonster.Text.RichText
- The rich line.
Inherited Methods
Properties
public DateTimeOffset? Timestamp { get; } #The source timestamp, or null when none was supplied.
public string? Tag { get; } #The source the entry came from (a job, component or item name), or null.
public RichText? RichText { get; private set; } #The rich source, or null for literal LogEntry.Text. Select LogEntry.LineIndex after rendering the source.
public int LineIndex { get; private set; } #Zero-based line in LogEntry.RichText represented by this entry; zero for single-line or literal entries.