Skip to content

Commit d72d746

Browse files
committed
NLog v6 - ColoredConsoleTarget has new Words-option
1 parent eecc217 commit d72d746

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

_posts/2025-04-29-nlog-6-0-major-changes.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,12 @@ This means word-highlighting rules no longer can scan for word-matches using Reg
420420
But logic has been implemented to continue support `IgnoreCase` and `WholeWords`
421421
for the string-matching logic.
422422

423+
NLog v6.0.3 introduces new `Words`-option to configure the same highlighting for multple words.
424+
Use a comma-separated word-list like this: `words="FastHeaders, FastSync, SnapSync"`.
425+
426+
NLog v6.0.4 extends the `WholeWords`-option, so the `Text`-option can include special characters
427+
like `text="|Warn|"` for matching, but will only highlight the word-part `Warn`.
428+
423429
### NLog Replace LayoutRenderer without RegEx
424430

425431
RegularExpressions (RegEx) is a huge API, and a big dependency for a logging library,

0 commit comments

Comments
 (0)