525 references to Warning
aspire (4)
Diagnostics\FileLoggerProvider.cs (1)
191LogLevel.Warning => "WARN",
Interaction\SpectreConsoleLoggerProvider.cs (2)
36(categoryName.StartsWith("Aspire.Cli", StringComparison.Ordinal) || logLevel >= LogLevel.Warning); 71LogLevel.Warning => "warn",
Program.cs (1)
218builder.AddFilter("Microsoft.Hosting.Lifetime", LogLevel.Warning);
Aspire.Cli.Tests (3)
Commands\RunCommandTests.cs (1)
1522LogLevel = LogLevel.Warning,
Interaction\SpectreConsoleLoggerProviderTests.cs (2)
37Assert.True(aspireLogger.IsEnabled(LogLevel.Warning)); 41Assert.True(systemLogger.IsEnabled(LogLevel.Warning)); // Warnings and above are allowed for non-Aspire categories
Aspire.Confluent.Kafka (1)
MetricsService.cs (1)
80[LoggerMessage(LogLevel.Warning, EventId = 1, Message = "Invalid statistics json payload received: '{json}'")]
Aspire.Dashboard (10)
Components\Pages\StructuredLogs.razor.cs (1)
211new SelectViewModel<LogLevel?> { Id = LogLevel.Warning, Name = "Warning" },
DashboardWebApplication.cs (4)
152builder.Logging.AddFilter("Microsoft.AspNetCore.Cors", LogLevel.Warning); 153builder.Logging.AddFilter("Microsoft.AspNetCore.Hosting.Diagnostics", LogLevel.Warning); 154builder.Logging.AddFilter("Microsoft.AspNetCore.Routing.EndpointMiddleware", LogLevel.Warning); 155builder.Logging.AddFilter("Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware", LogLevel.Warning);
Otlp\Model\OtlpLogEntry.cs (5)
31public bool IsWarning => Severity is LogLevel.Warning; 111SeverityNumberProto.Warn => LogLevel.Warning, 112SeverityNumberProto.Warn2 => LogLevel.Warning, 113SeverityNumberProto.Warn3 => LogLevel.Warning, 114SeverityNumberProto.Warn4 => LogLevel.Warning,
Aspire.Dashboard.Tests (17)
Integration\FrontendBrowserTokenAuthTests.cs (3)
207Assert.Equal(LogLevel.Warning, w.LogLevel); 212Assert.Equal(LogLevel.Warning, w.LogLevel); 217Assert.Equal(LogLevel.Warning, w.LogLevel);
Integration\StartupTests.cs (11)
471if (w.LogLevel != LogLevel.Warning) 722Assert.Equal(LogLevel.Warning, w.LogLevel); 727Assert.Equal(LogLevel.Warning, w.LogLevel); 732Assert.Equal(LogLevel.Warning, w.LogLevel); 772Assert.Equal(LogLevel.Warning, w.LogLevel); 777Assert.Equal(LogLevel.Warning, w.LogLevel); 797var l = testSink.Writes.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Warning).ToList(); 837.Where(w => w.LoggerName == typeof(DashboardWebApplication).FullName && w.LogLevel >= LogLevel.Warning) 939Assert.Equal(LogLevel.Warning, w.LogLevel); 944Assert.Equal(LogLevel.Warning, w.LogLevel); 949Assert.Equal(LogLevel.Warning, w.LogLevel);
Model\IconResolverTests.cs (1)
61Assert.Equal(LogLevel.Warning, write.LogLevel);
Model\TelemetryImportServiceTests.cs (1)
313Assert.Equal(Microsoft.Extensions.Logging.LogLevel.Warning, importedLogs.Items[0].Severity);
Telemetry\DashboardTelemetryServiceTests.cs (1)
158Assert.False(testSink.Writes.Any(w => w.LogLevel >= LogLevel.Warning), "Test ran without any warnings or errors logged.");
Aspire.Hosting (6)
Ats\LoggingExports.cs (1)
128"warning" or "warn" => LogLevel.Warning,
BuiltInDistributedApplicationEventSubscriptionHandlers.cs (1)
101if (logger.IsEnabled(LogLevel.Warning))
Dcp\DcpLogParser.cs (1)
82logLevel = LogLevel.Warning;
DistributedApplicationBuilder.cs (3)
199_innerBuilder.Logging.AddFilter("Microsoft.Hosting.Lifetime", LogLevel.Warning); 215_innerBuilder.Logging.AddFilter("Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer", LogLevel.Warning); 542"warn" or "warning" => LogLevel.Warning,
Aspire.Hosting.Docker (4)
DockerComposePublisherLoggerExtensions.cs (4)
16[LoggerMessage(LogLevel.Warning, "{ResourceName} with type '{ResourceType}' is not supported by this publisher")] 31[LoggerMessage(LogLevel.Warning, "Failed to get container image for resource '{ResourceName}', it will be skipped in the output.")] 34[LoggerMessage(LogLevel.Warning, "Not in publishing mode. Skipping writing docker-compose.yaml output file.")] 40[LoggerMessage(LogLevel.Warning, "Resource '{ResourceName}' has a bind mount with host-specific source path '{SourcePath}'. The source has been replaced with an environment variable placeholder '{Placeholder}' which may make the application less portable across different machines.")]
Aspire.Hosting.Kubernetes (3)
KubernetesPublisherLoggerExtensions.cs (3)
10[LoggerMessage(LogLevel.Warning, "{ResourceName} with type '{ResourceType}' is not supported by this publisher")] 25[LoggerMessage(LogLevel.Warning, "Failed to get container image for resource '{ResourceName}', it will be skipped in the output.")] 28[LoggerMessage(LogLevel.Warning, "Not in publishing mode. Skipping writing kubernetes manifests.")]
Aspire.Hosting.Tests (14)
Backchannel\BackchannelLoggerProviderTests.cs (1)
29Assert.Equal(LogLevel.Warning, snapshot[1].LogLevel);
Dashboard\DashboardResourceTests.cs (1)
554[InlineData(LogLevel.Warning)]
Dcp\DcpHostNotificationTests.cs (7)
163Assert.Contains(testSink.Writes, w => w.LogLevel == LogLevel.Warning && w.Message is not null && w.Message.Contains("aka.ms/aspire/devcerts", StringComparison.Ordinal)); 570Assert.DoesNotContain(testSink.Writes, w => w.LogLevel == LogLevel.Warning); 622Assert.DoesNotContain(testSink.Writes, w => w.LogLevel == LogLevel.Warning); 675Assert.Contains(testSink.Writes, w => w.LogLevel == LogLevel.Warning); 737Assert.DoesNotContain(testSink.Writes, w => w.LogLevel == LogLevel.Warning); 797Assert.DoesNotContain(testSink.Writes, w => w.LogLevel == LogLevel.Warning); 855Assert.Contains(testSink.Writes, w => w.LogLevel == LogLevel.Warning);
Dcp\DcpLogParserTests.cs (2)
60Assert.Equal(LogLevel.Warning, logLevel); 222[InlineData("warning", LogLevel.Warning)]
PersistentContainerWarningTests.cs (3)
37Assert.Contains(testSink.Writes, w => w.LogLevel == LogLevel.Warning && w.Message?.Contains("my-container") == true); 61Assert.DoesNotContain(testSink.Writes, w => w.LogLevel == LogLevel.Warning); 83Assert.DoesNotContain(testSink.Writes, w => w.LogLevel == LogLevel.Warning);
Aspire.RabbitMQ.Client (1)
src\Components\Aspire.RabbitMQ.Client\RabbitMQEventSourceLogForwarder.cs (1)
67EventLevel.Warning => LogLevel.Warning,
Aspire.RabbitMQ.Client.Tests (1)
AspireRabbitMQLoggingTests.cs (1)
103Assert.Equal(LogLevel.Warning, logs[1].Level);
Aspire.RabbitMQ.Client.v6.Tests (1)
tests\Aspire.RabbitMQ.Client.Tests\AspireRabbitMQLoggingTests.cs (1)
103Assert.Equal(LogLevel.Warning, logs[1].Level);
dotnet-format (8)
Commands\FormatAnalyzersCommand.cs (1)
34var logger = SetupLogging(minimalLogLevel: formatOptions.LogLevel, minimalErrorLevel: LogLevel.Warning);
Commands\FormatCommandCommon.cs (2)
165formatOptions = formatOptions with { LogLevel = LogLevel.Warning }; 289"m" or "minimal" => LogLevel.Warning,
Commands\FormatStyleCommand.cs (1)
34var logger = SetupLogging(minimalLogLevel: formatOptions.LogLevel, minimalErrorLevel: LogLevel.Warning);
Commands\FormatWhitespaceCommand.cs (1)
65var logger = SetupLogging(minimalLogLevel: formatOptions.LogLevel, minimalErrorLevel: LogLevel.Warning);
Commands\RootFormatCommand.cs (1)
37var logger = SetupLogging(minimalLogLevel: formatOptions.LogLevel, minimalErrorLevel: LogLevel.Warning);
FormatOptions.cs (1)
32LogLevel: LogLevel.Warning,
Logging\SimpleConsoleLogger.cs (1)
24[LogLevel.Warning] = ConsoleColor.Yellow,
dotnet-watch (1)
CommandLine\CommandLineOptions.cs (1)
146? LogLevel.Warning
Microsoft.Arcade.Common (2)
CompactConsoleLoggerFormatter.cs (2)
109LogLevel.Warning => "warn", 129LogLevel.Warning => (ConsoleColor.Yellow, ConsoleColor.Black),
Microsoft.AspNetCore.Antiforgery (12)
_generated\0\LoggerMessage.g.cs (8)
10global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1, "ValidationFailed"), "Antiforgery validation failed with message '{Message}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 19if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 42global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(3, "MissingCookieToken"), "The required antiforgery cookie '{CookieName}' is not present.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 51if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 58global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string?>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(4, "MissingRequestToken"), "The required antiforgery request token was not provided in either form field '{FormFieldName}' or header '{HeaderName}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 67if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 122global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(8, "ResponseCacheHeadersOverridenToNoCache"), "The 'Cache-Control' and 'Pragma' headers have been overridden and set to 'no-cache, no-store' and 'no-cache' respectively to prevent caching of this response. Any response that uses antiforgery should not be cached.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 131if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning))
Internal\AntiforgeryLoggerExtensions.cs (4)
10[LoggerMessage(1, LogLevel.Warning, "Antiforgery validation failed with message '{Message}'.", EventName = "ValidationFailed")] 16[LoggerMessage(3, LogLevel.Warning, "The required antiforgery cookie '{CookieName}' is not present.", EventName = "MissingCookieToken")] 19[LoggerMessage(4, LogLevel.Warning, "The required antiforgery request token was not provided in either form field '{FormFieldName}' " 32[LoggerMessage(8, LogLevel.Warning, "The 'Cache-Control' and 'Pragma' headers have been overridden and set to 'no-cache, no-store' and " +
Microsoft.AspNetCore.Authentication (9)
_generated\0\LoggerMessage.g.cs (6)
138global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(14, "CorrelationPropertyNotFound"), "{CorrelationProperty} state property not found.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 147if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 154global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(15, "CorrelationCookieNotFound"), "'{CorrelationCookieName}' cookie not found.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 163if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 170global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(16, "UnexpectedCorrelationCookieValue"), "The correlation cookie value '{CorrelationCookieName}' did not match the expected value '{CorrelationCookieValue}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 179if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning))
LoggingExtensions.cs (3)
32[LoggerMessage(14, LogLevel.Warning, "{CorrelationProperty} state property not found.", EventName = "CorrelationPropertyNotFound")] 35[LoggerMessage(15, LogLevel.Warning, "'{CorrelationCookieName}' cookie not found.", EventName = "CorrelationCookieNotFound")] 38[LoggerMessage(16, LogLevel.Warning, "The correlation cookie value '{CorrelationCookieName}' did not match the expected value '{CorrelationCookieValue}'.", EventName = "UnexpectedCorrelationCookieValue")]
Microsoft.AspNetCore.Components.Endpoints (40)
_generated\0\LoggerMessage.g.cs (26)
28global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(2, "TempDataCookieLoadFailure"), "The temp data cookie {CookieName} could not be loaded.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 37if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 85global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1, "CannotResolveConverter"), "Cannot resolve converter for type '{Type}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 94if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 822global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1, "SessionPersistFail"), "Persisting of the session element failed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 831if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 838global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(2, "SessionDeserializeFail"), "Deserialization of the element from session failed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 847if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 879global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(2, "TempDataSessionLoadFailure"), "TempData could not be loaded from session.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 888if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 936global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1, "TempDataPersistFail"), "Persisting of the TempData element failed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 945if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 952global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(2, "TempDataDeserializeFail"), "Deserialization of the element from TempData failed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 961if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 977global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, string?>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1, "EventHandlerSkipped"), "Event handler '{AttributeName}' inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Delegates cannot cross render mode boundaries.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 986if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 993global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(2, "ElementReferenceCaptureSkipped"), "An element @ref capture inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Element references cannot cross render mode boundaries.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1002if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 1009global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(3, "ComponentReferenceCaptureSkipped"), "A component @ref capture inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Component references cannot cross render mode boundaries.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1018if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 1025global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(4, "ComponentRenderModeSkipped"), "A @rendermode directive inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. The render mode is already determined by the boundary the RenderFragment is crossing.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1034if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 1041global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(5, "NamedEventSkipped"), "A @formname directive inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Named events are an SSR-only mechanism and cannot cross render mode boundaries.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1050if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 1057global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, string?>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(6, "GenericRenderFragmentSkipped"), "A generic RenderFragment<T> parameter '{AttributeName}' inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Only non-generic RenderFragment is supported across render mode boundaries.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1066if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning))
DependencyInjection\PrerenderingErrorBoundaryLogger.cs (1)
12LogLevel.Warning,
FormMapping\FormDataMapper.cs (1)
45[LoggerMessage(1, LogLevel.Warning, "Cannot resolve converter for type '{Type}'.", EventName = "CannotResolveConverter")]
SessionCascadingValueSupplier.cs (2)
119[LoggerMessage(1, LogLevel.Warning, "Persisting of the session element failed.", EventName = "SessionPersistFail")] 122[LoggerMessage(2, LogLevel.Warning, "Deserialization of the element from session failed.", EventName = "SessionDeserializeFail")]
src\aspnetcore\src\Components\Shared\src\RenderFragmentSerializer.cs (6)
350[LoggerMessage(1, LogLevel.Warning, "Event handler '{AttributeName}' inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Delegates cannot cross render mode boundaries.", EventName = "EventHandlerSkipped")] 353[LoggerMessage(2, LogLevel.Warning, "An element @ref capture inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Element references cannot cross render mode boundaries.", EventName = "ElementReferenceCaptureSkipped")] 356[LoggerMessage(3, LogLevel.Warning, "A component @ref capture inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Component references cannot cross render mode boundaries.", EventName = "ComponentReferenceCaptureSkipped")] 359[LoggerMessage(4, LogLevel.Warning, "A @rendermode directive inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. The render mode is already determined by the boundary the RenderFragment is crossing.", EventName = "ComponentRenderModeSkipped")] 362[LoggerMessage(5, LogLevel.Warning, "A @formname directive inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Named events are an SSR-only mechanism and cannot cross render mode boundaries.", EventName = "NamedEventSkipped")] 365[LoggerMessage(6, LogLevel.Warning, "A generic RenderFragment<T> parameter '{AttributeName}' inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Only non-generic RenderFragment is supported across render mode boundaries.", EventName = "GenericRenderFragmentSkipped")]
TempData\CookieTempDataProvider.cs (1)
160[LoggerMessage(2, LogLevel.Warning, "The temp data cookie {CookieName} could not be loaded.", EventName = "TempDataCookieLoadFailure")]
TempData\SessionStorageTempDataProvider.cs (1)
83[LoggerMessage(2, LogLevel.Warning, "TempData could not be loaded from session.", EventName = "TempDataSessionLoadFailure")]
TempData\TempDataCascadingValueSupplier.cs (2)
97[LoggerMessage(1, LogLevel.Warning, "Persisting of the TempData element failed.", EventName = "TempDataPersistFail")] 100[LoggerMessage(2, LogLevel.Warning, "Deserialization of the element from TempData failed.", EventName = "TempDataDeserializeFail")]
Microsoft.AspNetCore.Components.Server (24)
_generated\0\LoggerMessage.g.cs (16)
12global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, string?>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1, "EventHandlerSkipped"), "Event handler '{AttributeName}' inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Delegates cannot cross render mode boundaries.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 21if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 28global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(2, "ElementReferenceCaptureSkipped"), "An element @ref capture inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Element references cannot cross render mode boundaries.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 37if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 44global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(3, "ComponentReferenceCaptureSkipped"), "A component @ref capture inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Component references cannot cross render mode boundaries.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 53if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 60global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(4, "ComponentRenderModeSkipped"), "A @rendermode directive inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. The render mode is already determined by the boundary the RenderFragment is crossing.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 69if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 76global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(5, "NamedEventSkipped"), "A @formname directive inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Named events are an SSR-only mechanism and cannot cross render mode boundaries.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 85if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 92global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, string?>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(6, "GenericRenderFragmentSkipped"), "A generic RenderFragment<T> parameter '{AttributeName}' inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Only non-generic RenderFragment is supported across render mode boundaries.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 101if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 1530global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(100, "ExceptionCaughtByErrorBoundary"), "Unhandled exception rendering component: {Message}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1539if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 1781global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(100, "ExceptionRenderingComponent"), "Unhandled exception rendering component: {Message}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1790if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning))
Circuits\RemoteErrorBoundaryLogger.cs (1)
47[LoggerMessage(100, LogLevel.Warning, "Unhandled exception rendering component: {Message}", EventName = "ExceptionCaughtByErrorBoundary")]
Circuits\RemoteRenderer.cs (1)
387[LoggerMessage(100, LogLevel.Warning, "Unhandled exception rendering component: {Message}", EventName = "ExceptionRenderingComponent")]
src\aspnetcore\src\Components\Shared\src\RenderFragmentSerializer.cs (6)
350[LoggerMessage(1, LogLevel.Warning, "Event handler '{AttributeName}' inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Delegates cannot cross render mode boundaries.", EventName = "EventHandlerSkipped")] 353[LoggerMessage(2, LogLevel.Warning, "An element @ref capture inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Element references cannot cross render mode boundaries.", EventName = "ElementReferenceCaptureSkipped")] 356[LoggerMessage(3, LogLevel.Warning, "A component @ref capture inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Component references cannot cross render mode boundaries.", EventName = "ComponentReferenceCaptureSkipped")] 359[LoggerMessage(4, LogLevel.Warning, "A @rendermode directive inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. The render mode is already determined by the boundary the RenderFragment is crossing.", EventName = "ComponentRenderModeSkipped")] 362[LoggerMessage(5, LogLevel.Warning, "A @formname directive inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Named events are an SSR-only mechanism and cannot cross render mode boundaries.", EventName = "NamedEventSkipped")] 365[LoggerMessage(6, LogLevel.Warning, "A generic RenderFragment<T> parameter '{AttributeName}' inside a RenderFragment on component '{OwnerComponentType}' was skipped during serialization. Only non-generic RenderFragment is supported across render mode boundaries.", EventName = "GenericRenderFragmentSkipped")]
Microsoft.AspNetCore.Cors (3)
_generated\0\LoggerMessage.g.cs (2)
138global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(9, "FailedToSetCorsHeaders"), "Failed to apply CORS Response headers.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 147if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning))
CORSLoggerExtensions.cs (1)
34[LoggerMessage(9, LogLevel.Warning, "Failed to apply CORS Response headers.", EventName = "FailedToSetCorsHeaders")]
Microsoft.AspNetCore.DataProtection (27)
_generated\0\LoggerMessage.g.cs (18)
10global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Guid, global::System.DateTimeOffset>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1, "UsingFallbackKeyWithExpirationAsDefaultKey"), "Policy resolution states that a new key should be added to the key ring, but automatic generation of keys is disabled. Using fallback key {KeyId:B} with expiration {ExpirationDate:u} as default key.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 19if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 186global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Guid, string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(12, "KeyIsIneligibleToBeTheDefaultKeyBecauseItsMethodFailed"), "Key {KeyId:B} is ineligible to be the default key because its {MethodName} method failed after the maximum number of retries.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 195if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 234global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Xml.Linq.XName>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(15, "UnknownElementWithNameFoundInKeyringSkipping"), "Unknown element with name '{Name}' found in keyring, skipping.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 243if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 266global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Guid>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(17, "TriedToProcessRevocationOfKeyButNoSuchKeyWasFound"), "Tried to process revocation of key {KeyId:B}, but no such key was found in keyring. Skipping.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 275if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 538global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Guid>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(35, "NoXMLEncryptorConfiguredKeyMayBePersistedToStorageInUnencryptedForm"), "No XML encryptor configured. Key {KeyId:B} may be persisted to storage in unencrypted form.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 547if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 698global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(44, "EncryptingUsingNullEncryptor"), "Encrypting using a null encryptor; secret information isn't being protected.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 707if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 794global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(50, "UsingInMemoryRepository"), "Using an in-memory repository. Keys will not be persisted to storage.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 803if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 938global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(59, "UsingEphemeralKeyRepository"), "Neither user profile nor HKLM registry available. Using an ephemeral key repository. Protected data will be unavailable when application exits.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 947if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 1050global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(60, "UsingEphemeralFileSystemLocationInContainer"), "Storing keys in a directory '{path}' that may not be persisted outside of the container. Protected data will be unavailable when container is destroyed. For more information go to https://aka.ms/aspnet/dataprotectionwarning", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1059if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning))
LoggingExtensions.cs (9)
43[LoggerMessage(1, LogLevel.Warning, "Policy resolution states that a new key should be added to the key ring, but automatic generation of keys is disabled. Using fallback key {KeyId:B} with expiration {ExpirationDate:u} as default key.", EventName = "UsingFallbackKeyWithExpirationAsDefaultKey")] 76[LoggerMessage(12, LogLevel.Warning, "Key {KeyId:B} is ineligible to be the default key because its {MethodName} method failed after the maximum number of retries.", EventName = "KeyIsIneligibleToBeTheDefaultKeyBecauseItsMethodFailed")] 85[LoggerMessage(15, LogLevel.Warning, "Unknown element with name '{Name}' found in keyring, skipping.", EventName = "UnknownElementWithNameFoundInKeyringSkipping")] 91[LoggerMessage(17, LogLevel.Warning, "Tried to process revocation of key {KeyId:B}, but no such key was found in keyring. Skipping.", EventName = "TriedToProcessRevocationOfKeyButNoSuchKeyWasFound")] 142[LoggerMessage(35, LogLevel.Warning, "No XML encryptor configured. Key {KeyId:B} may be persisted to storage in unencrypted form.", EventName = "NoXMLEncryptorConfiguredKeyMayBePersistedToStorageInUnencryptedForm")] 172[LoggerMessage(44, LogLevel.Warning, "Encrypting using a null encryptor; secret information isn't being protected.", EventName = "EncryptingUsingNullEncryptor")] 190[LoggerMessage(50, LogLevel.Warning, "Using an in-memory repository. Keys will not be persisted to storage.", EventName = "UsingInMemoryRepository")] 217[LoggerMessage(59, LogLevel.Warning, "Neither user profile nor HKLM registry available. Using an ephemeral key repository. Protected data will be unavailable when application exits.", EventName = "UsingEphemeralKeyRepository")] 238[LoggerMessage(60, LogLevel.Warning, "Storing keys in a directory '{path}' that may not be persisted outside of the container. Protected data will be unavailable when container is destroyed. For more information go to https://aka.ms/aspnet/dataprotectionwarning", EventName = "UsingEphemeralFileSystemLocationInContainer")]
Microsoft.AspNetCore.Diagnostics (6)
_generated\0\LoggerMessage.g.cs (4)
10global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(2, "ResponseStarted"), "The response has already started, the error page middleware will not be executed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 19if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 80global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(2, "ResponseStarted"), "The response has already started, the error handler will not be executed.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 89if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning))
DiagnosticsLoggerExtensions.cs (2)
18[LoggerMessage(2, LogLevel.Warning, "The response has already started, the error handler will not be executed.", EventName = "ResponseStarted")] 27[LoggerMessage(2, LogLevel.Warning, "The response has already started, the error page middleware will not be executed.", EventName = "ResponseStarted")]
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Log.cs (1)
11[LoggerMessage(0, LogLevel.Warning, "Enricher failed: {Enricher}.")]
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (6)
Buffering\PerIncomingRequestLoggingBuilderExtensionsTests.cs (2)
32builder.AddPerIncomingRequestBuffer(LogLevel.Warning); 48Assert.Throws<ArgumentNullException>(() => builder!.AddPerIncomingRequestBuffer(LogLevel.Warning));
Buffering\PerRequestLogBufferingOptionsConfigureOptionsTests.cs (1)
122Assert.Equal(LogLevel.Warning, options.Rules[0].LogLevel);
Logging\AcceptanceTests.cs (3)
154.AddFilter("Microsoft.Hosting", LogLevel.Warning) 155.AddFilter("Microsoft.Extensions.Hosting", LogLevel.Warning) 156.AddFilter("Microsoft.AspNetCore", LogLevel.Warning)
Microsoft.AspNetCore.Hosting (2)
Internal\HostingLoggerExtensions.cs (1)
48if (logger.IsEnabled(LogLevel.Warning))
WebHostBuilder.cs (1)
184if (!assemblyNames.Add(assemblyName) && logger.IsEnabled(LogLevel.Warning))
Microsoft.AspNetCore.Http (6)
_generated\0\LoggerMessage.g.cs (4)
12global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1, "SameSiteNotSecure"), "The cookie '{name}' has set 'SameSite=None' and must also set 'Secure'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 21if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 35global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1, nameof(TimeoutExceptionHandled)), "Timeout exception handled.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 44if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning))
Internal\ResponseCookies.cs (1)
172[LoggerMessage(1, LogLevel.Warning, "The cookie '{name}' has set 'SameSite=None' and must also set 'Secure'.", EventName = "SameSiteNotSecure")]
Timeouts\LoggerExtensions.cs (1)
10[LoggerMessage(1, LogLevel.Warning, "Timeout exception handled.")]
Microsoft.AspNetCore.Http.Connections (3)
_generated\0\LoggerMessage.g.cs (2)
421global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(17, "UserNameChanged"), "The name of the user changed from '{PreviousUserName}' to '{CurrentUserName}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 430if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning))
Internal\HttpConnectionDispatcher.Log.cs (1)
60[LoggerMessage(17, LogLevel.Warning, "The name of the user changed from '{PreviousUserName}' to '{CurrentUserName}'.", EventName = "UserNameChanged")]
Microsoft.AspNetCore.Http.Extensions (3)
_generated\0\LoggerMessage.g.cs (2)
12global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Type>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1, "CannotResolveConverter"), "Cannot resolve converter for type '{Type}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 21if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning))
src\aspnetcore\src\Components\Endpoints\src\FormMapping\FormDataMapper.cs (1)
45[LoggerMessage(1, LogLevel.Warning, "Cannot resolve converter for type '{Type}'.", EventName = "CannotResolveConverter")]
Microsoft.AspNetCore.HttpLogging (3)
_generated\0\LoggerMessage.g.cs (2)
44global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(3, "MaxFilesReached"), "Limit of 10000 files per day has been reached", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 53if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning))
FileLoggerProcessor.cs (1)
347[LoggerMessage(3, LogLevel.Warning, "Limit of 10000 files per day has been reached", EventName = "MaxFilesReached")]
Microsoft.AspNetCore.HttpOverrides (3)
_generated\0\LoggerMessage.g.cs (2)
10global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(0, "NoCertificate"), "Could not read certificate from header.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 19if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning))
LoggingExtensions.cs (1)
8[LoggerMessage(0, LogLevel.Warning, "Could not read certificate from header.", EventName = "NoCertificate")]
Microsoft.AspNetCore.HttpsPolicy (3)
_generated\0\LoggerMessage.g.cs (2)
96global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(3, "FailedToDeterminePort"), "Failed to determine the https port for redirect.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 105if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning))
HttpsLoggingExtensions.cs (1)
16[LoggerMessage(3, LogLevel.Warning, "Failed to determine the https port for redirect.", EventName = "FailedToDeterminePort")]
Microsoft.AspNetCore.Mvc.Core (18)
_generated\0\LoggerMessage.g.cs (11)
139global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1, "FeatureNotFound"), "A request body size limit could not be applied. This server does not support the IHttpRequestBodySizeFeature.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 148if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 155global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(2, "FeatureIsReadOnly"), "A request body size limit could not be applied. The IHttpRequestBodySizeFeature for the server is read-only.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 164if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 237global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1, "CannotApplyRequestFormLimits"), "Unable to apply configured form options since the request form has already been read.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 246if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 294global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1, "FeatureNotFound"), "A request body size limit could not be applied. This server does not support the IHttpRequestBodySizeFeature.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 303if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 310global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(2, "FeatureIsReadOnly"), "A request body size limit could not be applied. The IHttpRequestBodySizeFeature for the server is read-only.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 319if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 1062global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Collections.Generic.List<string?>>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(2, "NoFormatter"), "No output formatter was found for content types '{ContentTypes}' to write the response.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true });
Filters\DisableRequestSizeLimitFilter.cs (2)
62[LoggerMessage(1, LogLevel.Warning, "A request body size limit could not be applied. This server does not support the IHttpRequestBodySizeFeature.", EventName = "FeatureNotFound")] 65[LoggerMessage(2, LogLevel.Warning, "A request body size limit could not be applied. The IHttpRequestBodySizeFeature for the server is read-only.", EventName = "FeatureIsReadOnly")]
Filters\RequestFormLimitsFilter.cs (1)
51[LoggerMessage(1, LogLevel.Warning, "Unable to apply configured form options since the request form has already been read.", EventName = "CannotApplyRequestFormLimits")]
Filters\RequestSizeLimitFilter.cs (2)
64[LoggerMessage(1, LogLevel.Warning, "A request body size limit could not be applied. This server does not support the IHttpRequestBodySizeFeature.", EventName = "FeatureNotFound")] 67[LoggerMessage(2, LogLevel.Warning, "A request body size limit could not be applied. The IHttpRequestBodySizeFeature for the server is read-only.", EventName = "FeatureIsReadOnly")]
Infrastructure\ObjectResultExecutor.cs (2)
172if (logger.IsEnabled(LogLevel.Warning)) 185[LoggerMessage(2, LogLevel.Warning, "No output formatter was found for content types '{ContentTypes}' to write the response.", EventName = "NoFormatter", SkipEnabledCheck = true)]
Microsoft.AspNetCore.Mvc.Formatters.Xml (6)
_generated\0\LoggerMessage.g.cs (4)
25global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(2, "FailedToCreateDataContractSerializer"), "An error occurred while trying to create a DataContractSerializer for the type '{Type}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 34if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 63global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(2, "FailedToCreateXmlSerializer"), "An error occurred while trying to create an XmlSerializer for the type '{Type}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 72if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning))
XmlDataContractSerializerOutputFormatter.cs (1)
320[LoggerMessage(2, LogLevel.Warning, "An error occurred while trying to create a DataContractSerializer for the type '{Type}'.", EventName = "FailedToCreateDataContractSerializer")]
XmlSerializerOutputFormatter.cs (1)
309[LoggerMessage(2, LogLevel.Warning, "An error occurred while trying to create an XmlSerializer for the type '{Type}'.", EventName = "FailedToCreateXmlSerializer")]
Microsoft.AspNetCore.Mvc.RazorPages (3)
_generated\0\LoggerMessage.g.cs (2)
12global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1, "UnsupportedAreaPath"), "The page at '{FilePath}' is located under the area root directory '/Areas/' but does not follow the path format '/Areas/AreaName/Pages/Directory/FileName.cshtml", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 21if (log.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning))
ApplicationModels\PageRouteModelFactory.cs (1)
186[LoggerMessage(1, LogLevel.Warning, "The page at '{FilePath}' is located under the area root directory '/Areas/' but does not follow the path format '/Areas/AreaName/Pages/Directory/FileName.cshtml", EventName = "UnsupportedAreaPath")]
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
_generated\0\LoggerMessage.g.cs (2)
104global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(3, "TempDataCookieLoadFailure"), "The temp data cookie {CookieName} could not be loaded.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 113if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning))
CookieTempDataProvider.cs (1)
147[LoggerMessage(3, LogLevel.Warning, "The temp data cookie {CookieName} could not be loaded.", EventName = "TempDataCookieLoadFailure")]
Microsoft.AspNetCore.OutputCaching (3)
_generated\0\LoggerMessage.g.cs (2)
154global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(10, "ResponseContentLengthMismatchNotCached"), "The response could not be cached for this request because the 'Content-Length' did not match the body length.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 163if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning))
LoggerExtensions.cs (1)
44[LoggerMessage(10, LogLevel.Warning, "The response could not be cached for this request because the 'Content-Length' did not match the body length.",
Microsoft.AspNetCore.ResponseCaching (3)
_generated\0\LoggerMessage.g.cs (2)
442global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(28, "responseContentLengthMismatchNotCached"), "The response could not be cached for this request because the 'Content-Length' did not match the body length.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 451if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning))
LoggerExtensions.cs (1)
114[LoggerMessage(28, LogLevel.Warning, "The response could not be cached for this request because the 'Content-Length' did not match the body length.",
Microsoft.AspNetCore.Routing (6)
_generated\0\LoggerMessage.g.cs (4)
389global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(9, "RequestSizeFeatureNotFound"), "A request body size limit could not be applied. This server does not support the IHttpMaxRequestBodySizeFeature.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 398if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 405global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(10, "RequestSizeFeatureIsReadOnly"), "A request body size limit could not be applied. The IHttpMaxRequestBodySizeFeature for the server is read-only.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 414if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning))
EndpointRoutingMiddleware.cs (2)
369[LoggerMessage(9, LogLevel.Warning, $"A request body size limit could not be applied. This server does not support the {nameof(IHttpMaxRequestBodySizeFeature)}.", EventName = "RequestSizeFeatureNotFound")] 372[LoggerMessage(10, LogLevel.Warning, $"A request body size limit could not be applied. The {nameof(IHttpMaxRequestBodySizeFeature)} for the server is read-only.", EventName = "RequestSizeFeatureIsReadOnly")]
Microsoft.AspNetCore.Server.Kestrel.Core (34)
_generated\0\LoggerMessage.g.cs (22)
10global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1, "DirectoryDoesNotExist"), "Directory '{Directory}' does not exist so changes to the certificate '{Path}' will not be tracked.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 19if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 26global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(2, "UnknownFile"), "Attempted to remove watch from unwatched path '{Path}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 35if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 42global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(3, "UnknownObserver"), "Attempted to remove unknown observer from path '{Path}'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 51if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 539global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(24, "ConnectionRejected"), "Connection id \"{ConnectionId}\" rejected because the maximum number of concurrent connections has been reached.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 548if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 628global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.DateTimeOffset, global::System.TimeSpan, global::System.TimeSpan>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(22, "HeartbeatSlow"), "As of \"{now}\", the heartbeat has been running for \"{heartbeatDuration}\" which is longer than \"{interval}\". This could be caused by thread pool starvation.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 637if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 718global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(41, "InvalidResponseHeaderRemoved"), "One or more of the following response headers have been removed because they are invalid for HTTP/2 and HTTP/3 responses: 'Connection', 'Transfer-Encoding', 'Keep-Alive', 'Upgrade' and 'Proxy-Connection'.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 727if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 734global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Net.EndPoint>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(64, "Http2DisabledWithHttp1AndNoTls"), "HTTP/2 is not enabled for {Endpoint}. The endpoint is configured to use HTTP/1.1 and HTTP/2, but TLS is not enabled. HTTP/2 requires TLS application protocol negotiation. Connections to this endpoint will use HTTP/1.1.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 743if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 750global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Net.EndPoint>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(65, "Http3DisabledWithHttp1AndNoTls"), "HTTP/3 is not enabled for {Endpoint}. HTTP/3 requires TLS. Connections to this endpoint will use HTTP/1.1.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 759if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 1375global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(5, "DeveloperCertificateFirstRun"), "{Message}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1384if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 1423global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(8, "DeveloperCertificateNotTrusted"), "The ASP.NET Core developer certificate is not trusted. For information about trusting the ASP.NET Core developer certificate, see https://aka.ms/aspnet/https-trust-dev-cert", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1432if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 1439global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(9, "DeveloperCertificatePartiallyTrusted"), "The ASP.NET Core developer certificate is only trusted by some clients. For information about trusting the ASP.NET Core developer certificate, see https://aka.ms/aspnet/https-trust-dev-cert", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 1448if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning))
Internal\AddressBinder.cs (1)
219if (context.Logger.IsEnabled(LogLevel.Warning))
Internal\CertificatePathWatcherLoggerExtensions.cs (3)
10[LoggerMessage(1, LogLevel.Warning, "Directory '{Directory}' does not exist so changes to the certificate '{Path}' will not be tracked.", EventName = "DirectoryDoesNotExist")] 13[LoggerMessage(2, LogLevel.Warning, "Attempted to remove watch from unwatched path '{Path}'.", EventName = "UnknownFile")] 16[LoggerMessage(3, LogLevel.Warning, "Attempted to remove unknown observer from path '{Path}'.", EventName = "UnknownObserver")]
Internal\Infrastructure\KestrelTrace.Connections.cs (1)
91[LoggerMessage(24, LogLevel.Warning, @"Connection id ""{ConnectionId}"" rejected because the maximum number of concurrent connections has been reached.", EventName = "ConnectionRejected")]
Internal\Infrastructure\KestrelTrace.General.cs (4)
85[LoggerMessage(22, LogLevel.Warning, @"As of ""{now}"", the heartbeat has been running for ""{heartbeatDuration}"" which is longer than ""{interval}"". This could be caused by thread pool starvation.", EventName = "HeartbeatSlow")] 103[LoggerMessage(41, LogLevel.Warning, "One or more of the following response headers have been removed because they are invalid for HTTP/2 and HTTP/3 responses: 'Connection', 'Transfer-Encoding', 'Keep-Alive', 'Upgrade' and 'Proxy-Connection'.", EventName = "InvalidResponseHeaderRemoved")] 106[LoggerMessage(64, LogLevel.Warning, "HTTP/2 is not enabled for {Endpoint}. The endpoint is configured to use HTTP/1.1 and HTTP/2, but TLS is not enabled. HTTP/2 requires TLS application protocol negotiation. Connections to this endpoint will use HTTP/1.1.", EventName = "Http2DisabledWithHttp1AndNoTls")] 109[LoggerMessage(65, LogLevel.Warning, "HTTP/3 is not enabled for {Endpoint}. HTTP/3 requires TLS. Connections to this endpoint will use HTTP/1.1.", EventName = "Http3DisabledWithHttp1AndNoTls")]
Internal\LoggerExtensions.cs (3)
32[LoggerMessage(5, LogLevel.Warning, "{Message}", EventName = "DeveloperCertificateFirstRun")] 41[LoggerMessage(8, LogLevel.Warning, "The ASP.NET Core developer certificate is not trusted. For information about trusting the ASP.NET Core developer certificate, see https://aka.ms/aspnet/https-trust-dev-cert", EventName = "DeveloperCertificateNotTrusted")] 44[LoggerMessage(9, LogLevel.Warning, "The ASP.NET Core developer certificate is only trusted by some clients. For information about trusting the ASP.NET Core developer certificate, see https://aka.ms/aspnet/https-trust-dev-cert", EventName = "DeveloperCertificatePartiallyTrusted")]
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (6)
_generated\0\LoggerMessage.g.cs (4)
231global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(18, "ConnectionListenerCertificateNotSpecified"), "SslServerAuthenticationOptions must provide a server certificate using ServerCertificate, ServerCertificateContext, or ServerCertificateSelectionCallback.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 240if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 247global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(19, "ConnectionListenerApplicationProtocolsNotSpecified"), "SslServerAuthenticationOptions must provide at least one application protocol using ApplicationProtocols.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 256if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning))
Internal\QuicLog.cs (2)
200[LoggerMessage(18, LogLevel.Warning, $"{nameof(SslServerAuthenticationOptions)} must provide a server certificate using {nameof(SslServerAuthenticationOptions.ServerCertificate)}," + 204[LoggerMessage(19, LogLevel.Warning, $"{nameof(SslServerAuthenticationOptions)} must provide at least one application protocol using {nameof(SslServerAuthenticationOptions.ApplicationProtocols)}.", EventName = "ConnectionListenerApplicationProtocolsNotSpecified")]
Microsoft.AspNetCore.Session (12)
_generated\0\LoggerMessage.g.cs (8)
97global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(7, "ErrorUnprotectingCookie"), "Error unprotecting the session cookie.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 106if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 113global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(8, "SessionLoadingTimeout"), "Loading the session timed out.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 122if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 129global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(9, "SessionCommitTimeout"), "Committing the session timed out.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 138if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 161global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(11, "SessionRefreshTimeout"), "Refreshing the session timed out.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 170if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning))
LoggingExtensions.cs (4)
26[LoggerMessage(7, LogLevel.Warning, "Error unprotecting the session cookie.", EventName = "ErrorUnprotectingCookie")] 29[LoggerMessage(8, LogLevel.Warning, "Loading the session timed out.", EventName = "SessionLoadingTimeout")] 32[LoggerMessage(9, LogLevel.Warning, "Committing the session timed out.", EventName = "SessionCommitTimeout")] 38[LoggerMessage(11, LogLevel.Warning, "Refreshing the session timed out.", EventName = "SessionRefreshTimeout")]
Microsoft.AspNetCore.StaticAssets (12)
_generated\0\LoggerMessage.g.cs (8)
12global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(1, nameof(StaticAssetNotFoundInManifest)), "The static asset '{Path}' was not found in the built time manifest. This file will not be available at runtime if it is not available at compile time during the publish process. If the file was not added to the project during development, and is created at runtime, use the StaticFiles middleware to serve it instead.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 21if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 179global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(9, "RangeNotSatisfiable"), "Range not satisfiable for {Path}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 188if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 243global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(16, "WebRootPathNotFound"), "The WebRootPath was not found: {WebRootPath}. Static files may be unavailable.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 252if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 259global::Microsoft.Extensions.Logging.LoggerMessage.Define(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(17, "StaticWebAssetsNotEnabled"), "The application is not running against the published output and Static Web Assets are not enabled. To configure static web assets in other environments, call 'StaticWebAssetsLoader.UseStaticWebAssets(IWebHostEnvironment, IConfiguration)' to enable them.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 268if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning))
Development\StaticAssetDevelopmentRuntimeHandler.cs (1)
394[LoggerMessage(1, LogLevel.Warning, StaticAssetNotFoundInManifestMessage)]
LoggerExtensions.cs (3)
47[LoggerMessage(9, LogLevel.Warning, "Range not satisfiable for {Path}", EventName = "RangeNotSatisfiable")] 59[LoggerMessage(16, LogLevel.Warning, 63[LoggerMessage(17, LogLevel.Warning,
Microsoft.AspNetCore.StaticFiles (6)
_generated\0\LoggerMessage.g.cs (4)
154global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(9, "RangeNotSatisfiable"), "Range not satisfiable for {Path}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 163if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning)) 218global::Microsoft.Extensions.Logging.LoggerMessage.Define<string>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(16, "WebRootPathNotFound"), "The WebRootPath was not found: {WebRootPath}. Static files may be unavailable.", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 227if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning))
LoggerExtensions.cs (2)
50[LoggerMessage(9, LogLevel.Warning, "Range not satisfiable for {Path}", EventName = "RangeNotSatisfiable")] 62[LoggerMessage(16, LogLevel.Warning,
Microsoft.AspNetCore.Watch.BrowserRefresh (2)
src\sdk\src\Dotnet.Watch\Web.Middleware\BrowserRefreshMiddleware.cs (2)
232LogLevel.Warning, 238LogLevel.Warning,
Microsoft.CodeAnalysis.Workspaces.MSBuild (3)
MSBuild\DiagnosticReporterLoggerProvider.cs (3)
37return logLevel >= LogLevel.Warning; 43if (logLevel < LogLevel.Warning) 46var kind = logLevel == LogLevel.Warning ? WorkspaceDiagnosticKind.Warning : WorkspaceDiagnosticKind.Failure;
Microsoft.DotNet.HotReload.Watch (15)
src\sdk\src\Dotnet.Watch\HotReloadClient\HotReloadClient.cs (1)
104AgentMessageSeverity.Warning => LogLevel.Warning,
UI\ConsoleReporter.cs (1)
50LogLevel.Warning => ConsoleColor.Yellow,
UI\IReporter.cs (13)
113LogLevel.Warning => Emoji.Warning, 197public static readonly MessageDescriptor<None> FixBuildError = Create("Fix the error to continue or press Ctrl+C to exit.", Emoji.Watch, LogLevel.Warning); 202public static readonly MessageDescriptor<None> StaticWebAssetManifestNotFound = Create("Static web asset manifest not found.", Emoji.Warning, LogLevel.Warning); 203public static readonly MessageDescriptor<string> ScopedCssBundleFileNotFound = Create<string>("Scoped CSS bundle file '{BundleFile}' not found.", Emoji.Warning, LogLevel.Warning); 214public static readonly MessageDescriptor<None> WaitingForFileChangeBeforeRestarting = Create("Waiting for a file to change before restarting ...", Emoji.Wait, LogLevel.Warning); 221public static readonly MessageDescriptor<string> ApplyUpdate_Warning = Create<string>("{0}", Emoji.Warning, LogLevel.Warning); 224public static readonly MessageDescriptor<string> ApplyUpdate_ChangingEntryPoint = Create<string>("{0} Press \"Ctrl + R\" to restart.", Emoji.Warning, LogLevel.Warning); 228public static readonly MessageDescriptor<string> BrowserRefreshSuppressedViaEnvironmentVariable_ApplicationWillBeRestarted = Create<string>("Browser refresh is suppressed via environment variable '{0}'. Application will be restarted when updated.", Emoji.Watch, LogLevel.Warning); 229public static readonly MessageDescriptor<None> BrowserRefreshNotSupportedByProjectTargetFramework_ManualRefreshRequired = Create("Browser refresh is not supported by the project target framework. To reload static assets after an update refresh browser manually. For more information see 'https://aka.ms/dotnet/watch/unsupported-tfm'.", Emoji.Watch, LogLevel.Warning); 230public static readonly MessageDescriptor<None> BrowserRefreshNotSupportedByProjectTargetFramework_ApplicationWillBeRestarted = Create("Browser refresh is not supported by the project target framework. Application will be restarted when updated. For more information see 'https://aka.ms/dotnet/watch/unsupported-tfm'.", Emoji.Watch, LogLevel.Warning); 259public static readonly MessageDescriptor<(string, int, string)> FailedToSendSignalToProcess = Create<(string, int, string)>("Failed to send {0} signal to process {1}: {2}", Emoji.Warning, LogLevel.Warning); 267public static readonly MessageDescriptor<Version> ProjectDoesNotSupportHotReload_TargetFramework = Create<Version>("Project does not support Hot Reload: Target Framework is older than {0}. Application will be restarted when updated.", Emoji.Warning, LogLevel.Warning); 268public static readonly MessageDescriptor<(string, string, string, string)> ProjectDoesNotSupportHotReload_Property = Create<(string, string, string, string)>("Project does not support Hot Reload: '{0}' property is '{1}'. Application will be restarted when updated. Set '{2}' project property to '{3}' to enable Hot Reload.", Emoji.Warning, LogLevel.Warning);
Microsoft.Extensions.AI (2)
ChatCompletion\FunctionInvokingChatClient.cs (2)
1968[LoggerMessage(LogLevel.Warning, "Maximum consecutive errors ({MaxErrors}) exceeded. Throwing aggregated exceptions.")] 1971[LoggerMessage(LogLevel.Warning, "Function '{FunctionName}' not found.")]
Microsoft.Extensions.AI.Tests (1)
ChatCompletion\FunctionInvokingChatClientTests.cs (1)
3258Assert.Contains(logs, e => e.Message.Contains("Function 'UnknownFunc' not found") && e.Level == LogLevel.Warning);
Microsoft.Extensions.Caching.Hybrid (1)
Internal\Log.cs (1)
62[LoggerMessage(LogLevel.Warning, "Cache backend data rejected: {reason}.",
Microsoft.Extensions.Diagnostics.HealthChecks (3)
_generated\0\LoggerMessage.g.cs (2)
76global::Microsoft.Extensions.Logging.LoggerMessage.Define<string, global::Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus, double, string?>(global::Microsoft.Extensions.Logging.LogLevel.Warning, new global::Microsoft.Extensions.Logging.EventId(103, "HealthCheckEnd"), "Health check {HealthCheckName} with status {HealthStatus} completed after {ElapsedMilliseconds}ms with message '{HealthCheckDescription}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 85if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Warning))
DefaultHealthCheckService.cs (1)
223[LoggerMessage(EventIds.HealthCheckEndId, LogLevel.Warning, HealthCheckEndText, EventName = EventIds.HealthCheckEndName)]
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
Log.cs (1)
11[LoggerMessage(0, LogLevel.Warning, "Process reporting unhealthy: {Status}. Health check entries are {Entries}")]
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (4)
TelemetryHealthChecksPublisherTests.cs (4)
38LogLevel.Warning, 46LogLevel.Warning, 62LogLevel.Warning, 71LogLevel.Warning,
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
Linux\Log.cs (1)
48[LoggerMessage(5, LogLevel.Warning,
Windows\Log.cs (1)
53[LoggerMessage(7, LogLevel.Warning,
Microsoft.Extensions.Diagnostics.Testing (1)
Logging\FakeLogRecord.cs (1)
137LogLevel.Warning => " warn",
Microsoft.Extensions.Diagnostics.Testing.Tests (2)
Logging\FakeLoggerTests.cs (2)
152Assert.True(logger.IsEnabled(LogLevel.Warning)); 163Assert.True(logger.IsEnabled(LogLevel.Warning));
Microsoft.Extensions.Hosting (1)
HostingHostBuilderExtensions.cs (1)
300logging.AddFilter<EventLogLoggerProvider>(level => level >= LogLevel.Warning);
Microsoft.Extensions.Hosting.Testing (1)
HostTerminatorService.cs (1)
63[LoggerMessage(0, LogLevel.Warning, "FakeHostOptions.TimeToLive set to {TimeToLive} is up, disposing the host.")]
Microsoft.Extensions.Identity.Core (1)
RoleManager.cs (1)
411if (Logger.IsEnabled(LogLevel.Warning))
Microsoft.Extensions.Logging (2)
Logger.cs (1)
245LogLevel.Warning,
src\runtime\src\libraries\Common\src\Extensions\Logging\DebuggerDisplayFormatting.cs (1)
38LogLevel.Warning,
Microsoft.Extensions.Logging.Abstractions (5)
LoggerExtensions.cs (4)
242logger.Log(LogLevel.Warning, eventId, exception, message, args); 259logger.Log(LogLevel.Warning, eventId, message, args); 276logger.Log(LogLevel.Warning, exception, message, args); 292logger.Log(LogLevel.Warning, message, args);
src\runtime\src\libraries\Common\src\Extensions\Logging\DebuggerDisplayFormatting.cs (1)
38LogLevel.Warning,
Microsoft.Extensions.Logging.Console (4)
JsonConsoleFormatter.cs (1)
126LogLevel.Warning => "Warning",
SimpleConsoleFormatter.cs (2)
170LogLevel.Warning => "warn", 194LogLevel.Warning => new ConsoleColors(ConsoleColor.Yellow, ConsoleColor.Black),
SystemdConsoleFormatter.cs (1)
128LogLevel.Warning => "<4>", // warning conditions
Microsoft.Extensions.Logging.EventLog (1)
EventLogLogger.cs (1)
193case LogLevel.Warning:
Microsoft.Extensions.Logging.EventSource (2)
LoggingEventSource.cs (2)
511ret = LogLevel.Warning; 551return LogLevel.Warning;
Microsoft.Extensions.Logging.MSBuild (2)
MSBuildLogger.cs (2)
56LogLevel.Warning or LogLevel.Error or LogLevel.Critical => true, 75case LogLevel.Warning:
Microsoft.Extensions.Logging.TraceSource (1)
TraceSourceLogger.cs (1)
74case LogLevel.Warning: return TraceEventType.Warning;
Microsoft.Extensions.ServiceDiscovery.Dns (5)
Resolver\DnsResolver.Log.cs (5)
21[LoggerMessage(4, LogLevel.Warning, "Query {QueryType} {QueryName} on {Server} attempt {Attempt} timed out.", EventName = "Timeout")] 24[LoggerMessage(5, LogLevel.Warning, "Query {QueryType} {QueryName} on {Server} attempt {Attempt}: no data matching given query type.", EventName = "NoData")] 27[LoggerMessage(6, LogLevel.Warning, "Query {QueryType} {QueryName} on {Server} attempt {Attempt}: server indicates given name does not exist.", EventName = "NameError")] 30[LoggerMessage(7, LogLevel.Warning, "Query {QueryType} {QueryName} on {Server} attempt {Attempt} failed to return a valid DNS response.", EventName = "MalformedResponse")] 33[LoggerMessage(8, LogLevel.Warning, "Query {QueryType} {QueryName} on {Server} attempt {Attempt} failed due to a network error.", EventName = "NetworkError")]
Microsoft.Extensions.Telemetry.Tests (86)
Buffering\GlobalBufferLoggerBuilderExtensionsTests.cs (2)
23builder.AddGlobalBuffer(LogLevel.Warning); 39Assert.Throws<ArgumentNullException>(() => builder!.AddGlobalBuffer(LogLevel.Warning));
Buffering\GlobalLogBufferingConfigureOptionsTests.cs (1)
121Assert.Equal(LogLevel.Warning, options.Rules[0].LogLevel);
Buffering\LogBufferingFilterRuleTests.cs (28)
25new LogBufferingFilterRule(logLevel: LogLevel.Warning), 26new LogBufferingFilterRule(logLevel: LogLevel.Warning, eventId: 2), 27new LogBufferingFilterRule(logLevel: LogLevel.Warning, eventId: 1), 28new LogBufferingFilterRule("Program1.MyLogger", LogLevel.Warning, 1), 29new LogBufferingFilterRule("Program.*MyLogger1", LogLevel.Warning, 1), 30new LogBufferingFilterRule("Program.MyLogger", LogLevel.Warning, 1, attributes: [new("region2", "westus2")]), // inapplicable key 31new LogBufferingFilterRule("Program.MyLogger", LogLevel.Warning, 1, attributes:[new("region", "westus3")]), // inapplicable value 32new LogBufferingFilterRule("Program.MyLogger", LogLevel.Warning, 1, attributes:[new("region", "westus2")]), // the best rule - [11] 33new LogBufferingFilterRule("Program.MyLogger", LogLevel.Warning, 2), 35new LogBufferingFilterRule(logLevel: LogLevel.Warning, eventId: 1), 36new LogBufferingFilterRule("Program", LogLevel.Warning, 1), 37new LogBufferingFilterRule("Program.MyLogger", LogLevel.Warning), 45LogLevel.Warning, 61new LogBufferingFilterRule(logLevel: LogLevel.Warning), 62new LogBufferingFilterRule(logLevel: LogLevel.Warning, eventId: 2), 63new LogBufferingFilterRule(logLevel: LogLevel.Warning, eventId: 1), 64new LogBufferingFilterRule("Program1.MyLogger", LogLevel.Warning, 1), 65new LogBufferingFilterRule("Program.*MyLogger1", LogLevel.Warning, 1), 66new LogBufferingFilterRule("Program.MyLogger", LogLevel.Warning, 1), 67new LogBufferingFilterRule("Program.MyLogger*", LogLevel.Warning, 1), 68new LogBufferingFilterRule("Program.MyLogger", LogLevel.Warning, 1, attributes:[new("region", "westus2")]), // the best rule 69new LogBufferingFilterRule("Program.MyLogger*", LogLevel.Warning, 1, attributes:[new("region", "westus2")]), // same as the best, but last and should be selected 74LogBufferingFilterRule? result = _selector.Select(categorySpecificRules, LogLevel.Warning, 1, [new("region", "westus2")]); 86new LogBufferingFilterRule("Program.MyLogger", LogLevel.Warning, 1, attributes:[new("priority", 1)]), 87new LogBufferingFilterRule("Program.MyLogger", LogLevel.Warning, 1, attributes:[new("priority", 2)]), // the best rule 88new LogBufferingFilterRule("Program.MyLogger", LogLevel.Warning, 1, attributes:[new("priority", 3)]), 89new LogBufferingFilterRule("Program.MyLogger", LogLevel.Warning, 1), 94LogBufferingFilterRule? result = _selector.Select(categorySpecificRules, LogLevel.Warning, 1, [new("priority", "2")]);
Logging\ExtendedLoggerTests.cs (25)
73logger.Log(LogLevel.Warning, new EventId(2, "ID2"), lms, null, (_, _) => "MSG2"); 133options.Rules.Add(new RandomProbabilisticSamplerFilterRule(probability: 0, logLevel: LogLevel.Warning)); 142builder.AddRandomProbabilisticSampler(0, LogLevel.Warning); 154logger.Log(LogLevel.Warning, new EventId(2, "ID2"), lms, null, (_, _) => "MSG2"); 190logger.Log(LogLevel.Warning, new EventId(2, "ID2"), lms, null, (_, _) => "MSG2"); 254logger.Log(LogLevel.Warning, new EventId(2, "ID2"), (LoggerMessageState?)null, null, (_, _) => "MSG2"); 255logger.Log(LogLevel.Warning, new EventId(2, "ID2b"), (LoggerMessageState?)null, null, (_, _) => "MSG2b"); 315logger.Log(LogLevel.Warning, new EventId(0, "ID0"), e, null, (_, _) => "MSG0"); 355Assert.False(filteredLogger.IsEnabled(LogLevel.Warning)); 356Assert.True(unfilteredLogger.IsEnabled(LogLevel.Warning)); 359fake.ControlLevel(LogLevel.Warning, false); 361Assert.False(filteredLogger.IsEnabled(LogLevel.Warning)); 362Assert.False(unfilteredLogger.IsEnabled(LogLevel.Warning)); 384logger.Log(LogLevel.Warning, new EventId(0, "ID0"), "PAYLOAD", null, (_, _) => "MSG0"); 492logger.Log(LogLevel.Warning, new EventId(2, "ID2"), lms, null, (_, _) => "MSG2"); 493logger.Log(LogLevel.Warning, new EventId(2, "ID2b"), lms, ex, (_, _) => "MSG2b"); 842logger.Log(LogLevel.Warning, new EventId(1, "ID1"), state, exception, (_, _) => "MSG"); 890logger.Log(LogLevel.Warning, new EventId(1, "ID1"), list, exception, (_, _) => "MSG"); 901logger.Log(LogLevel.Warning, new EventId(1, "ID1"), enumerable, exception, (_, _) => "MSG"); 905logger.Log(LogLevel.Warning, new EventId(1, "ID1"), "V4", exception, (_, _) => "MSG"); 931builder.AddGlobalBuffer(LogLevel.Warning); 936logger.Log(LogLevel.Warning, new EventId(2, "ID2"), "some state", null, (_, _) => "MSG2"); 959builder.AddGlobalBuffer(LogLevel.Warning); 968logger.Log(LogLevel.Warning, new EventId(2, "ID2"), "some state", null, (_, _) => "MSG2"); 995options.Rules.Add(new LogBufferingFilterRule(logLevel: LogLevel.Warning));
Logging\SerialExtendedLoggerTests.cs (1)
55logger.Log(LogLevel.Warning, new EventId(2, "ID2"), (LoggerMessageState?)null, null, (_, _) => "MSG2");
Sampling\LogSamplingRuleSelectorTests.cs (24)
26new RandomProbabilisticSamplerFilterRule (probability: 0, logLevel: LogLevel.Warning), 27new RandomProbabilisticSamplerFilterRule (probability: 0, logLevel : LogLevel.Warning, eventId : 2), 28new RandomProbabilisticSamplerFilterRule (probability: 0, logLevel : LogLevel.Warning, eventId : 1), 29new RandomProbabilisticSamplerFilterRule (probability: 0, categoryName: "Program1.MyLogger", logLevel: LogLevel.Warning, eventId: 1), 30new RandomProbabilisticSamplerFilterRule (probability : 0, categoryName : "Program.*MyLogger1", logLevel : LogLevel.Warning, eventId : 1), 31new RandomProbabilisticSamplerFilterRule (probability : 0, categoryName : "Program.MyLogger", logLevel : LogLevel.Warning, eventId : 1), // the best rule 32new RandomProbabilisticSamplerFilterRule (probability : 0, categoryName : "Program.MyLogger", logLevel : LogLevel.Warning, eventId : 2), 34new RandomProbabilisticSamplerFilterRule (probability : 0, logLevel : LogLevel.Warning, eventId : 1), 35new RandomProbabilisticSamplerFilterRule (probability : 0, categoryName : "Program", logLevel : LogLevel.Warning, eventId : 1), 36new RandomProbabilisticSamplerFilterRule (probability : 0, categoryName : "Program.MyLogger", logLevel : LogLevel.Warning), 41RandomProbabilisticSamplerFilterRule? actualResult = _ruleSelector.Select(rules, "Program.MyLogger", LogLevel.Warning, 1); 55new RandomProbabilisticSamplerFilterRule(probability: 0, logLevel: LogLevel.Warning), 56new RandomProbabilisticSamplerFilterRule(probability : 0, logLevel : LogLevel.Warning, eventId : 2), 57new RandomProbabilisticSamplerFilterRule(probability : 0, logLevel : LogLevel.Warning, eventId : 1), 58new RandomProbabilisticSamplerFilterRule(probability : 0, categoryName : "Program1.MyLogger", logLevel : LogLevel.Warning, eventId : 1), 59new RandomProbabilisticSamplerFilterRule(probability : 0, categoryName : "Program.*MyLogger1", logLevel : LogLevel.Warning, eventId : 1), 60new RandomProbabilisticSamplerFilterRule(probability : 0, categoryName : "Program.MyLogger", logLevel : LogLevel.Warning, eventId : 1), // the best rule 61new RandomProbabilisticSamplerFilterRule(probability: 0, categoryName: "Program.MyLogger*", logLevel: LogLevel.Warning, eventId: 1), // same as the best, but last, and should be selected 65RandomProbabilisticSamplerFilterRule? actualResult = _ruleSelector.Select(rules, "Program.MyLogger", LogLevel.Warning, 1); 78new RandomProbabilisticSamplerFilterRule(probability: 0, logLevel: LogLevel.Warning), // the best rule 83RandomProbabilisticSamplerFilterRule? actualResult = _ruleSelector.Select(rules, "AnyCategory", LogLevel.Warning, 0); 114new RandomProbabilisticSamplerFilterRule(probability: 0, logLevel: LogLevel.Warning, eventId: 2), // the best rule 119RandomProbabilisticSamplerFilterRule? actualResult = _ruleSelector.Select(rules, "AnyCategory", LogLevel.Warning, 2); 171RandomProbabilisticSamplerFilterRule? actualResult = _ruleSelector.Select(rules, "AnyCategory", LogLevel.Warning, 0);
Sampling\RandomProbabilisticSamplerTests.cs (1)
46LogLevel.Warning, nameof(WhenParametersNotMatch_AlwaysSamples), 0, _dummyState, _dummyException, _dummyFormatter);
Sampling\SamplingLoggerBuilderExtensionsTests.cs (4)
59new RandomProbabilisticSamplerFilterRule (probability : 0.1, logLevel : LogLevel.Warning) 83new(probability : 0.1, logLevel : LogLevel.Warning) 89new(probability : 0, logLevel : LogLevel.Warning) 216new RandomProbabilisticSamplerFilterRule (probability : 0.1, logLevel : LogLevel.Warning)
Microsoft.Gen.Logging.Generated.Tests (37)
LoggerMessageAttributeTests.cs (2)
126AttributeTestExtensions.M7(logger, LogLevel.Warning, "arg_0", "arg_1"); 127AssertWhenDefaultLogMethodCtor(collector, LogLevel.Warning, ("p0", "-----"), ("p1", "arg_1"));
LogMethodTests.cs (13)
69fakeLogger.ControlLevel(LogLevel.Warning, false); 76LevelTestExtensions.M8(logger, LogLevel.Warning); 336MessageTestExtensions.M6(logger, LogLevel.Warning, "p", "q"); 339Assert.Equal(LogLevel.Warning, collector.LatestRecord.Level); 375o.M2(LogLevel.Warning, "param"); 381Assert.Equal(LogLevel.Warning, logRecord.Level); 413Assert.Equal(LogLevel.Warning, collector.LatestRecord.Level); 459LevelTestExtensions.M10(logger, LogLevel.Warning); 462Assert.Equal(LogLevel.Warning, collector.LatestRecord.Level); 484Assert.Equal(LogLevel.Warning, collector.LatestRecord.Level); 572EventNameTestExtensions.M1(LogLevel.Warning, logger, "Eight"); 578Assert.Equal(LogLevel.Warning, logRecord.Level); 590EventNameTestExtensions.M1(LogLevel.Warning, logger, "Eight");
LogPropertiesRedactionTests.cs (2)
106LogNoParamsDefaultCtor(logger, LogLevel.Warning, classToRedact); 110Assert.Equal(LogLevel.Warning, collector.LatestRecord.Level);
TagProviderTests.cs (9)
34Assert.Equal(LogLevel.Warning, latestRecord.Level); 163Assert.Equal(LogLevel.Warning, latestRecord.Level); 208Assert.Equal(LogLevel.Warning, latestRecord.Level); 227Assert.Equal(LogLevel.Warning, latestRecord.Level); 247Assert.Equal(LogLevel.Warning, latestRecord.Level); 331Assert.Equal(LogLevel.Warning, latestRecord.Level); 358Assert.Equal(LogLevel.Warning, latestRecord.Level); 396Assert.Equal(LogLevel.Warning, latestRecord.Level); 421Assert.Equal(LogLevel.Warning, latestRecord.Level);
test\Generators\Microsoft.Gen.Logging\TestClasses\LevelTestExtensions.cs (1)
19[LoggerMessage(3, LogLevel.Warning, "M3")]
test\Generators\Microsoft.Gen.Logging\TestClasses\LogPropertiesOmitParameterNameExtensions.cs (1)
20[LoggerMessage(LogLevel.Warning)]
test\Generators\Microsoft.Gen.Logging\TestClasses\NonStaticTestClass.cs (1)
56[LoggerMessage(7, LogLevel.Warning, "No params here...")]
test\Generators\Microsoft.Gen.Logging\TestClasses\TagNameExtensions.cs (2)
10[LoggerMessage(LogLevel.Warning)] 13[LoggerMessage(LogLevel.Warning, Message = "{foo.bar}")]
test\Generators\Microsoft.Gen.Logging\TestClasses\TagProviderExtensions.cs (3)
14[LoggerMessage(int.MaxValue, LogLevel.Warning, "Custom provided properties for {Param}.")] 29[LoggerMessage(int.MinValue, LogLevel.Warning, "Custom provided properties for both complex params and {StringParam}.")] 36[LoggerMessage(1, LogLevel.Warning, "No params.")]
test\Generators\Microsoft.Gen.Logging\TestClasses\TagProviderWithObjectExtensions.cs (2)
12[LoggerMessage(int.MaxValue, LogLevel.Warning, "Custom provided properties for {Param}.")] 17[LoggerMessage(int.MinValue, LogLevel.Warning, "Custom provided properties for both complex params and {StringParam}.")]
test\Generators\Microsoft.Gen.Logging\TestClasses\TransitiveTestExtensions.cs (1)
43[LoggerMessage(LogLevel.Warning)]
Microsoft.TemplateEngine.Cli (1)
CliConsoleFormatter.cs (1)
44case LogLevel.Warning: