Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 5.2.0 #645

Merged
merged 1 commit into from
Nov 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

Date format: (year/month/day)

### Version 5.2.0 (2022/11/27)

**Improvements**
- [#645](https://github.com/NLog/NLog.Extensions.Logging/pull/645): Updated to NLog v5.1 with support for ISpanFormattable (@snakefoot)
- [#646](https://github.com/NLog/NLog.Extensions.Logging/pull/646): Use CallerArgumentExpressionAttribute in helper method for throwing ArgumentNullException (@snakefoot)
- [#639](https://github.com/NLog/NLog.Extensions.Logging/pull/639): NLogBeginScopeParser - CaptureScopeProperties with cached scopePropertyCount (@snakefoot)
- [#638](https://github.com/NLog/NLog.Extensions.Logging/pull/638): NLogMessageParameterList - Skip parsing Parameters-array when simple positional message template (@snakefoot)
- [#635](https://github.com/NLog/NLog.Extensions.Logging/pull/635): Improve XML docs for AddNLog with IConfiguration override (@snakefoot)
- [#634](https://github.com/NLog/NLog.Extensions.Logging/pull/634): NLogLogger - Small optimization when message-template syntax is used (@snakefoot)
- [#632](https://github.com/NLog/NLog.Extensions.Logging/pull/632): Use RegisterConfigSettings instead of ConfigSettingLayoutRenderer (@snakefoot)
- [#631](https://github.com/NLog/NLog.Extensions.Logging/pull/631): NLog.Extensions.Hosting - Skip RegisterItemsFromAssembly since handled by RegisterConfigSettings (@snakefoot)

### Version 5.1.0 (2022/10/26)

**Improvements**
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.1.0"
$versionPrefix = "5.2.0"
$versionSuffix = ""
$versionFile = $versionPrefix + "." + ${env:APPVEYOR_BUILD_NUMBER}
$versionProduct = $versionPrefix;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public static IHostBuilder UseNLog(this IHostBuilder builder, NLogProviderOption

private static void AddNLogLoggerProvider(IServiceCollection services, IConfiguration hostConfiguration, IHostEnvironment hostEnvironment, NLogProviderOptions options, Func<IServiceProvider, IConfiguration, IHostEnvironment, NLogProviderOptions, NLogLoggerProvider> factory)
{
LogManager.AddHiddenAssembly(typeof(ConfigureExtensions).GetTypeInfo().Assembly);
services.TryAddNLogLoggingProvider((svc, addlogging) => svc.AddLogging(addlogging), hostConfiguration, options, (provider, cfg, opt) => factory(provider, cfg, hostEnvironment, opt));
}

Expand Down
14 changes: 9 additions & 5 deletions src/NLog.Extensions.Logging/NLog.Extensions.Logging.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@ For ASP.NET Core, check: https://www.nuget.org/packages/NLog.Web.AspNetCore
</Description>
<PackageTags>NLog;Microsoft.Extensions.Logging;log;logging;logfiles;netcore</PackageTags>
<PackageReleaseNotes>
- Replace NetCoreApp31 + Net50 with NetStandard2.1 + Net60 (#629) (@snakefoot)
- MicrosoftConsoleJsonLayout - Skip string-allocation for timestamp-output (#628) (@snakefoot)
- LoadConfigurationFromSection should RegisterConfigSettings without configuration assign (#627) (@snakefoot)
- Bump NLog from 5.0.4 to 5.0.5 (#630) (@snakefoot)
- Updated to NLog v5.1 with support for ISpanFormattable (#645) (@snakefoot)
- Use CallerArgumentExpressionAttribute in helper method for throwing ArgumentNullException (#646) (@snakefoot)
- NLogBeginScopeParser - CaptureScopeProperties with cached scopePropertyCount (#639) (@snakefoot)
- NLogMessageParameterList - Skip parsing Parameters-array when simple positional message template (#638) (@snakefoot)
- Improve XML docs for AddNLog with IConfiguration override (#635) (@snakefoot)
- NLogLogger - Small optimization when message-template syntax is used (#634) (@snakefoot)
- Use RegisterConfigSettings instead of ConfigSettingLayoutRenderer (#632) (@snakefoot)
- NLog.Extensions.Hosting - Skip RegisterItemsFromAssembly since handled by RegisterConfigSettings (#631) (@snakefoot)

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

Expand Down Expand Up @@ -72,7 +76,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.0.5" />
<PackageReference Include="NLog" Version="5.1.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net461' ">
Expand Down