From ddb885eba0ad504b223b8cbda16bfbd2758311a9 Mon Sep 17 00:00:00 2001 From: Nicholas Blumhardt Date: Sun, 10 May 2020 07:46:43 +1000 Subject: [PATCH] Added comment --- .../SerilogHostBuilderExtensions.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Serilog.Extensions.Hosting/SerilogHostBuilderExtensions.cs b/src/Serilog.Extensions.Hosting/SerilogHostBuilderExtensions.cs index e87643d..081b10f 100644 --- a/src/Serilog.Extensions.Hosting/SerilogHostBuilderExtensions.cs +++ b/src/Serilog.Extensions.Hosting/SerilogHostBuilderExtensions.cs @@ -1,4 +1,4 @@ -// Copyright 2020 Serilog Contributors +// Copyright 2020 Serilog Contributors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -188,8 +188,10 @@ public static IHostBuilder UseSerilog( return factory; }); + // Null is passed here because we've already (lazily) registered `ILogger` ConfigureServices(collection, null); }); + return builder; }