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.5.0+1873145cbc26e0312d9481234d69ce7dc68aac4e
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