Commit a5e7376
authored
Bump NLog and NLog.Extensions.Logging (#170)
Updated [NLog](https://github.com/NLog/NLog) from 5.4.0 to 6.1.2.
<details>
<summary>Release notes</summary>
_Sourced from [NLog's releases](https://github.com/NLog/NLog/releases)._
## 6.1.2
**Improvements**
- #6116 PropertyTypeConverter - Prioritize IFormattable ToString when
Format specified. (@snakefoot)
- #6129 GZipFile - Support Header / Footer / WriteBom. (@snakefoot)
- #6126 FileTarget - Alert when FileName needs to be repaired.
(@snakefoot)
- #6113 FileTarget - Upfront validation of ArchiveSuffixFormat
property. (@snakefoot)
- #6110 FileTarget - Improve repair of legacy ArchiveFileName.
(@snakefoot)
- #6107 LoggingRule - Added WriteTo-method to match NLog.config.
(@snakefoot)
- #6106 LoggingRule - Added MinLevel-property to match NLog.config.
(@snakefoot)
- #6118 LoggingRule - Update FinalMinLevel-property to match
NLog.config. (@snakefoot)
- #6123 Layout.IsNullOrEmpty similar to string.IsNullOrEmpty.
(@snakefoot)
- #6119 TargetPropertyWithContext - Added alias Value for Layout.
(@snakefoot)
- #6132 TargetPropertyWithContext - ToString returns Name and Value.
(@snakefoot)
- #6105 MessageTemplateParameters - Reduce code complexity.
(@snakefoot)
- #6131 + #6133 Refactor NLog source code to fix nullable warnings.
(@snakefoot)
## 6.1.1
**Improvements**
- #6101 LogFactory - Flush / FlushAsync asynchronous completion outside
Target lock. (@snakefoot)
- #6100 NLog.Targets.AtomicFile supporting NetStandard2 with Win32 API.
(@michailf)
- #6094 XmlLayout - Faster XML encoding with
INoAllocationStringValueRenderer. (@snakefoot)
- #6091 LiteralWithRawValueLayoutRenderer - Only support RawValue when
possible. (@snakefoot)
- #6088 CachedLayoutRendererWrapper - Allow literal optimization when
caching not needed. (@snakefoot)
## 6.1
**Improvements**
- #5999 JsonLayout - Added support for DottedRecursion.
(@thatrajeevkr)
- #6084 JsonLayout - Protect against cyclic object graphs when
DottedRecursion. (@snakefoot)
- #6075 DebuggerTarget - Add support for MaxMessageSize and
OnOverflow-action. (@snakefoot)
- #6070 InternalLogger - Auto enable LogLevel.Info when activated.
(@snakefoot)
- #6045 LoggingConfigurationParser - Report unrecognized options in
targets and rules section. (@snakefoot)
- #6059 LogEventBuilder - Properties with IReadOnlyCollection for
initialCapacity. (@snakefoot)
- #6065 FileTarget - Adjust ArchiveSuffixFormat to better handle legacy
ArchiveFileName. (@snakefoot)
- #6079 FileTarget - Replace Environment.TickCount with
LogEventInfo.TimeStamp. (@snakefoot)
- #6066 FileTarget - Simplify FileName natural ordering logic.
(@snakefoot)
- #6069 FileTarget - Reduce code complexity for NaturalStringComparer.
(@snakefoot)
- #6064 FileTarget - Reduce code complexity for ArchiveNumbering
property. (@snakefoot)
- #6082 JsonLayout - Faster Json encoding with
INoAllocationStringValueRenderer. (@snakefoot)
- #6083 CsvLayout - Faster CSV encoding with
INoAllocationStringValueRenderer. (@snakefoot)
- #6081 DefaultJsonSerializer - Reduce overhead of
PerformJsonEscapeWhenNeeded. (@snakefoot)
- #6025 LogEventInfo - Changed LayoutCache from dictionary to linked
list. (@snakefoot)
- #6049 PropertiesDictionary - Increase initial capacity when insert.
(@snakefoot)
- #6061 PropertiesDictionary - Simplify enumerator when mixing property
types. (@snakefoot)
- #6074 WhenEmpty - Optimize when IsFixedText. (@snakefoot)
- #6062 BufferingTargetWrapper - Improve InternalLogger output when
WrappedTarget is NULL. (@snakefoot)
- #6067 Fix nullable warnings from NET10 annotations. (@snakefoot)
- #6068 Support nullable where TKey : notnull for dictionary.
(@snakefoot)
- #6071 AssemblyExtensionTypes - Reduce code complexity. (@snakefoot)
- #6072 LoggingConfigurationFileLoader - Handle unknown type loading
for App.config. (@snakefoot)
- #6076 Marked ConversionHelpers.TryParseEnum as obsolete.
(@snakefoot)
- #5949 CallSiteLayoutRenderer - Obsoleted
CleanNamesOfAnonymousDelegates + CleanNamesOfAsyncContinuation.
(@snakefoot)
## 6.0.7
**Improvements**
- #6056 FileTarget - Archive Cleanup sort filenames using natural
ordering. (@snakefoot)
- #6054 EventProperties - Format Dictionary Properties correctly.
(@snakefoot)
- #6051 Failure to create config item should be reported as
InternalLogger Error. (@snakefoot)
- #6052 PropertiesDictionary - Faster TryGetValue without IsEmpty.
(@snakefoot)
- #6048 PropertiesDictionary - Increase initial capacity when insert.
(@snakefoot)
- #6047 LogEventInfo - Minor optimization of HasImmutableProperties.
(@snakefoot)
- #6057 WhenEmpty - Support AppDomainFixedOutput optimization.
(@snakefoot)
- #6053 JsonAttribute - Reduce code complexity when Encode = false.
(@snakefoot)
- #6044 Target also enforce PreventMultipleCalls when
WriteFailedNotInitialized. (@snakefoot)
- #6042 NLog.RegEx - Fixed Wiki-link in nuget-package. (@snakefoot)
## 6.0.6
**Improvements**
- #6027 FileTarget - Improve archive cleanup when using
ArchiveSuffixFormat with datetime. (@snakefoot)
- #6028 FileTarget - Fix archive cleanup when only single old file and
using MaxArchiveDays. (@snakefoot)
- #6039 FileTarget - Render ArchiveSuffixFormat using NLog
DefaultCultureInfo. (@snakefoot)
- #6030 ObjectReflectionCache - Improve handling of JObject
serialization. (@snakefoot)
- #6026 JsonLayout - Reduce code complexity for rendering
JsonAttribute. (@snakefoot)
- #6036 NullTarget - Improve thread concurrency when FormatMessage =
false. (@snakefoot)
- #6023 MemoryTarget - Apply MaxLogsCount limit on next LogEvent.
(@snakefoot)
- #6040 XmlParser - Refactor to reduce code complexity. (@snakefoot)
- #6041 ScopeContextAsyncState - Refactor to reduce code complexity.
(@snakefoot)
## 6.0.5
**Improvements**
- #5998 FileTarget - Rolling to next directory should not fail.
(@snakefoot)
- #6013 ValueFormatter - Skip quotes for CaptureType.Stringify unless
legacy mode. (@snakefoot)
- #6007 ColoredConsoleTarget - Use Span to reduce string-allocation for
word-highlighting. (@snakefoot)
- #6009 NullTarget - Avoid string-allocation upfront when FormatMessage
= true. (@snakefoot)
- #6012 XmlLoggingConfiguration - Reduce output for InternalLogger
Info-Level. (@snakefoot)
- #6006 XmlLoggingConfiguration - Protect against double dispose of
AutoReloadConfigFileWatcher. (@snakefoot)
- #6008 LoggerImpl - Merge WriteToTargetWithFilterChain into Write.
(@snakefoot)
- #6010 LoggingConfiguration - Redirect AddRuleForOneLevel and
AddRuleForAllLevels to AddRule. (@snakefoot)
- #6011 LoggingRule - Align EnableLoggingForLevels to skip when
minLevel is LogLevel.Off. (@snakefoot)
- #6015 CompoundLayout - Changed to foreach for better release
optimizations. (@snakefoot)
- #6016 CsvLayout - Changed to foreach for better release
optimizations. (@snakefoot)
- #6017 JsonArrayLayout - Changed to foreach for better release
optimizations. (@snakefoot)
- #6018 XmlLayout - Changed to foreach for better release
optimizations. (@snakefoot)
## 6.0.4
**Improvements**
- #5979 FileTarget - Improve file-wildcard for archive cleanup.
(@snakefoot)
- #5980 FileTarget - Extend InternalLogger output with archive cleanup
reason. (@snakefoot)
- #5981 FileTarget - Strict wildcard check only possible when single
wildcard. (@snakefoot)
- #5987 FileTarget - Improve archive cleanup with dynamic seq-no.
(@snakefoot)
- #5988 FileTarget - Avoid parsing archive sequence number when other
digits. (@snakefoot)
- #5996 FileTarget - Improve fallback logic when missing file system
birthtime. (@snakefoot)
- #5964 ColoredConsoleTarget - WholeWords should only highlight the
word. (@snakefoot)
- #5967 ColoredConsoleTarget - Fixed boxing issue in
ConsoleRowHighlightingRule. (@karpinsn)
- #5968 Simplify WithAutoFlush-method for fluent config API.
(@snakefoot)
- #5970 Fix boxing for registration of builtin condition methods.
(@snakefoot)
- #5977 ConditionExpression - Implicit operator with
NotNullIfNotNull-attribute. (@GREsau)
- #5982 SimpleLayout - Implicit operator with
NotNullIfNotNull-attribute. (@snakefoot)
- #5992 MessageLayoutRenderer - Handle Exception.ToString() can throw
with AOT. (@snakefoot)
- #5983 Append4DigitsZeroPadded - Use Span instead of multiple
StringBuilder.Append(). (@snakefoot)
- #5985 Extracted NLog.WindowsRegistry to own git repository.
(@snakefoot)
- #5985 Extracted NLog.Targets.Trace to own git repository.
(@snakefoot)
- #5985 Extracted NLog.Targets.ConcurrentFile to own git repository.
(@snakefoot)
- #5985 Extracted NLog.Targets.Database to own git repository.
(@snakefoot)
- #5985 Extracted NLog.Targets.Mail to own git repository.
(@snakefoot)
- #5985 Extracted NLog.Targets.WebService to own git repository.
(@snakefoot)
- #5985 Extracted NLog.Targets.Network to own git repository.
(@snakefoot)
## 6.0.3
- #5952 FileTarget - Close old files when reaching OpenFileCacheSize.
(@snakefoot)
- #5948 FileTarget - Closing on OpenFileCacheTimeout apply least
recently used. (@snakefoot)
- #5947 FileTarget - Improved file-archive exception handling when
KeepFileOpen=false. (@snakefoot)
- #5954 ColoredConsoleTarget - Added Words-property for easy
highlighting of many words without RegEx. (@snakefoot)
- #5955 LogMessageTemplateFormatter - Also use IValueFormatter for
positional templates. (@snakefoot)
- #5953 NLog.Targets.Network - Updated links in README.md for
nuget-package. (@snakefoot)
- #5945 NLog.Targets.AtomicFile - Added README.md for nuget-package.
(@snakefoot)
- #5940 SplunkTarget - Support SplunkFields-property. (@snakefoot)
## 6.0.2
- #5930 XmlParser - Handle XML comments after root-end-tag.
(@snakefoot)
- #5929 XmlLoggingConfiguration - Improve handling of invalid XML.
(@snakefoot)
- #5933 Handle invalid message template when skipping parameters array.
(@snakefoot)
- #5915 ReplaceNewLinesLayoutRendererWrapper - Replace more line ending
characters. (@oikku)
- #5911 NLog.Targets.GZipFile - Improve support for ArchiveAboveSize.
(@snakefoot)
- #5921 FileTarget - Activate legacy ArchiveFileName when
ArchiveSuffixFormat contains legacy placeholder. (@snakefoot)
- #5924 AsyncTargetWrapper - Updated FullBatchSizeWriteLimit default
value from 5 to 10. (@snakefoot)
- #5937 Mark Assembly loading with RequiresUnreferencedCodeAttribute
for AOT. (@snakefoot)
- #5938 Logger - Align WriteToTargets with WriteToTargetsWithSpan.
(@snakefoot)
- #5909 ConfigurationItemFactory - Added extension hints for webservice
and activityid. (@snakefoot)
- #5918 Log4JXmlTarget - Removed alias NLogViewer as conflicts with
other nuget-packages. (@snakefoot)
- #5926 SplunkTarget - NetworkTarget with SplunkLayout. (@snakefoot)
- #5927 GelfLayout - Align with SplunkLayout. (@snakefoot)
- #5913 NLog.Targets.Network - Updated nuget-package README.md.
(@snakefoot)
- #5912 NLog.Targets.Trace - Updated nuget-package README.md.
(@snakefoot)
- #5919 XML docs for Targets and Layouts with remarks about default
value. (@snakefoot)
- #5922 XML docs for LayoutRenderers with remarks about default value.
(@snakefoot)
- #5925 XML docs for Target Wrappers with remarks about default value.
(@snakefoot)
- #5935 Improve NLog XSD Schema with better handling of typed Layout.
(@snakefoot)
- #5923 Updated unit-tests from NET6 to NET8. (@snakefoot)
## 6.0.1
**Improvements**
- #5898 Changed ConditionExpression to be nullable by default since no
Condition means no filtering. (@snakefoot)
- #5906 Include ConditionExpression in the static type registration.
(@snakefoot)
- #5895 Fixed the new XML parser to handle XML comments just before
end-tag. (@snakefoot)
- #5905 Fixed the new XML parser to allow InnerText with greater-than
characters. (@snakefoot)
- #5891 Updated NLog.Targets.AtomicFile to support net8.0-windows
without dependency on Mono.Posix.NETStandard. (@snakefoot)
## 6.0
**Major changes:**
- Support Ahead-of-Time (AOT) builds without warnings
- Support Nullable references
- Support `ReadOnlySpan` to reduce memory allocations
- LogFactory supports `FlushAsync` and `IDisposableAsync`
- FileTarget removed support for `ConcurrentWrites`
- FileTarget refactored file-archive-logic with `ArchiveSuffixFormat`
NLog v6 has reduced its footprint by extracting features into separate
nuget-packages:
-
[NLog.Targets.AtomicFile](https://www.nuget.org/packages/NLog.Targets.AtomicFile)
- FileTarget with ConcurrentWrites using atomic file-append from
operating system API.
-
[NLog.Targets.ConcurrentFile](https://www.nuget.org/packages/NLog.Targets.ConcurrentFile)
- Legacy FileTarget from NLog v5 with ConcurrentWrites using global
operating system mutex.
-
[NLog.Targets.GZipFile](https://www.nuget.org/packages/NLog.Targets.GZipFile)
- FileTarget with EnableArchiveFileCompression using GZipStream for
writing GZip compressed log-files.
- [NLog.Targets.Mail](https://www.nuget.org/packages/NLog.Targets.Mail)
- MailTarget depends on System.Net.Mail.SmtpClient.
-
[NLog.Targets.Network](https://www.nuget.org/packages/NLog.Targets.Network)
- NetworkTarget depends on TCP and UDP Network Socket, and adds support
for Syslog and Graylog.
-
[NLog.Targets.Trace](https://www.nuget.org/packages/NLog.Targets.Trace)
- TraceTarget and NLogTraceListener depends on
System.Diagnostics.TraceListener and System.Diagnostics.Trace.
-
[NLog.Targets.WebService](https://www.nuget.org/packages/NLog.Targets.WebService)
- WebServiceTarget depends on System.Net.Http.HttpClient.
- [NLog.RegEx](https://www.nuget.org/packages/NLog.RegEx) - Depends on
System.Text.RegularExpressions which is a huge dependency for a logging
library.
List of all [NLog 6.0 Pull
Requests](https://github.com/NLog/NLog/pulls?q=is%3Apr+is%3Amerged+milestone:%226.0%22)
- [Breaking
Changes](https://github.com/NLog/NLog/pulls?q=is%3Apr+label%3A%22breaking%20change%22+is%3Amerged+milestone:%226.0%22)
- [Breaking Behavior
Changes](https://github.com/NLog/NLog/pulls?q=is%3Apr+label%3A%22breaking%20behavior%20change%22+is%3Amerged+milestone:%226.0%22)
-
[Features](https://github.com/NLog/NLog/pulls?q=is%3Apr+label%3A%22Feature%22+is%3Amerged+milestone:%226.0%22)
-
[Improvements](https://github.com/NLog/NLog/pulls?q=is%3Apr+label%3A%22Enhancement%22+is%3Amerged+milestone:%226.0%22)
-
[Performance](https://github.com/NLog/NLog/pulls?q=is%3Apr+label%3A%22Performance%22+is%3Amerged+milestone:%226.0%22)
See also [List of major changes in NLog
v6](https://nlog-project.org/2025/04/29/nlog-6-0-major-changes.html) for
more details.
Thanks to all contributers: @ana1250, @Pavan8374, @smnsht,
@RomanSoloweow, @wadebaird, @hangy, @lavige777, @jokoyoski,
@saltukkos, @nih0n, @michaelplavnik, @Aaronmsv, @ShadowDancer,
@Orace, @tvogel-nid, @martinzding, @kurnakovv, @dance,
@JohnVerheij
## 6.0.0-rc4
**Improvements**
- Mark struct as readonly to allow compiler optimization
- RegisterObjectTransformation to preserve public properties
- Log4JXmlEventLayout - Enforce MaxRecursionLimit = 0
- DatabaseTarget with support for AOT (@JohnVerheij)
- DatabaseTarget only assign ConnectionString when specified
(@JohnVerheij)
## 6.0.0-rc3
**Improvements**
- Log4JXmlEventLayout - Fixed IncludeEmptyValue for Parameters
## 6.0.0-rc2
**Improvements**
- Fixed NLog XmlParser to support XML comments within XML processing
instructions.
- NLog.Targets.Network now also supports NET35.
- Updated structs to be readonly to allow compiler optimizations.
- Updated interface ILoggingConfigurationElement to support nullable
Values.
- Updated all projects to include `<IsAotCompatible>`
- Optimized ConsoleTarget to not use Console.WriteLine, and introduced
option `ForceWriteLine`
- Added new LogEventInfo constructor that supports
`ReadOnlySpan<MessageTemplateParameter>`
- Updated NLog.Schema nuget-package to include targets-file to copy
NLog.xsd to project-folder.
- Improved configuration-file loading to advise about NLog
nuget-packages for missing types.
## 6.0.0-rc1
**Improvements**
- Updated NLog API with `<Nullable>enable</Nullable>` and introduced
`Layout.Empty`
- Marked `[RequiredParameter]` as obsolete, and replaced with explicit
option validation during initialization.
- Marked `LogEventInfo.SequenceID` and `${sequenceid}` as obsolete, and
instead use `${counter:sequence=global}`.
- Added support for params ReadOnlySpan when using C# 13
- Prioritize generic Logger-methods by marking legacy methods with
`[OverloadResolutionPriority(-1)]` when using C# 13
- Skip LogEventInfo.Parameters-array-allocation when unable to defer
message-template formatting.
- Renamed ChainsawTarget to Log4JXmlTarget to match Log4JXmlEventLayout
- Updated NLog.Schema to include intellisense for multiple
NLog-assemblies.
Unless something bad is discovered, then this will be the last preview
build, before the final release of NLog v6.0
Updated NLog v6.0 release notes:
https://nlog-project.org/2025/04/29/nlog-6-0-major-changes.html
## 6.0.0-preview1
**Major Changes**
- Support AOT builds without build warnings.
- New FileTarget without ConcurrentWrites support, but still support
KeepFileOpen (true/false).
- Moved old FileTarget into the new nuget-package
NLog.Targets.ConcurrentFile.
- Created new nuget-package NLog.Targets.AtomicFile that supports
ConcurrentWrites for NET8 on both Windows / Linux.
- Created new nuget-package NLog.Targets.GZipFile that uses GZipStream
for writing directly to compressed files.
- Moved MailTarget into the new nuget-package NLog.Targets.Mail.
- Moved NetworkTarget into the new nuget-package NLog.Targets.Network.
- New GelfTarget introduced for the new nuget-package
NLog.Targets.Network.
- New SyslogTarget introduced for the new nuget-package
NLog.Targets.Network.
- Moved TraceTarget and NLogTraceListener into the new nuget-package
NLog.Targets.Trace.
- Moved WebServiceTarget into the new nuget-package
NLog.Targets.WebService
- Removed dependency on System.Text.RegularExpressions and introduced
new nuget-package NLog.RegEx.
- Removed dependency on System.Xml.XmlReader by implementing own
internal basic XML-Parser.
NLog v6.0 release notes:
https://nlog-project.org/2025/04/29/nlog-6-0-major-changes.html
List of all [NLog 6.0 Pull
Requests](https://github.com/NLog/NLog/pulls?q=is%3Apr+is%3Amerged+milestone:%226.0%22)
- [Breaking
Changes](https://github.com/NLog/NLog/pulls?q=is%3Apr+label%3A%22breaking%20change%22+is%3Amerged+milestone:%226.0%22)
- [Breaking Behavior
Changes](https://github.com/NLog/NLog/pulls?q=is%3Apr+label%3A%22breaking%20behavior%20change%22+is%3Amerged+milestone:%226.0%22)
-
[Features](https://github.com/NLog/NLog/pulls?q=is%3Apr+label%3A%22Feature%22+is%3Amerged+milestone:%226.0%22)
-
[Improvements](https://github.com/NLog/NLog/pulls?q=is%3Apr+label%3A%22Enhancement%22+is%3Amerged+milestone:%226.0%22)
-
[Performance](https://github.com/NLog/NLog/pulls?q=is%3Apr+label%3A%22Performance%22+is%3Amerged+milestone:%226.0%22)
Thanks to all contributers: @ana1250, @Pavan8374, @smnsht,
@RomanSoloweow, @wadebaird, @hangy, @lavige777, @jokoyoski,
@saltukkos, @nih0n, @michaelplavnik, @Aaronmsv, @ShadowDancer,
@Orace, @tvogel-nid, @martinzding, @kurnakovv
## 5.5.1
- #5858 ConsoleTarget - Added ForceWriteLine to match NLog v6 Schema
(@snakefoot)
- #5866 Layout.FromLiteral to match NLog v6 (@snakefoot)
- #5888 ChainsawTarget with type-alias Log4JXml to match NLog v6
(@snakefoot)
- #5883 AsyncTargetWrapper - LogEventDropped and EventQueueGrow events
fixes (@dance)
- #5890 StringBuilderExt - Change Append2DigitsZeroPadded to
array-lookup (@snakefoot)
- #5936 XmlLayout - Support MaxRecursionLimit == 0 (@snakefoot)
- #5936 RegisterObjectTransformation so build trimming will keep public
properties (@snakefoot)
## 5.5
**Improvements**
- #5710 Restored LogFactory.Setup().SetupFromEnvironmentVariables() as
not obsolete (#5710) @snakefoot
- #5717 Avoid using MakeGenericType for Dictionary enumeration when AOT
(#5717) @snakefoot
- #5730 Stop using obsolete Assembly.CodeBase for NetStandard (#5730)
@snakefoot
- #5742 ExceptionLayoutRenderer - Handle Exception properties like
StackTrace can throw with AOT (#5742) @snakefoot
- #5743 ExceptionLayoutRenderer - Handle Data-collection-item ToString
can throw with AOT (#5743) @snakefoot
- #5763 ExceptionLayoutRenderer - Handle Exception-properties can throw
with AOT (#5763) @snakefoot
- #5756 ServiceRepository - Improve exception-handling when resolving
service-types while disposing (#5756) @snakefoot
- #5759 LayoutRenderer - Optimize performance by skipping cache result
from render Inner Layout (#5759) @snakefoot
- #5795 ConditionLayoutExpression - Optimize performance by skipping
cache result from render Inner Layout (#5795) @snakefoot
- #5731 Mark IFactory RegisterType as obsolete, since it will be
removed with NLog v6 (#5731) @snakefoot
- #5766 Mark JsonLayout EscapeForwardSlash as obsolete, since disabled
with NLog v6 (#5766) @snakefoot
- #5823 Mark ExceptionLayoutRenderer Formats-List as obsolete, since
immutable with NLog v6 (#5823) @snakefoot
- #5769 Updated API-code examples to not depend on obsolete
SimpleConfigurator (#5769) @snakefoot
- #5776 ObjectReflectionCache - Handle PropertyValue can throw with AOT
(#5776) @snakefoot
- #5780 NetworkTarget - Introduced option NoDelay to disable delayed
ACK (#5780) @snakefoot
- #5788 Fix InternalLogger noise about reflection for
FuncLayoutRenderer (#5788) @snakefoot
- #5792 TargetWithContext - Reduce allocation for RenderLogEvent when
SimpleLayout (#5792) @snakefoot
- #5810 Refactoring to improve null value handling (#5810) @snakefoot
- #5812 Refactoring to improve null value handling (#5812) @snakefoot
- #5817 LoggingConfigurationParser - Prioritize LoggingRules from
current config (#5817) @snakefoot
- #5825 WhenEmptyLayoutRendererWrapper - Optimize IStringValueRenderer
Logic (#5825) @snakefoot
Commits viewable in [compare
view](NLog/NLog@v5.4.0...v6.1.2).
</details>
Updated
[NLog.Extensions.Logging](https://github.com/NLog/NLog.Extensions.Logging)
from 5.4.0 to 6.1.2.
<details>
<summary>Release notes</summary>
_Sourced from [NLog.Extensions.Logging's
releases](https://github.com/NLog/NLog.Extensions.Logging/releases)._
## 6.1.2
- #831 MicrosoftConsoleJsonLayout - Forward DottedRecursion to
State-JsonLayout (@snakefoot)
- #832 Updated to NLog v6.1.1 (@snakefoot)
## 6.1.1
- #822 NLogLogger - Optimize for default EventId capture (@snakefoot)
- #824 Introduced WriteToJsonConsole for fluent API to match
AddJsonConsole (@snakefoot)
- #825 NLogLoggerProvider - Implement IAsyncDisposable (@snakefoot)
- #826 MicrosoftConsoleJsonLayout - Forward MaxRecursionLimit to
State-JsonLayout (@snakefoot)
- #827 MicrosoftConsoleLayoutRenderer - Apply Span for EventId
(@snakefoot)
- #828 Replace NETCOREAPP3_1_OR_GREATER with new NET (@snakefoot)
- #830 Updated to NLog v6.1 (@snakefoot)
## 6.1.0
- #818 Added NET10 targetplatform (@snakefoot)
## 6.0.6
- #817 Updated to NLog v6.0.6 (@snakefoot)
- #814 Avoid boxing ITuple when used for BeginScope (@snakefoot)
- #813 Allow BeginScope to perform reflection of KeyValuePair
(@snakefoot)
## 6.0.5
- #811 Updated to NLog v6.0.5 (@snakefoot)
- #809 NLogLoggingConfiguration - ToString includes AutoReload=true
(@snakefoot)
## 6.0.4
- #808 Updated to NLog v6.0.4 (@snakefoot)
## 6.0.3
- #806 Updated to NLog v6.0.3 (@snakefoot)
## 6.0.2
- #805 Updated to NLog v6.0.2 (@snakefoot)
## 6.0.1
- #802 Updated to NLog v6.0.1 (@snakefoot)
- #801 .NET Framework v4.6.2 with UseNLog for IHostApplicationBuilder
(@snakefoot)
- #799 Fixed namespace for HostRootDirLayoutRenderer (@snakefoot)
## 6.0
- Updated to NLog v6.0
- Removed support for NetStandard 1.3 + 1.5
- Updated .NET Framework 4.6.2 with NET8-nuget-dependencies
- Enabled nullable references
- Avoid boxing when extracting LogEvent properties from struct
- Reduce allocation when creating LogEvent with properties by using
ReadOnlySpan
- Enabled <IsAotCompatible>
- Added ${host-environment} for NLog.Extensions.Hosting
- Added ${host-rootdir} for NLog.Extensions.Hosting
- Added ${host-appname} for NLog.Extensions.Hosting
- Added RegisterHostSettings for NLog.Extensions.Hosting
List of major changes in NLog 6.0:
https://nlog-project.org/2025/04/29/nlog-6-0-major-changes.html
## 6.0.0-rc4
- Updated to NLog v6.0-RC4
- Fixed capture of original message template when extracting LogEvent
properties without boxing.
## 6.0.0-rc3
- Updated to NLog v6.0-RC3
- Avoid boxing when extracting LogEvent properties from struct
- Added ${host-environment} for NLog.Extensions.Hosting
- Added ${host-rootdir} for NLog.Extensions.Hosting
- Added ${host-appname} for NLog.Extensions.Hosting
- Added RegisterHostSettings for NLog.Extensions.Hosting
- Updated NLog.Extensions.Hosting to support .NET Framework 4.6.2 using
NET8-nuget-dependencies
## 6.0.0-rc2
- Updated to NLog v6.0-RC2
- Removed support for NetStandard 1.3 + 1.5
- Enabled nullable references
- Enabled <IsAotCompatible>
- Avoid boxing when extracting LogEvent properties from struct
- Reduce allocation when creating LogEvent with properties by using
ReadOnlySpan
List of major changes in NLog v6.0:
https://nlog-project.org/2025/04/29/nlog-6-0-major-changes.html
## 5.5
**Improvements**
- [#780](NLog/NLog.Extensions.Logging#780):
Added UseNLog extension method for IHostApplicationBuilder (#780)
(@mikezw)
- [#782](NLog/NLog.Extensions.Logging#782):
Added UseNLog extension method with isolated LogFactory support (#782)
(@snakefoot)
- [#783](NLog/NLog.Extensions.Logging#783):
Added AddNLog extension method for IServiceCollection (#783)
(@snakefoot)
- [#785](NLog/NLog.Extensions.Logging#785):
Updated to NLog v5.5 (#785) (@snakefoot)
Commits viewable in [compare
view](NLog/NLog.Extensions.Logging@v5.4.0...v6.1.2).
</details>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>1 parent c1560a8 commit a5e7376
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments