Skip to content
ConsoleMonster
Class

LogLineParser

ConsoleMonster.Live.Tails

Namespace
ConsoleMonster.Live.Tails
Assembly
ConsoleMonster
Modifiers
static

Extracts optional metadata while preserving the entire input as literal text.

Inheritance

  • object
  • LogLineParser

Methods

public static TailedLogEntry Parse(string line) #

Parses a completed line for a leading timestamp and the first recognised whole level word.

Parameters

line string required
The literal line without its terminator.

Returns

TailedLogEntry The unchanged text, a canonical level (info by default), an optional timestamp and a display message.

Exceptions

  • ArgumentNullException – line is null.