Skip to content

Releases: NLog/NLog

NLog 5.1.0

27 Nov 14:58
5e6708d
Compare
Choose a tag to compare

Improvements

NLog 5.0.5

25 Oct 22:45
ace23d8
Compare
Choose a tag to compare

Improvements

NLog 5.0.4

01 Sep 21:51
8667b26
Compare
Choose a tag to compare

Fixes

NLog 5.0.3

31 Aug 20:55
5f64b54
Compare
Choose a tag to compare

Improvements

NLog 5.0.2

12 Aug 18:31
2e39110
Compare
Choose a tag to compare

Improvements

NLog 5.0.1

12 Jun 14:25
f0c122d
Compare
Choose a tag to compare

Improvements

NLog 5.0.0

16 May 21:09
2e132d9
Compare
Choose a tag to compare

See Release post

Details of changes: See here

Major Features

  • NLog is now faster and lighter
  • NLog Layout for everything
  • NLog ScopeContext to replace MDC + MDLC + NDC + NDLC
  • NLog Layout stored as NLog Configuration Variables
  • Fluent API for NLog LoggingConfiguration
  • NLog Callsite from caller member attributes
  • LogFactory with Dependency Injection
  • Multiple type-aliases can be defined for targets, layouts, layout renderers and conditions
  • Parsing of type-alias will now ignore dashes (-)

Breaking Changes

See rationale here

  • Strong Version Changed
  • Obsolete methods have been removed
  • LoggingRule Filters DefaultAction changed to FilterResult.Ignore, that can cause NO output.
  • NLog.Extensions.Logging without any filter, that can give LOTS of unexpected output.
  • NLog.Extensions.Logging changes capture of EventId, so missing EventId_Id-property
  • NLog.Extensions.Logging makes NLog-section reserved in appsettings.json
  • NLog Extensions assemblies will not load automatically
  • NLog Targets extracted into their own nuget-packages
  • NLog DatabaseTarget extracted into its own NLog.Database nuget-package
  • NLog OutputDebugStringTarget extracted into its own NLog.OutputDebugString nuget-package
  • NLog PerformanceCounterTarget extracted into its own NLog.PerformanceCounter nuget-package
  • NLog ImpersonatingTargetWrapper extracted into its own NLog.WindowsIdentity nuget-package
  • NLog LogReceiverWebServiceTarget extracted into its own NLog.Wcf nuget-package
  • NLog PerformanceCounterLayoutRenderer extracted into its own NLog.PerformanceCounter nuget-package
  • NLog RegistryLayoutRenderer extracted into its own NLog.WindowsRegistry nuget-package
  • NLog WindowsIdentityLayoutRenderer extracted into its own NLog.WindowsIdentity nuget-package
  • Deprecated NLog.Extended nuget-package
  • Deprecated NLog.Config nuget-package
  • Xamarin, Windows Phone and Silverlight platforms replaced by .NET Standard
  • .NET Framework v4.0 platform replaced by .NET Framework v3.5 platform
  • Automatic loading of NLog.config now first check for exe.nlog
  • NLog Configuration will have KeepVariablesOnReload enabled by default
  • Layout and LayoutRenderer are now threadsafe by default
  • Default Layout for NLog Targets has been updated
  • Default Format for NLog Exception layoutrenderer has been updated
  • NLog InternalLogger will not initialize itself from app.config or environment variables
  • Removed obsolete method Target.Write(AsyncLogEventInfo[]) and OptimizeBufferReuse is always true
  • ScopeContext changes MappedDiagnosticContext (MDC) to use AsyncLocal
  • MappedDiagnosticContext (MDC), MappedDiagnosticLogicalContext (MDLC), GlobalDiagnosticContext (GDC) now case-insensitive
  • FileTarget KeepFileOpen = true by default
  • FileTarget ConcurrentWrites = false by default
  • FileTarget Encoding default value changed to UTF8
  • FileTarget will include BOM by default for UTF16 and UTF32 encoding
  • NetworkTarget will Discard by default on overflow
  • JsonLayout MaxRecursionLimit default value changed to 1
  • JsonLayout EscapeForwardSlash default value changed to false
  • JsonLayout always includes decimal point for floating-point types
  • CallSite-renderer will automatically clean async callstacks
  • The Simplelayout.ToString() has been changed

Many other improvements

For a full list of all the enhancements and performance improvements: NLog 5.0 Pull Requests

Thank you: @snakefoot, @304NotModified, @ThomasArdal, @mickelsonmichael, @TalAloni, @njqdev, @menishmueli, @ErickJeffries, @AlanLiu90, @aled, @tetrodoxin, @noamyogev84, @simoneserra93, @sjafarianm, @Orace, @GitHubPang, @KurnakovMaksim

NLog 4.7.15

26 Mar 14:45
a821647
Compare
Choose a tag to compare

Improvements

NLog 4.7.14

23 Feb 17:50
7b0baf9
Compare
Choose a tag to compare

Improvements

NLog 5.0.0-RC2

20 Jan 00:02
1d87a35
Compare
Choose a tag to compare
NLog 5.0.0-RC2 Pre-release
Pre-release

Features

Improvements