From 5c5e7f1856ddff127d008d4cd572150e70b20f1a Mon Sep 17 00:00:00 2001 From: Shuai Zhang Date: Tue, 16 Aug 2022 20:41:37 +0800 Subject: [PATCH] Fix invisible NullScope from internal package. --- .../Xunit/MicrosoftExtensions.Logging.Xunit/XunitLogger.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MicrosoftExtensions/Logging/Xunit/MicrosoftExtensions.Logging.Xunit/XunitLogger.cs b/MicrosoftExtensions/Logging/Xunit/MicrosoftExtensions.Logging.Xunit/XunitLogger.cs index 97bea068..c1c82546 100644 --- a/MicrosoftExtensions/Logging/Xunit/MicrosoftExtensions.Logging.Xunit/XunitLogger.cs +++ b/MicrosoftExtensions/Logging/Xunit/MicrosoftExtensions.Logging.Xunit/XunitLogger.cs @@ -5,7 +5,7 @@ using System; using System.Text; -using Microsoft.Extensions.Logging.Abstractions.Internal; +using Microsoft.Extensions.Logging.Abstractions; using Xunit.Abstractions; namespace Microsoft.Extensions.Logging.Xunit @@ -36,7 +36,7 @@ public XunitLogger(ITestOutputHelper testOutputHelper, string name) public IDisposable BeginScope(TState state) { - return NullScope.Instance; + return NullLogger.Instance.BeginScope(state); } public bool IsEnabled(LogLevel logLevel) => true;