Click or drag to resize

ConsoleRowHighlightingRule Class

The row-highlighting condition.
Inheritance Hierarchy
SystemObject
  NLog.TargetsConsoleRowHighlightingRule

Namespace:  NLog.Targets
Assembly:  NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntax
public class ConsoleRowHighlightingRule

The ConsoleRowHighlightingRule type exposes the following members.

Constructors
  NameDescription
Public methodConsoleRowHighlightingRule
Initializes a new instance of the ConsoleRowHighlightingRule class.
Public methodConsoleRowHighlightingRule(ConditionExpression, ConsoleOutputColor, ConsoleOutputColor)
Initializes a new instance of the ConsoleRowHighlightingRule class.
Top
Properties
  NameDescription
Public propertyBackgroundColor
Gets or sets the background color.
Public propertyCondition
Gets or sets the condition that must be met in order to set the specified foreground and background color.
Public propertyStatic memberDefault
Gets the default highlighting rule. Doesn't change the color.
Public propertyForegroundColor
Gets or sets the foreground color.
Top
Methods
  NameDescription
Public methodCheckCondition
Checks whether the specified log event matches the condition (if any).
Top
See Also