You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _posts/2025-04-29-nlog-6-0-major-changes.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -140,14 +140,22 @@ NullReferenceException (NRE). NET5 introduced C# v9 with improved support for nu
140
140
This will improve the user-experience, when using the NLog API directly instead of NLog configuration files.
141
141
142
142
### NLog Logger API with ReadOnlySpan
143
-
NLog Logger now supports `params ReadOnlySpan` and can skip `params object[]`-allocation, when many parameters
143
+
NLog Logger API now supports `params ReadOnlySpan` and can skip `params object[]`-allocation, when many parameters
144
144
and LogLevel is not enabled.
145
145
146
-
NET9 introduced C# v13 that introduced`params ReadOnlySpan`, which is now supported by NLog for NetStandard2.1.
146
+
NET9 introduced C# v13 that supports`params ReadOnlySpan`, which is now supported by NLog for NetStandard2.1.
147
147
148
148
NLog extends the optimization to completely skip the `params object[]`-allocation, when using message-templates
149
149
and it is not possible to defer the parsing of the message-template on background thread.
150
150
151
+
### Legacy NLog Logger API reduced priority
152
+
NLog Logger API has legacy methods from .NET Framework 1.0 without generics.
153
+
154
+
NET9 introduced C# v13 that supports `[OverloadResolutionPriority(-1)]` to change priority of methods, when other methods are available.
155
+
156
+
NLog Logger API will now promote the generic-methods and ReadOnlySpan-methods, instead of the legacy methods.
157
+
This will hopefully reduce the friction when finally cleaning up these legacy methods, when not being in use.
158
+
151
159
### NLog GelfTarget and GelfLayout
152
160
153
161
The [NLog.Targets.Network](https://www.nuget.org/packages/NLog.Targets.Network) nuget-package also includes support for the Graylog Extended Log Format (GELF).
0 commit comments