8000 Version 5.4 (#778) · NLog/NLog.Extensions.Logging@5cf0f9d · GitHub
[go: up one dir, main page]

Skip to content

Commit 5cf0f9d

Browse files
authored
Version 5.4 (#778)
1 parent 5da8b93 commit 5cf0f9d

File tree

5 files changed

+24
-8
lines changed

5 files changed

+24
-8
lines changed

CHANGELOG.MD

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
Date format: (year/month/day)
44

5+
### Version 5.4 (2025/02/02)
6+
7+
**Improvements**
8+
- [#775](https://github.com/NLog/NLog.Extensions.Logging/pull/775): MicrosoftConsoleJsonLayout - TimestampLayout replaced by DateLayoutRenderer (#775) (@snakefoot)
9+
- [#778](https://github.com/NLog/NLog.Extensions.Logging/pull/778): NLogLoggerFactory - New constructor with isolated NLog LogFactory as input parameter (#778) (@snakefoot)
10+
- [#778](https://github.com/NLog/NLog.Extensions.Logging/pull/778): Updated to NLog v5.4 (#778) (@snakefoot)
11+
512
### Version 5.3.15 (2024/11/21)
613

714
**Improvements**

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ test_script:
3737
deploy:
3838
- provider: NuGet
3939
api_key:
40-
secure: C4wzAE+AWne4TbR54gBDkLImCxsfIp21C16wi4LJ3bVSw/HqwZrMSYJ90kl6eAuf
40+
secure: f6oWebyOFLpuuo2PMd6xgoxwMq+JvXVUmPyBme89zS7UF0zcvLYPSKN/p6B/KaMs
4141
on:
4242
branch: master

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 = "5.3.15"
5+
$versionPrefix = "5.4.0"
66
$versionSuffix = ""
77
$versionFile = $versionPrefix + "." + ${env:APPVEYOR_BUILD_NUMBER}
88
$versionProduct = $versionPrefix;

src/NLog.Extensions.Logging/Logging/NLogLoggerFactory.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,17 @@ public NLogLoggerFactory()
2727
/// </summary>
2828
/// <param name="options"></param>
2929
public NLogLoggerFactory(NLogProviderOptions options)
30-
:this(new NLogLoggerProvider(options))
30+
:this(options, LogManager.LogFactory)
31+
{
32+
}
33+
34+
/// <summary>
35+
/// New factory with options and isolated LogFactory
36+
/// </summary>
37+
/// <param name="options"></param>
38+
/// <param name="logFactory"></param>
39+
public NLogLoggerFactory(NLogProviderOptions options, LogFactory logFactory)
40+
: this(new NLogLoggerProvider(options, logFactory))
3141
{
3242
RegisterNLogLoggingProvider.SetupNLogConfigSettings(null, null, _provider.LogFactory);
3343
}

src/NLog.Extensions.Logging/NLog.Extensions.Logging.csproj

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ For ASP.NET Core, check: https://www.nuget.org/packages/NLog.Web.AspNetCore
2020
<PackageReleaseNotes>
2121
ChangeLog:
2222

23-
- UseNLog allow fallback to only EnvironmentName for NLog config (#773) (@snakefoot)
24-
- NLogMessageParameterList - Optimize the index operator (#771) (@snakefoot)
25-
- NLogMessageParameterList - Simplify the index operator (#770) (@snakefoot)
26-
- Recognize ITuple for better AOT support (#768) (@snakefoot)
23+
- MicrosoftConsoleJsonLayout - TimestampLayout replaced by DateLayoutRenderer (#775) (@snakefoot)
24+
- NLogLoggerFactory - New constructor with isolated NLog LogFactory as input parameter (#778) (@snakefoot)
25+
- Updated to NLog v5.4 (#778) (@snakefoot)
2726

2827
Full changelog: https://github.com/NLog/NLog.Extensions.Logging/blob/master/CHANGELOG.MD
2928

@@ -86,7 +85,7 @@ List of major changes in NLog 5.0: https://nlog-project.org/2021/08/25/nlog-5-0-
8685
</PropertyGroup>
8786

8887
<ItemGroup>
89-
<PackageReference Include="NLog" Version="5.3.4" />
88+
<PackageReference Include="NLog" Version="5.4.0" />
9089
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
9190
</ItemGroup>
9291
<ItemGroup Condition=" '$(TargetFramework)' == 'net461' ">

0 commit comments

Comments
 (0)
0