Skip to content

Commit 5b02055

Browse files
authored
Merge pull request #243 from serilog/dev
4.1.0 Release
2 parents 458610a + ce214e1 commit 5b02055

File tree

3 files changed

+33
-10
lines changed

3 files changed

+33
-10
lines changed

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"sdk": {
33
"allowPrerelease": false,
4-
"version": "5.0.102",
4+
"version": "5.0.201",
55
"rollForward": "latestFeature"
66
}
77
}

src/Serilog.AspNetCore/Serilog.AspNetCore.csproj

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
<PropertyGroup>
44
<Description>Serilog support for ASP.NET Core logging</Description>
5-
<VersionPrefix>4.0.0</VersionPrefix>
5+
<VersionPrefix>4.1.0</VersionPrefix>
66
<Authors>Microsoft;Serilog Contributors</Authors>
7-
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks>
7+
<TargetFrameworks>netstandard2.0;netstandard2.1;netcoreapp3.1;net5.0</TargetFrameworks>
88
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
99
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1010
<AssemblyOriginatorKeyFile>../../assets/Serilog.snk</AssemblyOriginatorKeyFile>
@@ -32,9 +32,32 @@
3232
<PackageReference Include="Serilog.Sinks.Debug" Version="2.0.0" />
3333
<PackageReference Include="Serilog.Settings.Configuration" Version="3.1.0" />
3434
<PackageReference Include="Serilog.Formatting.Compact" Version="1.1.0" />
35+
</ItemGroup>
36+
37+
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
38+
<PackageReference Include="Microsoft.AspNetCore.Hosting.Abstractions" Version="2.2.0" />
39+
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.2.0" />
40+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="2.2.0" />
41+
<PackageReference Include="Microsoft.Extensions.Logging" Version="2.2.0" />
42+
</ItemGroup>
43+
44+
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.1'">
3545
<PackageReference Include="Microsoft.AspNetCore.Hosting.Abstractions" Version="2.2.0" />
46+
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.2.0" />
47+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="2.2.0" />
48+
<PackageReference Include="Microsoft.Extensions.Logging" Version="2.2.0" />
49+
</ItemGroup>
50+
51+
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
52+
<FrameworkReference Include="Microsoft.AspNetCore.App" />
3653
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.8" />
3754
<PackageReference Include="Microsoft.Extensions.Logging" Version="3.1.8" />
3855
</ItemGroup>
3956

57+
<ItemGroup Condition="'$(TargetFramework)' == 'net5.0'">
58+
<FrameworkReference Include="Microsoft.AspNetCore.App" />
59+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.0" />
60+
<PackageReference Include="Microsoft.Extensions.Logging" Version="5.0.0" />
61+
</ItemGroup>
62+
4063
</Project>

src/Serilog.AspNetCore/SerilogWebHostBuilderExtensions.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2017-2019 Serilog Contributors
1+
// Copyright 2017-2019 Serilog Contributors
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -13,11 +13,11 @@
1313
// limitations under the License.
1414

1515
using System;
16+
using Microsoft.Extensions.DependencyInjection;
1617
using Microsoft.AspNetCore.Hosting;
1718
using Microsoft.Extensions.Logging;
18-
using Serilog.Extensions.Logging;
19-
using Microsoft.Extensions.DependencyInjection;
2019
using Serilog.Extensions.Hosting;
20+
using Serilog.Extensions.Logging;
2121

2222
namespace Serilog
2323
{
@@ -32,8 +32,8 @@ public static class SerilogWebHostBuilderExtensions
3232
/// <param name="builder">The web host builder to configure.</param>
3333
/// <param name="logger">The Serilog logger; if not supplied, the static <see cref="Serilog.Log"/> will be used.</param>
3434
/// <param name="dispose">When true, dispose <paramref name="logger"/> when the framework disposes the provider. If the
35-
/// logger is not specified but <paramref name="dispose"/> is true, the <see cref="Log.CloseAndFlush()"/> method will be
36-
/// called on the static <see cref="Log"/> class instead.</param>
35+
/// logger is not specified but <paramref name="dispose"/> is true, the <see cref="Serilog.Log.CloseAndFlush()"/> method will be
36+
/// called on the static <see cref="Serilog.Log"/> class instead.</param>
3737
/// <param name="providers">A <see cref="LoggerProviderCollection"/> registered in the Serilog pipeline using the
3838
/// <c>WriteTo.Providers()</c> configuration method, enabling other <see cref="ILoggerProvider"/>s to receive events. By
3939
/// default, only Serilog sinks will receive events.</param>
@@ -77,8 +77,8 @@ public static IWebHostBuilder UseSerilog(
7777
/// The logger will be shut down when application services are disposed.
7878
/// </remarks>
7979
/// <param name="builder">The web host builder to configure.</param>
80-
/// <param name="configureLogger">The delegate for configuring the <see cref="LoggerConfiguration" /> that will be used to construct a <see cref="Logger" />.</param>
81-
/// <param name="preserveStaticLogger">Indicates whether to preserve the value of <see cref="Log.Logger"/>.</param>
80+
/// <param name="configureLogger">The delegate for configuring the <see cref="LoggerConfiguration" /> that will be used to construct a <see cref="Serilog.Core.Logger" />.</param>
81+
/// <param name="preserveStaticLogger">Indicates whether to preserve the value of <see cref="Serilog.Log.Logger"/>.</param>
8282
/// <param name="writeToProviders">By default, Serilog does not write events to <see cref="ILoggerProvider"/>s registered through
8383
/// the Microsoft.Extensions.Logging API. Normally, equivalent Serilog sinks are used in place of providers. Specify
8484
/// <c>true</c> to write events to all providers.</param>

0 commit comments

Comments
 (0)