Skip to content

Commit

Permalink
Version 5.3.11 (#1037)
Browse files Browse the repository at this point in the history
  • Loading branch information
snakefoot authored May 7, 2024
1 parent 9f7f68e commit 6a33919
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ See also [releases](https://github.com/NLog/NLog.Web/releases) and [milestones](

Date format: (year/month/day)

### Version 5.3.11 (2024/05/07)

- **NLog.Web.AspNetCore**
- [#1037](https://github.com/NLog/NLog.Web/pull/1037) Updated dependency NLog.Extensions.Logging v5.3.11 (#1037) (@snakefoot)

### Version 5.3.10 (2024/04/30)

- **NLog.Web.AspNetCore**
Expand Down
2 changes: 1 addition & 1 deletion build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# creates NuGet package at \artifacts
dotnet --version

$versionPrefix = "5.3.10" # Also update version for minor versions in appveyor.yml
$versionPrefix = "5.3.11" # Also update version for minor versions in appveyor.yml
$versionSuffix = ""
$versionFile = $versionPrefix + "." + ${env:APPVEYOR_BUILD_NUMBER}
if ($env:APPVEYOR_PULL_REQUEST_NUMBER) {
Expand Down
4 changes: 2 additions & 2 deletions src/NLog.Web.AspNetCore/NLog.Web.AspNetCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Integrates NLog as provider for Microsoft.Extensions.Logging, and provides NLog
<PackageReleaseNotes>
ChangeLog:

- Updated dependency NLog.Extensions.Logging v5.3.10 (#1035) (@snakefoot)
- Updated dependency NLog.Extensions.Logging v5.3.11 (#1037) (@snakefoot)

List of major changes in NLog 5.0: https://nlog-project.org/2022/05/16/nlog-5-0-finally-ready.html

Expand Down Expand Up @@ -72,7 +72,7 @@ List of available Layout Renderers: https://nlog-project.org/config/?tab=layout-
<AssemblyTitle>$(Title)</AssemblyTitle>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="NLog.Extensions.Logging" Version="5.3.10" />
<PackageReference Include="NLog.Extensions.Logging" Version="5.3.11" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
</ItemGroup>

Expand Down
4 changes: 2 additions & 2 deletions tests/NLog.Web.AspNetCore.Tests/AspNetCoreTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void UseNLogShouldLogTest(bool useNLogWeb)

Assert.NotNull(loggerFact);

var configuration = CreateConfigWithMemoryTarget(out var target, "${logger}|${message}");
var configuration = CreateConfigWithMemoryTarget(out var target, "${logger}|${message}|${callsite}");

LogManager.Setup().RegisterNLogWeb(serviceProvider: webhost.Services).LoadConfiguration(configuration);

Expand All @@ -54,7 +54,7 @@ public void UseNLogShouldLogTest(bool useNLogWeb)
var logged = target.Logs;

Assert.Single(logged);
Assert.Equal("logger1|error1", logged.First());
Assert.Equal($"logger1|error1|{GetType()}.{nameof(UseNLogShouldLogTest)}", logged.First());
}

[Fact]
Expand Down

0 comments on commit 6a33919

Please sign in to comment.