Skip to content

Commit

Permalink
Version 5.4 (#778)
Browse files Browse the repository at this point in the history
  • Loading branch information
snakefoot authored Feb 2, 2025
1 parent 5da8b93 commit 5cf0f9d
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 8 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

Date format: (year/month/day)

### Version 5.4 (2025/02/02)

**Improvements**
- [#775](https://github.com/NLog/NLog.Extensions.Logging/pull/775): MicrosoftConsoleJsonLayout - TimestampLayout replaced by DateLayoutRenderer (#775) (@snakefoot)
- [#778](https://github.com/NLog/NLog.Extensions.Logging/pull/778): NLogLoggerFactory - New constructor with isolated NLog LogFactory as input parameter (#778) (@snakefoot)
- [#778](https://github.com/NLog/NLog.Extensions.Logging/pull/778): Updated to NLog v5.4 (#778) (@snakefoot)

### Version 5.3.15 (2024/11/21)

**Improvements**
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ test_script:
deploy:
- provider: NuGet
api_key:
secure: C4wzAE+AWne4TbR54gBDkLImCxsfIp21C16wi4LJ3bVSw/HqwZrMSYJ90kl6eAuf
secure: f6oWebyOFLpuuo2PMd6xgoxwMq+JvXVUmPyBme89zS7UF0zcvLYPSKN/p6B/KaMs
on:
branch: master
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.15"
$versionPrefix = "5.4.0"
$versionSuffix = ""
$versionFile = $versionPrefix + "." + ${env:APPVEYOR_BUILD_NUMBER}
$versionProduct = $versionPrefix;
Expand Down
12 changes: 11 additions & 1 deletion src/NLog.Extensions.Logging/Logging/NLogLoggerFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,17 @@ public NLogLoggerFactory()
/// </summary>
/// <param name="options"></param>
public NLogLoggerFactory(NLogProviderOptions options)
:this(new NLogLoggerProvider(options))
:this(options, LogManager.LogFactory)
{
}

/// <summary>
/// New factory with options and isolated LogFactory
/// </summary>
/// <param name="options"></param>
/// <param name="logFactory"></param>
public NLogLoggerFactory(NLogProviderOptions options, LogFactory logFactory)
: this(new NLogLoggerProvider(options, logFactory))
{
RegisterNLogLoggingProvider.SetupNLogConfigSettings(null, null, _provider.LogFactory);
}
Expand Down
9 changes: 4 additions & 5 deletions src/NLog.Extensions.Logging/NLog.Extensions.Logging.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@ For ASP.NET Core, check: https://www.nuget.org/packages/NLog.Web.AspNetCore
<PackageReleaseNotes>
ChangeLog:

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

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

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

<ItemGroup>
<PackageReference Include="NLog" Version="5.3.4" />
<PackageReference Include="NLog" Version="5.4.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net461' ">
Expand Down

0 comments on commit 5cf0f9d

Please sign in to comment.