Skip to content
ConsoleMonster
Class

LogHighlighter

ConsoleMonster.Highlighting

Namespace
ConsoleMonster.Highlighting
Assembly
ConsoleMonster
Modifiers
sealed

Log lines: the time stamp at the start, the level (error, warning, information, debug and trace words in their usual spellings), a [logger] or [component] after it, and smart values in the message.

Inheritance

  • object
  • LogHighlighter

Constructors

public LogHighlighter() #

Methods

public IReadOnlyList<HighlightToken> Tokenize(string text) #

Tokenizes text.

Parameters

text string required
The text (any line endings).

Returns

IReadOnlyList<HighlightToken> The tokens, in order and not overlapping.

Properties

public string Name { get; } #

The language name, for example "json" (lower case).