Skip to content

Commit

Permalink
Version 5.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
snakefoot committed Nov 27, 2022
1 parent 8778b7d commit d47d264
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
13 changes: 13 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

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 5.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)
- [#632](https://github.com/NLog/NLog.Extensions.Logging/pull/632): LoadConfigurationFromSection should RegisterConfigSettings without configuration assign (@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

0 comments on commit d47d264

Please sign in to comment.