<PackageReference Include="NLog" Version="6.1.4" />

NLog.Targets.ConsoleWordHighlightingRule

Highlighting rule for Win32 colorful console.
public ConsoleOutputColor BackgroundColor { get; set; }

Gets or sets the background color.

public ConditionExpression Condition { get; set; }

Gets or sets the condition that must be met before scanning the row for highlight of words

public ConsoleOutputColor ForegroundColor { get; set; }

Gets or sets the foreground color.

public bool IgnoreCase { get; set; }

Gets or sets a value indicating whether to ignore case when comparing texts.

public string Text { get; set; }

Gets or sets the text to be matched for Highlighting.

public bool WholeWords { get; set; }

Gets or sets a value indicating whether to match whole words only.

public List<string> Words { get; set; }

Gets or sets the list of words to be matched for Highlighting.

Initializes a new instance of the ConsoleWordHighlightingRule class.

public ConsoleWordHighlightingRule(string text, ConsoleOutputColor foregroundColor, ConsoleOutputColor backgroundColor)

Initializes a new instance of the ConsoleWordHighlightingRule class.