Skip to content

Commit 4dd16e8

Browse files
authored
Version 6.0.7 (#6058)
1 parent 155b158 commit 4dd16e8

5 files changed

Lines changed: 28 additions & 12 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@ Date format: (year/month/day)
44

55
## Change Log
66

7+
### Version 6.0.7 (2025/12/09)
8+
9+
**Improvements**
10+
- [#6056](https://github.com/NLog/NLog/pull/6056) FileTarget - Archive Cleanup sort filenames using natural ordering. (@snakefoot)
11+
- [#6054](https://github.com/NLog/NLog/pull/6054) EventProperties - Format Dictionary Properties correctly. (@snakefoot)
12+
- [#6051](https://github.com/NLog/NLog/pull/6051) Failure to create config item should be reported as InternalLogger Error. (@snakefoot)
13+
- [#6052](https://github.com/NLog/NLog/pull/6052) PropertiesDictionary - Faster TryGetValue without IsEmpty. (@snakefoot)
14+
- [#6048](https://github.com/NLog/NLog/pull/6048) PropertiesDictionary - Increase initial capacity when insert. (@snakefoot)
15+
- [#6047](https://github.com/NLog/NLog/pull/6047) LogEventInfo - Minor optimization of HasImmutableProperties. (@snakefoot)
16+
- [#6057](https://github.com/NLog/NLog/pull/6057) WhenEmpty - Support AppDomainFixedOutput optimization. (@snakefoot)
17+
- [#6053](https://github.com/NLog/NLog/pull/6053) JsonAttribute - Reduce code complexity when Encode = false. (@snakefoot)
18+
- [#6044](https://github.com/NLog/NLog/pull/6044) Target also enforce PreventMultipleCalls when WriteFailedNotInitialized. (@snakefoot)
19+
- [#6042](https://github.com/NLog/NLog/pull/6042) NLog.RegEx - Fixed Wiki-link in nuget-package. (@snakefoot)
20+
721
### Version 6.0.6 (2025/11/09)
822

923
**Improvements**

‎build.ps1‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# creates NuGet package at \artifacts
33
dotnet --version
44

5-
$versionPrefix = "6.0.6"
5+
$versionPrefix = "6.0.7"
66
$versionSuffix = ""
77
$versionFile = $versionPrefix + "." + ${env:APPVEYOR_BUILD_NUMBER}
88
$versionProduct = $versionPrefix;

‎src/NLog/NLog.csproj‎

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,16 @@ For using NLog with ASP.NET Core, check: https://www.nuget.org/packages/NLog.Web
3131
<PackageReleaseNotes>
3232
Changelog:
3333

34-
- [#6027] FileTarget - Improve archive cleanup when using ArchiveSuffixFormat with datetime. (@snakefoot)
35-
- [#6028] FileTarget - Fix archive cleanup when only single old file and using MaxArchiveDays. (@snakefoot)
36-
- [#6039] FileTarget - Render ArchiveFileName using NLog DefaultCultureInfo. (@snakefoot)
37-
- [#6030] ObjectReflectionCache - Improve handling of JObject serialization. (@snakefoot)
38-
- [#6026] JsonLayout - Reduce code complexity for rendering JsonAttribute. (@snakefoot)
39-
- [#6036] NullTarget - Improve thread concurrency when FormatMessage = false. (@snakefoot)
40-
- [#6023] MemoryTarget - Apply MaxLogsCount update on next LogEvent. (@snakefoot)
41-
- [#6040] XmlParser - Refactor to reduce code complexity. (@snakefoot)
42-
- [#6041] ScopeContextAsyncState - Refactor to reduce code complexity. (@snakefoot)
34+
- [#6056] FileTarget - Archive Cleanup sort filenames using natural ordering. (@snakefoot)
35+
- [#6054] EventProperties - Format Dictionary Properties correctly. (@snakefoot)
36+
- [#6051] Failure to create config item should be reported as InternalLogger Error. (@snakefoot)
37+
- [#6052] PropertiesDictionary - Faster TryGetValue without IsEmpty. (@snakefoot)
38+
- [#6048] PropertiesDictionary - Increase initial capacity when insert. (@snakefoot)
39+
- [#6047] LogEventInfo - Minor optimization of HasImmutableProperties. (@snakefoot)
40+
- [#6057] WhenEmpty - Support AppDomainFixedOutput optimization. (@snakefoot)
41+
- [#6053] JsonAttribute - Reduce code complexity when Encode = false. (@snakefoot)
42+
- [#6044] Target also enforce PreventMultipleCalls when WriteFailedNotInitialized. (@snakefoot)
43+
- [#6042] NLog.RegEx - Fixed Wiki-link in nuget-package. (@snakefoot)
4344

4445
NLog v6.0 release notes: https://nlog-project.org/2025/04/29/nlog-6-0-major-changes.html
4546

‎tests/NLog.Benchmarks/NLog.Benchmarks.csproj‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net462</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<Prefer32Bit>false</Prefer32Bit>
66
<OutputType>Exe</OutputType>
77
<SonarQubeTestProject>true</SonarQubeTestProject>
88
<IsPackable>false</IsPackable>
99
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
10+
<Nullable>enable</Nullable>
1011

1112
<AssemblyOriginatorKeyFile>NLogTests.snk</AssemblyOriginatorKeyFile>
1213
<DelaySign>false</DelaySign>

‎tests/NLog.Benchmarks/Targets/ColoredConsoleTargetBenchmark.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class ColoredConsoleTargetBenchmark
4545
private static readonly string TestMessage = "The cat sat at the bar.";
4646
private readonly StreamWriter _streamWriter = new StreamWriter(new MemoryStream());
4747
private readonly LogFactory _logFactory = new LogFactory();
48-
private Logger _logger;
48+
private Logger _logger = LogManager.CreateNullLogger();
4949

5050
[GlobalSetup]
5151
public void Setup()

0 commit comments

Comments
 (0)