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