NLog v6.1.4 Release Notes
Release Date: 2026-07-08 // 4 months ago-
Improvements
- ๐ #6225 AsyncTaskTarget - Fixed bug when using BatchSize=1 and doing explicit flush and next LogEvent fails. (@snakefoot)
- #6206 MruCache - Changed to ConcurrentDictionary but still single writer. (@snakefoot)
- #6205 TargetWithFilterChain - Increase CallSite MaxCapacity from 1000 to 2000. (@snakefoot)
- #6197 JsonAttribute - New constructor with JsonLayout and Encode = false. (@snakefoot)
- #6174 Reduce AOT file-size. Changed PropertyTypeConverter to avoid Dictionary for conversion mapping. (@snakefoot)
- ๐ฏ #6177 Reduce AOT file-size. Changed LogFactory PurgeObsoleteLoggers to clone Dictionary instead of ToList. (@snakefoot)
- #6185 Reduce AOT file-size. Changed to use yield instead of Linq. (@snakefoot)
- ๐ง #6188 Reduce AOT file-size. Changed ConfigurationItemFactory from Dictionary to Array of PropertyInfo. (@snakefoot)
- #6192 Reduce AOT file-size. Changed Target FindAllLayouts to use HashSet instead of Linq Distinct. (@snakefoot)
- #6193 Reduce AOT file-size. Changed XmlLoggingConfiguration AutoReloadFileNames to use yield instead of Linq. (@snakefoot)
- #6195 Reduce AOT file-size. Changed LoggingConfiguration CheckUnusedTargets to use HashSet instead of Linq. (@snakefoot)
- #6204 TemplateEnumerator - Replace LiteralHole with CurrentHole and CurrentLiteral. (@snakefoot)
- ๐ #6223 XmlParser - ReadUntilChar avoid extra string-allocation on trim InnerText. (@snakefoot)
- ๐ #6222 XmlParser - Simplify ReadUntilChar by extracting parse of attribute-name into ReadEntityName. (@snakefoot)
- #6209 AppVeyor - Visual Studio 2026. (@snakefoot)
- โ #6199 Fixed nullable warnings from Activator.CreateInstance. (@snakefoot)
- #6190 SetupConfigurationTargetBuilder - Fix Sonar Code Smell. (@snakefoot)
- ๐จ #6176 TryNLogSpecificConversion - Refactor parsing Layout from string. (@snakefoot)
- #6210 ScopeContext - Fix List capacity for GetAllNestedStates. (@jnyrup)
- #6211 ScopeContext - Renamed PushNestedState to CollectNestedState. (@snakefoot)
- ๐ฏ #6214 ScopeContext - Rename CaptureNestedContext to CloneNestedContext. (@snakefoot)
- #6216 ScopeContext - Simplify CaptureContextProperties when only nested state. (@snakefoot)
- #6217 ScopeContext - Unify CollectNestedState implementation. (@snakefoot)
Previous changes from v6.1.3
-
Improvements
- #6168 PropertiesDictionary - Preserve MessageTemplate property details when adding extra properties. (@snakefoot)
- โก๏ธ #6149 LoggingRule - Updating FinalMinLevel should also update MinLevel when same LogLevel. (@snakefoot)
- #6165 AsyncTaskTarget - Retry with help from Task.Delay. (@snakefoot)
- #6164 DateLayoutRenderer - UniversalTime = false should only convert to local when UTC. (@snakefoot)
- #6138 SimpleLayout skip Precalculate when INoAllocationStringValueRenderer available. (@reabr)
- โก๏ธ #6158 TemplateEnumerator - Optimize ParseTextPart by direct calling IndexOfAny. (@snakefoot)
- โก๏ธ #6152 TemplateEnumerator - Optimize parsing of single digit holename. (@snakefoot)
- ๐ป #6142 InternalLogger - Skip allocating params array when no exception. (@snakefoot)
- ๐ป #6145 InternalLogger - Handle Exception ToString can throw with AOT. (@snakefoot)
- โก๏ธ #6154 ColoredConsoleTarget - Optimize Console Coloring for Word Highlight. (@snakefoot)
- 0๏ธโฃ #6159 ColoredConsoleTarget - Reset capture of previous colors after ResetDefaultColors. (@snakefoot)
- ๐ #6140 TryParseEnum - Apply Enum.TryParse since better for AOT. (@snakefoot)
- ๐ #6143 Fixed various issues reported by EnableNETAnalyzers. (@snakefoot)