We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5191db commit c3628acCopy full SHA for c3628ac
src/Stravaig.Extensions.Logging.Diagnostics/TestCaptureLogger(OfTCategoryType).cs
@@ -44,8 +44,13 @@ public bool IsEnabled(LogLevel logLevel)
44
=> _logger.IsEnabled(logLevel);
45
46
/// <inheritdoc />
47
+#if NET7_0_OR_GREATER
48
public IDisposable? BeginScope<TState>(TState state) where TState : notnull
49
=> _logger.BeginScope(state);
50
+#else
51
+ public IDisposable BeginScope<TState>(TState state)
52
+ => _logger.BeginScope(state);
53
+#endif
54
55
/// <summary>
56
/// Resets the logger by discarding the captured logs.
0 commit comments