From 3d392896e5da1a0b0ca579fefb6c8d63bb12d5f8 Mon Sep 17 00:00:00 2001 From: Nicholas Blumhardt Date: Mon, 4 Jun 2018 07:59:47 +1000 Subject: [PATCH 1/5] Update the CI badge, and kick off the first build! --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 72eb4f0..76f4043 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/5650t7prplieo2kd?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. From 993ce3ac28d3faf2c41e859f452b7d8a31b66c55 Mon Sep 17 00:00:00 2001 From: Nicholas Blumhardt Date: Mon, 4 Jun 2018 08:01:26 +1000 Subject: [PATCH 2/5] Solution file name --- serilog-hosting.sln => serilog-extensions-hosting.sln | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename serilog-hosting.sln => serilog-extensions-hosting.sln (100%) 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 From 99622c7ae95522f8e9f77ef9ebcdef5b0a162858 Mon Sep 17 00:00:00 2001 From: Nicholas Blumhardt Date: Mon, 4 Jun 2018 08:01:54 +1000 Subject: [PATCH 3/5] appveyor.yml indentation --- appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 2f8e704af33d228c255787d56290c40aee30caef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Foidl?= Date: Mon, 4 Jun 2018 19:21:49 +0200 Subject: [PATCH 4/5] Some small polish to comments --- .../Hosting/SerilogLoggerFactory.cs | 6 +++--- .../SerilogHostBuilderExtensions.cs | 14 ++++++++------ 2 files changed, 11 insertions(+), 9 deletions(-) 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)); From cf99ee4cfd92c4fa23d5e72919e2389355fe1f02 Mon Sep 17 00:00:00 2001 From: Nicholas Blumhardt Date: Wed, 18 Jul 2018 07:30:29 +1000 Subject: [PATCH 5/5] Trigger new CI build for #1 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 76f4043..efb5643 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Serilog.Extensions.Hosting [![Build status](https://ci.appveyor.com/api/projects/status/5650t7prplieo2kd?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.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.