diff --git a/src/Serilog.AspNetCore/Serilog.AspNetCore.csproj b/src/Serilog.AspNetCore/Serilog.AspNetCore.csproj index 63d5ea8..de4df27 100644 --- a/src/Serilog.AspNetCore/Serilog.AspNetCore.csproj +++ b/src/Serilog.AspNetCore/Serilog.AspNetCore.csproj @@ -4,7 +4,7 @@ Serilog support for ASP.NET Core logging 4.0.1 Microsoft;Serilog Contributors - netstandard2.0;netstandard2.1 + netstandard2.0;netstandard2.1;netcoreapp3.1;net5.0 true true ../../assets/Serilog.snk @@ -32,9 +32,32 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Serilog.AspNetCore/SerilogWebHostBuilderExtensions.cs b/src/Serilog.AspNetCore/SerilogWebHostBuilderExtensions.cs index f27a8fb..ffc45b9 100644 --- a/src/Serilog.AspNetCore/SerilogWebHostBuilderExtensions.cs +++ b/src/Serilog.AspNetCore/SerilogWebHostBuilderExtensions.cs @@ -1,4 +1,4 @@ -// Copyright 2017-2019 Serilog Contributors +// Copyright 2017-2019 Serilog Contributors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -13,11 +13,11 @@ // limitations under the License. using System; +using Microsoft.Extensions.DependencyInjection; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Logging; -using Serilog.Extensions.Logging; -using Microsoft.Extensions.DependencyInjection; using Serilog.Extensions.Hosting; +using Serilog.Extensions.Logging; namespace Serilog { @@ -32,8 +32,8 @@ public static class SerilogWebHostBuilderExtensions /// The web host builder to configure. /// The Serilog logger; if not supplied, the static will be used. /// When true, dispose when the framework disposes the provider. If the - /// logger is not specified but is true, the method will be - /// called on the static class instead. + /// logger is not specified but is true, the method will be + /// called on the static class instead. /// A registered in the Serilog pipeline using the /// WriteTo.Providers() configuration method, enabling other s to receive events. By /// default, only Serilog sinks will receive events. @@ -77,8 +77,8 @@ public static IWebHostBuilder UseSerilog( /// The logger will be shut down when application services are disposed. /// /// The web host builder to configure. - /// The delegate for configuring the that will be used to construct a . - /// Indicates whether to preserve the value of . + /// The delegate for configuring the that will be used to construct a . + /// Indicates whether to preserve the value of . /// By default, Serilog does not write events to s registered through /// the Microsoft.Extensions.Logging API. Normally, equivalent Serilog sinks are used in place of providers. Specify /// true to write events to all providers.