Skip to content

Commit 8a7037e

Browse files
authored
Merge pull request #3 from serilog/dev
Release 2.0.0
2 parents 64c954d + cf99ee4 commit 8a7037e

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# 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/)
2-
1+
# 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/)
32

43
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.
54

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ deploy:
2020
artifact: /Serilog.*\.nupkg/
2121
tag: v$(appveyor_build_version)
2222
on:
23-
branch: master
23+
branch: master
File renamed without changes.

src/Serilog.Extensions.Hosting/Hosting/SerilogLoggerFactory.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ public class SerilogLoggerFactory : ILoggerFactory
2929
/// Initializes a new instance of the <see cref="SerilogLoggerFactory"/> class.
3030
/// </summary>
3131
/// <param name="logger">The Serilog logger; if not supplied, the static <see cref="Serilog.Log"/> will be used.</param>
32-
/// <param name="dispose">When true, dispose <paramref name="logger"/> when the framework disposes the provider. If the
33-
/// logger is not specified but <paramref name="dispose"/> is true, the <see cref="Log.CloseAndFlush()"/> method will be
32+
/// <param name="dispose">When <c>true</c>, dispose <paramref name="logger"/> when the framework disposes the provider. If the
33+
/// logger is not specified but <paramref name="dispose"/> is <c>true</c>, the <see cref="Log.CloseAndFlush()"/> method will be
3434
/// called on the static <see cref="Log"/> class instead.</param>
3535
public SerilogLoggerFactory(ILogger logger = null, bool dispose = false)
3636
{
@@ -63,7 +63,7 @@ public Microsoft.Extensions.Logging.ILogger CreateLogger(string categoryName)
6363
/// <param name="provider">The <see cref="T:Microsoft.Extensions.Logging.ILoggerProvider" />.</param>
6464
public void AddProvider(ILoggerProvider provider)
6565
{
66-
SelfLog.WriteLine("Ignoring added logger provider {0}", provider);
66+
SelfLog.WriteLine("Ignoring add logger provider {0}", provider);
6767
}
6868
}
6969
}

src/Serilog.Extensions.Hosting/SerilogHostBuilderExtensions.cs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2017 Serilog Contributors
1+
// Copyright 2018 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.
@@ -30,10 +30,10 @@ public static class SerilogHostBuilderExtensions
3030
/// </summary>
3131
/// <param name="builder">The host builder to configure.</param>
3232
/// <param name="logger">The Serilog logger; if not supplied, the static <see cref="Serilog.Log"/> will be used.</param>
33-
/// <param name="dispose">When true, dispose <paramref name="logger"/> when the framework disposes the provider. If the
34-
/// logger is not specified but <paramref name="dispose"/> is true, the <see cref="Log.CloseAndFlush()"/> method will be
33+
/// <param name="dispose">When <c>true</c>, dispose <paramref name="logger"/> when the framework disposes the provider. If the
34+
/// logger is not specified but <paramref name="dispose"/> is <c>true</c>, the <see cref="Log.CloseAndFlush()"/> method will be
3535
/// called on the static <see cref="Log"/> class instead.</param>
36-
/// <returns>The web host builder.</returns>
36+
/// <returns>The (generic) host builder.</returns>
3737
public static IHostBuilder UseSerilog(this IHostBuilder builder, Serilog.ILogger logger = null, bool dispose = false)
3838
{
3939
if (builder == null) throw new ArgumentNullException(nameof(builder));
@@ -42,15 +42,17 @@ public static IHostBuilder UseSerilog(this IHostBuilder builder, Serilog.ILogger
4242
return builder;
4343
}
4444

45-
/// <summary>Sets Serilog as the logging provider.</summary>
45+
/// <summary>
46+
/// Sets Serilog as the logging provider.
47+
/// </summary>
4648
/// <remarks>
4749
/// A <see cref="HostBuilderContext"/> is supplied so that configuration and hosting information can be used.
4850
/// The logger will be shut down when application services are disposed.
4951
/// </remarks>
5052
/// <param name="builder">The host builder to configure.</param>
5153
/// <param name="configureLogger">The delegate for configuring the <see cref="LoggerConfiguration" /> that will be used to construct a <see cref="Logger" />.</param>
5254
/// <param name="preserveStaticLogger">Indicates whether to preserve the value of <see cref="Log.Logger"/>.</param>
53-
/// <returns>The web host builder.</returns>
55+
/// <returns>The (generic) host builder.</returns>
5456
public static IHostBuilder UseSerilog(this IHostBuilder builder, Action<HostBuilderContext, LoggerConfiguration> configureLogger, bool preserveStaticLogger = false)
5557
{
5658
if (builder == null) throw new ArgumentNullException(nameof(builder));

0 commit comments

Comments
 (0)