41 references to None
Aspire.Dashboard (1)
Otlp\Model\OtlpLogEntry.cs (1)
92_ => LogLevel.None
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Logging\TestLogger.cs (1)
59return logLevel != LogLevel.None && _filter(logLevel);
Aspire.Dashboard.Tests (1)
tests\Shared\Logging\TestLogger.cs (1)
59return logLevel != LogLevel.None && _filter(logLevel);
Aspire.Hosting (3)
DistributedApplicationBuilder.cs (1)
145_innerBuilder.Logging.AddFilter("Microsoft.Extensions.Diagnostics.HealthChecks.DefaultHealthCheckService", LogLevel.None);
ResourceBuilderExtensions.cs (2)
887configure.AddFilter($"System.Net.Http.HttpClient.{healthCheckKey}.LogicalHandler", LogLevel.None); 888configure.AddFilter($"System.Net.Http.HttpClient.{healthCheckKey}.ClientHandler", LogLevel.None);
Aspire.Hosting.Testing.Tests (1)
tests\Shared\Logging\TestLogger.cs (1)
59return logLevel != LogLevel.None && _filter(logLevel);
Aspire.Hosting.Tests (1)
tests\Shared\Logging\TestLogger.cs (1)
59return logLevel != LogLevel.None && _filter(logLevel);
Aspire.Playground.Tests (1)
tests\Shared\Logging\TestLogger.cs (1)
59return logLevel != LogLevel.None && _filter(logLevel);
Microsoft.AspNetCore.Components.WebAssembly (2)
Services\WebAssemblyConsoleLogger.cs (2)
41return logLevel != LogLevel.None; 95Debug.Assert(logLevel != LogLevel.None, "This method is never called with LogLevel.None.");
Microsoft.AspNetCore.InternalTesting (1)
Logging\TestLogger.cs (1)
63return logLevel != LogLevel.None && _filter(logLevel);
Microsoft.CodeAnalysis.LanguageServer (2)
Logging\LspLogMessageLogger.cs (1)
59if (message != null && logLevel != LogLevel.None)
Testing\RunTestsHandler.cs (1)
164Microsoft.Extensions.Logging.LogLevel.None => TraceLevel.Off,
Microsoft.Extensions.Diagnostics.Testing (1)
Logging\FakeLogRecord.cs (1)
144LogLevel.None => " none",
Microsoft.Extensions.Diagnostics.Testing.Tests (4)
Logging\FakeLogCollectorTests.cs (4)
61logger.Log(LogLevel.None, "Hello world!"); 103logger.Log(LogLevel.None, "Hello world!"); 142logger.Log(LogLevel.None, "Hello world!"); 174logger.Log(LogLevel.None, "Hello world!");
Microsoft.Extensions.Logging (2)
Logger.cs (1)
232public LogLevel LogLevel => CalculateEnabledLogLevel(messageLogger) ?? LogLevel.None;
LoggerFilterOptions.cs (1)
44if (MinLevel != LogLevel.None)
Microsoft.Extensions.Logging.Abstractions (1)
LoggerMessageAttribute.cs (1)
102public LogLevel Level { get; set; } = LogLevel.None;
Microsoft.Extensions.Logging.AzureAppServices (1)
ConfigurationBasedLevelSwitcher.cs (1)
46return LogLevel.None;
Microsoft.Extensions.Logging.Configuration (1)
LoggerFilterConfigureOptions.cs (1)
76level = LogLevel.None;
Microsoft.Extensions.Logging.Console (4)
ConfigurationConsoleLoggerSettings.cs (2)
82level = LogLevel.None; 89level = LogLevel.None;
ConsoleLogger.cs (1)
105return logLevel != LogLevel.None;
ConsoleLoggerOptions.cs (1)
65public LogLevel LogToStandardErrorThreshold { get; set; } = LogLevel.None;
Microsoft.Extensions.Logging.Debug (1)
DebugLogger.cs (1)
35return Debugger.IsAttached && logLevel != LogLevel.None;
Microsoft.Extensions.Logging.EventLog (1)
EventLogLogger.cs (1)
65return logLevel != LogLevel.None &&
Microsoft.Extensions.Logging.EventSource (5)
EventSourceLogger.cs (1)
51return logLevel != LogLevel.None && logLevel >= Level;
EventSourceLoggerProvider.cs (1)
47logger.Level = LogLevel.None;
LoggingEventSource.cs (3)
416return new[] { new LoggerFilterRule(typeof(EventSourceLoggerProvider).FullName, null, LogLevel.None, null) }; 429rules.Add(new LoggerFilterRule(typeof(EventSourceLoggerProvider).FullName, null, LogLevel.None, null)); 506if (!(LogLevel.Trace <= (LogLevel)level && (LogLevel)level <= LogLevel.None))
Microsoft.Extensions.Logging.TraceSource (1)
TraceSourceLogger.cs (1)
59if (logLevel == LogLevel.None)
Microsoft.Extensions.Telemetry.Tests (1)
Logging\ExtendedLoggerTests.cs (1)
647builder.AddFilter(null, LogLevel.None);
Microsoft.Gen.Logging.Generated.Tests (4)
LogMethodTests.cs (1)
433Assert.Equal(LogLevel.None, collector.LatestRecord.Level);
LogPropertiesRedactionTests.cs (2)
161LogTwoParamsDefaultCtor(logger, LogLevel.None, "string_prop", classToRedact); 165Assert.Equal(LogLevel.None, collector.LatestRecord.Level);
test\Generators\Microsoft.Gen.Logging\TestClasses\LevelTestExtensions.cs (1)
28[LoggerMessage(6, LogLevel.None, "M6")]