NLog v4.6.8 Release Notes
Release Date: 2019-11-04 // over 4 years ago-
๐ Bugfixes
- #3566 DatabaseTarget - Auto escape special chars in password, and improve handling of empty username/password (@304NotModified)
- ๐ #3584 LoggingRule - Fixed IndexOutOfRangeException for SetLoggingLevels with LogLevel.Off (@snakefoot)
- #3609 FileTarget - Improved handling of relative path in ArchiveFileName (@snakefoot)
- ๐ #3631 ExceptionLayoutRenderer - Fixed missing separator when Format-value gives empty result (@brinko99)
- #3647 ${substring} - Length should not be mandatory (@304NotModified)
- ๐ #3653 SimpleLayout - Fixed NullReferenceException in PreCalculate during TryGetRawValue optimization (@snakefoot)
๐ Features
- ๐ง #3578 LogFactory - AutoShutdown can be configured to unhook from AppDomain-Unload, and avoid premature shutdown with IHostBuilder (@snakefoot)
- ๐ #3579 PerformanceCounterLayoutRenderer - Added Layout-support for Instance-property (@snakefoot)
- #3583 ${local-ip} Layout Renderer for local machine ip-address (@snakefoot + @304NotModified)
- #3583 CachedLayoutRendererWrapper - Added CachedSeconds as ambient property. Ex. ${local-ip:cachedSeconds=60} (@snakefoot)
- #3586 JsonLayout - Added EscapeForwardSlash-option to skip Json-escape of forward slash (@304NotModified)
- #3593 AllEventPropertiesLayoutRenderer - Added Exclude-option that specifies property-keys to skip (@snakefoot)
- ๐ป #3611 ${Exception} - Added new Format-option values HResult and Properties (@snakefoot)
๐ Improvements
- ๐จ #3622 + #3651 ConcurrentRequestQueue refactoring to reduce code complexity (@snakefoot)
- ๐ #3636 AsyncTargetWrapper now fallback to clearing internal queue if flush fails to release blocked writer threads (@snakefoot)
- #3641 ${CallSite} - Small improvements for recognizing async callsite cases (@snakefoot)
- #3642 LogManager.GetCurrentClassLogger - Improved capture of Logger name when called within lambda_method (@snakefoot)
- #3649 ${BaseDir:FixTempDir=true} fallback to process directory for .NET Core 3 Single File Publish (@snakefoot)
- ๐ง #3649 Auto-loading NLog configuration from process.exe.nlog will priotize process directory for .NET Core 3 Single File Publish (@snakefoot)
- ๐จ #3654 ObjectPathRendererWrapper minor refactorings (@snakefoot)
- #3660 ObjectHandleSerializer.GetObjectData includes SerializationFormatter=true for use in MDLC + NDLC (@snakefoot)
- ๐ฒ #3662 FileTarget - Extra logging when FileName Layout renders empty string (@snakefoot)
๐ Performance
- #3618 LogFactory - Faster initial assembly reflection and config loading (@snakefoot)
- #3635 ConsoleTarget - Added WriteBuffer option that allows batch writing to console-stream with reduced allocations (@snakefoot)
- ๐ #3635 ConsoleTarget - Added global lock to prevent any threadsafety issue from unsafe console (@snakefoot)