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)
151Assert.True(logger.IsEnabled(LogLevel.Trace)); 152Assert.True(logger.IsEnabled(LogLevel.Debug)); 153Assert.True(logger.IsEnabled(LogLevel.Information)); 154Assert.True(logger.IsEnabled(LogLevel.Warning)); 155Assert.True(logger.IsEnabled(LogLevel.Error)); 156Assert.True(logger.IsEnabled(LogLevel.Critical)); 157Assert.True(logger.IsEnabled((LogLevel)42)); 162Assert.True(logger.IsEnabled(LogLevel.Trace)); 163Assert.False(logger.IsEnabled(LogLevel.Debug)); 164Assert.True(logger.IsEnabled(LogLevel.Information)); 165Assert.True(logger.IsEnabled(LogLevel.Warning)); 166Assert.True(logger.IsEnabled(LogLevel.Error)); 167Assert.True(logger.IsEnabled(LogLevel.Critical)); 168Assert.False(logger.IsEnabled((LogLevel)42));