| ColoredConsoleTargetUseDefaultRowHighlightingRules Property |
Gets or sets a value indicating whether to use default row highlighting rules.
Namespace:
NLog.Targets
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public bool UseDefaultRowHighlightingRules { get; set; }
Public Property UseDefaultRowHighlightingRules As Boolean
Get
Set
Dim instance As ColoredConsoleTarget
Dim value As Boolean
value = instance.UseDefaultRowHighlightingRules
instance.UseDefaultRowHighlightingRules = value
member UseDefaultRowHighlightingRules : bool with get, set
Property Value
Type:
BooleanRemarks
The default rules are:
Condition | Foreground Color | Background Color |
---|
level == LogLevel.Fatal | Red | NoChange |
level == LogLevel.Error | Yellow | NoChange |
level == LogLevel.Warn | Magenta | NoChange |
level == LogLevel.Info | White | NoChange |
level == LogLevel.Debug | Gray | NoChange |
level == LogLevel.Trace | DarkGray | NoChange |
See Also