diff --git a/README.md b/README.md index 72eb4f0..efb5643 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ -# Serilog.Extensions.Hosting [![Build status](https://ci.appveyor.com/api/projects/status/4rscdto23ik6vm2r?svg=true)](https://ci.appveyor.com/project/serilog/serilog-hosting) [![NuGet Version](http://img.shields.io/nuget/v/Serilog.Extensions.Hosting.svg?style=flat)](https://www.nuget.org/packages/Serilog.Extensions.Hosting/) - +# Serilog.Extensions.Hosting [![Build status](https://ci.appveyor.com/api/projects/status/ue4s7htjwj88fulh?svg=true)](https://ci.appveyor.com/project/serilog/serilog-extensions-hosting) [![NuGet Version](http://img.shields.io/nuget/v/Serilog.Extensions.Hosting.svg?style=flat)](https://www.nuget.org/packages/Serilog.Extensions.Hosting/) Serilog logging for Microsoft.Extensions.Hosting . This package routes Microsoft.Extensions.Hosting log messages through Serilog, so you can get information about the framework's internal operations logged to the same Serilog sinks as your application events. diff --git a/appveyor.yml b/appveyor.yml index 9ba709e..02761fd 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -20,4 +20,4 @@ deploy: artifact: /Serilog.*\.nupkg/ tag: v$(appveyor_build_version) on: -branch: master + branch: master diff --git a/serilog-hosting.sln b/serilog-extensions-hosting.sln similarity index 100% rename from serilog-hosting.sln rename to serilog-extensions-hosting.sln diff --git a/src/Serilog.Extensions.Hosting/Hosting/SerilogLoggerFactory.cs b/src/Serilog.Extensions.Hosting/Hosting/SerilogLoggerFactory.cs index 028d26a..1c91166 100644 --- a/src/Serilog.Extensions.Hosting/Hosting/SerilogLoggerFactory.cs +++ b/src/Serilog.Extensions.Hosting/Hosting/SerilogLoggerFactory.cs @@ -29,8 +29,8 @@ public class SerilogLoggerFactory : ILoggerFactory /// Initializes a new instance of the class. /// /// 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 + /// 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. public SerilogLoggerFactory(ILogger logger = null, bool dispose = false) { @@ -63,7 +63,7 @@ public Microsoft.Extensions.Logging.ILogger CreateLogger(string categoryName) /// The . public void AddProvider(ILoggerProvider provider) { - SelfLog.WriteLine("Ignoring added logger provider {0}", provider); + SelfLog.WriteLine("Ignoring add logger provider {0}", provider); } } } diff --git a/src/Serilog.Extensions.Hosting/SerilogHostBuilderExtensions.cs b/src/Serilog.Extensions.Hosting/SerilogHostBuilderExtensions.cs index c432991..804b8c3 100644 --- a/src/Serilog.Extensions.Hosting/SerilogHostBuilderExtensions.cs +++ b/src/Serilog.Extensions.Hosting/SerilogHostBuilderExtensions.cs @@ -1,4 +1,4 @@ -// Copyright 2017 Serilog Contributors +// Copyright 2018 Serilog Contributors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -30,10 +30,10 @@ public static class SerilogHostBuilderExtensions /// /// The 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 + /// 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. - /// The web host builder. + /// The (generic) host builder. public static IHostBuilder UseSerilog(this IHostBuilder builder, Serilog.ILogger logger = null, bool dispose = false) { if (builder == null) throw new ArgumentNullException(nameof(builder)); @@ -42,7 +42,9 @@ public static IHostBuilder UseSerilog(this IHostBuilder builder, Serilog.ILogger return builder; } - /// Sets Serilog as the logging provider. + /// + /// Sets Serilog as the logging provider. + /// /// /// A is supplied so that configuration and hosting information can be used. /// The logger will be shut down when application services are disposed. @@ -50,7 +52,7 @@ public static IHostBuilder UseSerilog(this IHostBuilder builder, Serilog.ILogger /// The host builder to configure. /// The delegate for configuring the that will be used to construct a . /// Indicates whether to preserve the value of . - /// The web host builder. + /// The (generic) host builder. public static IHostBuilder UseSerilog(this IHostBuilder builder, Action configureLogger, bool preserveStaticLogger = false) { if (builder == null) throw new ArgumentNullException(nameof(builder));