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: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
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