 | ColoredConsoleTargetUseDefaultRowHighlightingRules Property |
Gets or sets a value indicating whether to use default row highlighting rules.
Namespace:
NLog.Targets
Assembly:
NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntaxpublic 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:
Boolean
Remarks
Default:
which enables the following rules:
Condition | Foreground Color | Background Color |
---|
level == LogLevel.Fatal | Red | NoChange |
level == LogLevel.Error | Red | NoChange |
level == LogLevel.Warn | Yellow | NoChange |
level == LogLevel.Info | White | NoChange |
level == LogLevel.Debug | Gray | NoChange |
level == LogLevel.Trace | Gray | NoChange |
See Also