Skip to content

Commit 2f8e704

Browse files
gfoidlandrewlock
authored andcommitted
Some small polish to comments
1 parent 99622c7 commit 2f8e704

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

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)