Skip to content

Commit f009ec1

Browse files
Merge pull request #259 from snakefoot/master
Version 1.4 release notes
2 parents 22e2f29 + d75b1fe commit f009ec1

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

CHANGELOG.MD

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

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

5+
### v1.4 (2019/01/17)
6+
- [#257](https://github.com/NLog/NLog.Extensions.Logging/pull/257) Updated to Microsoft.Extensions.Logging ver. 2.1.0 with support for ${configsetting}
7+
- [#248](https://github.com/NLog/NLog.Extensions.Logging/pull/248) Configure NLogProviderOptions from appsettings.json
8+
- [#257](https://github.com/NLog/NLog.Extensions.Logging/pull/258) Create snupkg packages
59

610
### v1.3 (2018/09/22)
711
- [#245](https://github.com/NLog/NLog.Extensions.Logging/pull/245) Added ${configsetting} for appsettings.json and others (@snakefoot, @linmasaki)

src/NLog.Extensions.Hosting/Extensions/ConfigureExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static IHostBuilder UseNLog(this IHostBuilder builder, NLogProviderOption
4848
{
4949
ConfigSettingLayoutRenderer.DefaultConfiguration = hostbuilder.Configuration;
5050
if (options == null)
51-
provider.Configure(hostbuilder.Configuration?.GetSection("Logging:NLog"));
51+
provider.Configure(hostbuilder.Configuration.GetSection("Logging:NLog"));
5252
}
5353
return provider;
5454
});

src/NLog.Extensions.Hosting/NLog.Extensions.Hosting.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
<RepositoryUrl>https://github.com/NLog/NLog.Extensions.Logging.git</RepositoryUrl>
1919
<RepositoryType>git</RepositoryType>
2020
<PackageTags>NLog;Microsoft.Extensions.Hosting;log;logfiles;netcore</PackageTags>
21-
<PackageReleaseNotes>1.0: Initial release</PackageReleaseNotes>
21+
<PackageReleaseNotes>
22+
- ${configsetting} layout renderer now uses IHostBuilder.Configuration
23+
- NLogLoggerProvider options now binds to IHostBuilder.Configuration (Using section Logging:NLog)
24+
</PackageReleaseNotes>
2225

2326
<!-- SonarQube needs this -->
2427
<ProjectGuid>{548E65CE-0378-4812-AE00-B173F1251D3C}</ProjectGuid>

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@ For ASP.NET Core, use NLog.Web.AspNetCore: https://www.nuget.org/packages/NLog.W
1818
</Description>
1919
<PackageTags>NLog;Microsoft.Extensions.Logging;log;logfiles;netcore</PackageTags>
2020
<PackageReleaseNotes>
21-
22-
- Added ${configsetting} for appsettings.json and others (@snakefoot)
23-
- Fixing bug throwing ArgumentOutOfRangeException if input is empty list (@thorhalvor)
24-
- BeginScope always return scope-object even on error (@snakefoot)
25-
- Enhancements for .NET Core 2 examples (@bryan5989)
21+
- Updated to Microsoft.Extensions.Logging ver. 2.1.0
22+
- ${configsetting} layout renderer now depends on AddNLog-call to provide IConfiguration-interface
23+
- NLogLoggerProvider options now binds to IConfiguration (Using section Logging:NLog)
24+
- Now builds snupkg packages
2625

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

0 commit comments

Comments
 (0)