Implemented interface member:
method
IsEnabled
Microsoft.Extensions.Logging.ILogger.IsEnabled(Microsoft.Extensions.Logging.LogLevel)
14 references to IsEnabled
Microsoft.Extensions.Diagnostics.Testing.Tests (14)
Logging\FakeLoggerTests.cs (14)
151
Assert.True(logger.
IsEnabled
(LogLevel.Trace));
152
Assert.True(logger.
IsEnabled
(LogLevel.Debug));
153
Assert.True(logger.
IsEnabled
(LogLevel.Information));
154
Assert.True(logger.
IsEnabled
(LogLevel.Warning));
155
Assert.True(logger.
IsEnabled
(LogLevel.Error));
156
Assert.True(logger.
IsEnabled
(LogLevel.Critical));
157
Assert.True(logger.
IsEnabled
((LogLevel)42));
162
Assert.True(logger.
IsEnabled
(LogLevel.Trace));
163
Assert.False(logger.
IsEnabled
(LogLevel.Debug));
164
Assert.True(logger.
IsEnabled
(LogLevel.Information));
165
Assert.True(logger.
IsEnabled
(LogLevel.Warning));
166
Assert.True(logger.
IsEnabled
(LogLevel.Error));
167
Assert.True(logger.
IsEnabled
(LogLevel.Critical));
168
Assert.False(logger.
IsEnabled
((LogLevel)42));