Skip to content
ConsoleMonster

API Reference

Class

LogHighlighter

Namespace ConsoleMonster.Highlighting
Assembly ConsoleMonster
Implements
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) #
Returns: IReadOnlyList<HighlightToken>

Tokenizes text.

Parameters

text System.String requiredposition: 0
The text (any line endings).

Returns

The tokens, in order and not overlapping.

Properties

public String Name { get; } #

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