Implemented interface member:
method
IsEnabled
Microsoft.Extensions.Logging.ILogger.IsEnabled(Microsoft.Extensions.Logging.LogLevel)
7 references to IsEnabled
aspire (1)
Interaction\SpectreConsoleLoggerProvider.cs (1)
33if (!IsEnabled(logLevel))
Aspire.Cli.Tests (6)
Interaction\SpectreConsoleLoggerProviderTests.cs (6)
74Assert.True(aspireLogger.IsEnabled(LogLevel.Debug)); 75Assert.True(aspireLogger.IsEnabled(LogLevel.Information)); 76Assert.True(aspireLogger.IsEnabled(LogLevel.Warning)); 78Assert.False(systemLogger.IsEnabled(LogLevel.Debug)); 79Assert.False(systemLogger.IsEnabled(LogLevel.Information)); 80Assert.True(systemLogger.IsEnabled(LogLevel.Warning)); // Warnings and above are allowed for non-Aspire categories