259 references to Warning
Aspire.Confluent.Kafka (1)
MetricsService.cs (1)
80[LoggerMessage(LogLevel.Warning, EventId = 1, Message = "Invalid statistics json payload received: '{json}'")]
Aspire.Dashboard (9)
Components\Pages\StructuredLogs.razor.cs (1)
174new SelectViewModel<LogLevel?> { Id = LogLevel.Warning, Name = "Warning" },
DashboardWebApplication.cs (4)
135builder.Logging.AddFilter("Microsoft.AspNetCore.Cors", LogLevel.Warning); 136builder.Logging.AddFilter("Microsoft.AspNetCore.Hosting.Diagnostics", LogLevel.Warning); 137builder.Logging.AddFilter("Microsoft.AspNetCore.Routing.EndpointMiddleware", LogLevel.Warning); 138builder.Logging.AddFilter("Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware", LogLevel.Warning);
Otlp\Model\OtlpLogEntry.cs (4)
80SeverityNumber.Warn => LogLevel.Warning, 81SeverityNumber.Warn2 => LogLevel.Warning, 82SeverityNumber.Warn3 => LogLevel.Warning, 83SeverityNumber.Warn4 => LogLevel.Warning,
Aspire.Dashboard.Tests (4)
Integration\FrontendBrowserTokenAuthTests.cs (1)
201Assert.Equal(LogLevel.Warning, w.LogLevel);
Integration\StartupTests.cs (3)
347if (w.LogLevel != LogLevel.Warning) 589Assert.Equal(LogLevel.Warning, w.LogLevel); 671Assert.Equal(LogLevel.Warning, w.LogLevel);
Aspire.Hosting (3)
Dcp\DcpHostService.cs (1)
312logLevel = LogLevel.Warning;
DistributedApplicationBuilder.cs (2)
138_innerBuilder.Logging.AddFilter("Microsoft.Hosting.Lifetime", LogLevel.Warning); 149_innerBuilder.Logging.AddFilter("Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer", LogLevel.Warning);
Aspire.Hosting.Tests (1)
Dashboard\DashboardResourceTests.cs (1)
418[InlineData(LogLevel.Warning)]
Aspire.RabbitMQ.Client (1)
RabbitMQEventSourceLogForwarder.cs (1)
67EventLevel.Warning => LogLevel.Warning,
Aspire.RabbitMQ.Client.Tests (1)
AspireRabbitMQLoggingTests.cs (1)
96Assert.Equal(LogLevel.Warning, logs[1].Level);
InMemory.FunctionalTests (2)
Http2\Http2ConnectionTests.cs (1)
5328Assert.Equal(LogLevel.Warning, logMessage.LogLevel);
RequestTests.cs (1)
1894Assert.DoesNotContain(LogMessages, m => m.LogLevel >= LogLevel.Warning);
LocalizationWebsite (1)
Program.cs (1)
21factory.AddFilter("Console", level => level >= LogLevel.Warning);
Microsoft.Arcade.Common (2)
CompactConsoleLoggerFormatter.cs (2)
109LogLevel.Warning => "warn", 129LogLevel.Warning => (ConsoleColor.Yellow, ConsoleColor.Black),
Microsoft.AspNetCore.Antiforgery (4)
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.Antiforgery.Test (7)
DefaultAntiforgeryTest.cs (7)
384.Where(wc => wc.LogLevel == LogLevel.Warning) 402.Where(wc => wc.LogLevel == LogLevel.Warning) 420.Where(wc => wc.LogLevel == LogLevel.Warning) 438.Where(wc => wc.LogLevel == LogLevel.Warning) 1300.Where(wc => wc.LogLevel == LogLevel.Warning) 1339.Where(wc => wc.LogLevel == LogLevel.Warning) 1373.Where(wc => wc.LogLevel == LogLevel.Warning)
Microsoft.AspNetCore.Authentication (3)
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.Authentication.Certificate (2)
LoggingExtensions.cs (2)
14[LoggerMessage(1, LogLevel.Warning, "{CertificateType} certificate rejected, subject was {Subject}.", EventName = "CertificateRejected")] 17[LoggerMessage(2, LogLevel.Warning, "Certificate validation failed, subject was {Subject}. {ChainErrors}", EventName = "CertificateFailedValidation")]
Microsoft.AspNetCore.Authentication.Negotiate (3)
Internal\LdapAdapter.cs (3)
57if (searchResponse.Entries.Count > 1 && logger.IsEnabled(LogLevel.Warning)) 95else if (logger.IsEnabled(LogLevel.Warning)) 111if (searchResponse.Entries.Count > 1 && logger.IsEnabled(LogLevel.Warning))
Microsoft.AspNetCore.Authentication.OpenIdConnect (3)
LoggingExtensions.cs (3)
86[LoggerMessage(3, LogLevel.Warning, "The query string for Logout is not a well-formed URI. Redirect URI: '{RedirectUrl}'.", EventName = "InvalidLogoutQueryStringRedirectUrl")] 113[LoggerMessage(23, LogLevel.Warning, "Failed to un-protect the nonce cookie.", EventName = "UnableToProtectNonceCookie")] 116[LoggerMessage(8, LogLevel.Warning, "The redirect URI is not well-formed. The URI is: '{AuthenticationRequestUrl}'.", EventName = "InvalidAuthenticationRequestUrl")]
Microsoft.AspNetCore.Authentication.WsFederation (1)
LoggingExtensions.cs (1)
17[LoggerMessage(4, LogLevel.Warning, "The sign-out redirect URI '{uri}' is malformed.", EventName = "MalformedRedirectUri")]
Microsoft.AspNetCore.BrowserTesting (1)
PageInformation.cs (1)
102"warning" => LogLevel.Warning,
Microsoft.AspNetCore.Components.Endpoints (2)
DependencyInjection\PrerenderingErrorBoundaryLogger.cs (1)
12LogLevel.Warning,
FormMapping\FormDataMapper.cs (1)
45[LoggerMessage(1, LogLevel.Warning, "Cannot resolve converter for type '{Type}'.", EventName = "CannotResolveConverter")]
Microsoft.AspNetCore.Components.Server (2)
Circuits\RemoteErrorBoundaryLogger.cs (1)
47[LoggerMessage(100, LogLevel.Warning, "Unhandled exception rendering component: {Message}", EventName = "ExceptionCaughtByErrorBoundary")]
Circuits\RemoteRenderer.cs (1)
374[LoggerMessage(100, LogLevel.Warning, "Unhandled exception rendering component: {Message}", EventName = "ExceptionRenderingComponent")]
Microsoft.AspNetCore.Components.WebAssembly (2)
Services\WebAssemblyConsoleLogger.cs (2)
85case LogLevel.Warning: 148case LogLevel.Warning:
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
Builder\WebAssemblyRazorComponentsEndpointConventionBuilderExtensions.cs (2)
84[LoggerMessage(1, LogLevel.Warning, $$"""Mapped static asset endpoints not found. Ensure '{{nameof(StaticAssetsEndpointRouteBuilderExtensions.MapStaticAssets)}}' is called before '{{nameof(AddInteractiveWebAssemblyRenderMode)}}'.""")] 87[LoggerMessage(2, LogLevel.Warning, $$"""Mapped static asset endpoints not found for manifest '{ManifestPath}'. Ensure '{{nameof(StaticAssetsEndpointRouteBuilderExtensions.MapStaticAssets)}}'(staticAssetsManifestPath) is called before '{{nameof(AddInteractiveWebAssemblyRenderMode)}}' and that both manifest paths are the same.""")]
Microsoft.AspNetCore.Cors (1)
CORSLoggerExtensions.cs (1)
34[LoggerMessage(9, LogLevel.Warning, "Failed to apply CORS Response headers.", EventName = "FailedToSetCorsHeaders")]
Microsoft.AspNetCore.DataProtection (9)
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.DataProtection.Tests (1)
Repositories\FileSystemXmlRepositoryTests.cs (1)
283var loggerFactory = new StringLoggerFactory(LogLevel.Warning);
Microsoft.AspNetCore.Diagnostics (2)
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.EntityFrameworkCore (1)
DiagnosticsEntityFrameworkCoreLoggerExtensions.cs (1)
55[LoggerMessage(1, LogLevel.Warning, "The response has already started, the next developer page exception filter 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 (3)
Logging\AcceptanceTests.cs (3)
110.AddFilter("Microsoft.Hosting", LogLevel.Warning) 111.AddFilter("Microsoft.Extensions.Hosting", LogLevel.Warning) 112.AddFilter("Microsoft.AspNetCore", LogLevel.Warning)
Microsoft.AspNetCore.Diagnostics.Tests (1)
ExceptionHandlerTest.cs (1)
654w.LogLevel == LogLevel.Warning
Microsoft.AspNetCore.FunctionalTests (7)
WebApplicationFunctionalTests.cs (6)
42logger.Log(LogLevel.Warning, 0, "Message", null, (s, e) => 85logger.Log(LogLevel.Warning, 0, "Message", null, (s, e) => 130Assert.False(logger.IsEnabled(LogLevel.Warning)); 132logger.Log(LogLevel.Warning, 0, "Message", null, (s, e) => 161logger.Log(LogLevel.Warning, 0, "Message", null, (s, e) => 169Assert.True(logger.IsEnabled(LogLevel.Warning));
WebHostFunctionalTests.cs (1)
134logger.Log(LogLevel.Warning, 0, "Message", null, (s, e) =>
Microsoft.AspNetCore.Grpc.JsonTranscoding (4)
Internal\Binding\JsonTranscodingProviderServiceBinder.cs (2)
272[LoggerMessage(1, LogLevel.Warning, "Unable to find method descriptor for {MethodName} on {ServiceType}.", EventName = "MethodDescriptorNotFound")] 275[LoggerMessage(2, LogLevel.Warning, "Unable to bind {MethodName} on {ServiceName} to gRPC JSON transcoding. Client and bidirectional streaming methods are not supported.", EventName = "StreamingMethodNotSupported")]
Internal\Binding\JsonTranscodingServiceMethodProvider.cs (2)
93[LoggerMessage(1, LogLevel.Warning, "Could not find bind method for {ServiceType}.", EventName = "BindMethodNotFound")] 96[LoggerMessage(2, LogLevel.Warning, "Error getting service descriptor for {ServiceType}.", EventName = "ServiceDescriptorError")]
Microsoft.AspNetCore.Hosting (2)
Internal\HostingLoggerExtensions.cs (1)
48if (logger.IsEnabled(LogLevel.Warning))
WebHostBuilder.cs (1)
182if (!assemblyNames.Add(assemblyName) && logger.IsEnabled(LogLevel.Warning))
Microsoft.AspNetCore.Hosting.TestSites (1)
Program.cs (1)
32factory.AddFilter<ConsoleLoggerProvider>(level => level >= LogLevel.Warning);
Microsoft.AspNetCore.Http (2)
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 (1)
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.Connections.Client (2)
Internal\LoggingHttpMessageHandler.cs (1)
44[LoggerMessage(2, LogLevel.Warning, "Unsuccessful HTTP response {StatusCode} return from {RequestMethod} '{RequestUrl}'.", EventName = "UnsuccessfulHttpResponse")]
Internal\WebSocketsTransport.Log.cs (1)
72[LoggerMessage(20, LogLevel.Warning, $"Configuring request headers using {nameof(HttpConnectionOptions)}.{nameof(HttpConnectionOptions.Headers)} is not supported when using websockets transport " +
Microsoft.AspNetCore.Http.Extensions (1)
src\Components\Endpoints\src\FormMapping\FormDataMapper.cs (1)
45[LoggerMessage(1, LogLevel.Warning, "Cannot resolve converter for type '{Type}'.", EventName = "CannotResolveConverter")]
Microsoft.AspNetCore.HttpLogging (1)
FileLoggerProcessor.cs (1)
347[LoggerMessage(3, LogLevel.Warning, "Limit of 10000 files per day has been reached", EventName = "MaxFilesReached")]
Microsoft.AspNetCore.HttpOverrides (1)
LoggingExtensions.cs (1)
8[LoggerMessage(0, LogLevel.Warning, "Could not read certificate from header.", EventName = "NoCertificate")]
Microsoft.AspNetCore.HttpsPolicy (1)
HttpsLoggingExtensions.cs (1)
16[LoggerMessage(3, LogLevel.Warning, "Failed to determine the https port for redirect.", EventName = "FailedToDeterminePort")]
Microsoft.AspNetCore.HttpsPolicy.Tests (3)
HttpsRedirectionMiddlewareTests.cs (3)
61Assert.Equal(LogLevel.Warning, message.LogLevel); 408Assert.Equal(LogLevel.Warning, message.LogLevel); 452Assert.Equal(LogLevel.Warning, message.LogLevel);
Microsoft.AspNetCore.InternalTesting.Tests (1)
XunitLoggerProviderTest.cs (1)
38.AddXunit(testTestOutputHelper, LogLevel.Warning));
Microsoft.AspNetCore.Mvc.Core (7)
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)
162if (logger.IsEnabled(LogLevel.Warning)) 175[LoggerMessage(2, LogLevel.Warning, "No output formatter was found for content types '{ContentTypes}' to write the response.", EventName = "NoFormatter", SkipEnabledCheck = true)]
Microsoft.AspNetCore.Mvc.Core.Test (1)
Filters\RequestFormLimitsFilterTest.cs (1)
73Assert.Equal(LogLevel.Warning, write.LogLevel);
Microsoft.AspNetCore.Mvc.Formatters.Xml (2)
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.Formatters.Xml.Test (2)
XmlDataContractSerializerOutputFormatterTest.cs (1)
666Assert.Equal(LogLevel.Warning, write.LogLevel);
XmlSerializerOutputFormatterTest.cs (1)
483Assert.Equal(LogLevel.Warning, write.LogLevel);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (3)
PageDirectiveFeature.cs (2)
117[LoggerMessage(104, LogLevel.Warning, "The page directive at '{FilePath}' is malformed. Please fix the following issues: {Diagnostics}", EventName = "MalformedPageDirective", SkipEnabledCheck = true)] 122if (logger.IsEnabled(LogLevel.Warning))
src\Mvc\Mvc.RazorPages\src\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.RazorPages (1)
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 (1)
CookieTempDataProvider.cs (1)
147[LoggerMessage(3, LogLevel.Warning, "The temp data cookie {CookieName} could not be loaded.", EventName = "TempDataCookieLoadFailure")]
Microsoft.AspNetCore.OutputCaching (1)
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.OutputCaching.StackExchangeRedis (1)
RedisOutputCacheStore.Log.cs (1)
12[LoggerMessage(1, LogLevel.Warning, "Transient error occurred executing redis output-cache GC loop.", EventName = "RedisOutputCacheGCTransientError")]
Microsoft.AspNetCore.OutputCaching.Tests (1)
TestUtils.cs (1)
298internal static LoggedMessage ResponseContentLengthMismatchNotCached => new LoggedMessage(10, LogLevel.Warning);
Microsoft.AspNetCore.ResponseCaching (1)
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.ResponseCaching.Tests (1)
TestUtils.cs (1)
302internal static LoggedMessage ResponseContentLengthMismatchNotCached => new LoggedMessage(28, LogLevel.Warning);
Microsoft.AspNetCore.Routing (2)
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.HttpSys (4)
MessagePump.Log.cs (4)
25if (logger.IsEnabled(LogLevel.Warning)) 31[LoggerMessage(LoggerEventIds.ClearedAddresses, LogLevel.Warning, 39if (logger.IsEnabled(LogLevel.Warning)) 45[LoggerMessage(LoggerEventIds.ClearedPrefixes, LogLevel.Warning,
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
LoggingHandler.cs (1)
28await LogResponse(response.IsSuccessStatusCode ? LogLevel.Debug : LogLevel.Warning, response);
Microsoft.AspNetCore.Server.Kestrel.Core (12)
Internal\AddressBinder.cs (1)
197if (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.Core.Tests (3)
AddressBinderTests.cs (1)
194Assert.Equal(LogLevel.Warning, log.LogLevel);
HeartbeatTests.cs (1)
136var warningMessage = TestSink.Writes.Single(message => message.LogLevel == LogLevel.Warning).Message;
KestrelServerTests.cs (1)
152var warning = testLogger.Messages.Single(log => log.LogLevel == LogLevel.Warning);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
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 (4)
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.Session.Tests (2)
SessionTests.cs (2)
781Assert.Equal(LogLevel.Warning, message.LogLevel); 948Assert.Equal(LogLevel.Warning, sessionLogMessages[1].LogLevel);
Microsoft.AspNetCore.SignalR.Client.Core (8)
HubConnection.Log.cs (8)
93[LoggerMessage(9, LogLevel.Warning, "Dropped unsolicited Completion message for invocation '{InvocationId}'.", EventName = "DroppedCompletionMessage")] 96[LoggerMessage(10, LogLevel.Warning, "Dropped unsolicited StreamItem message for invocation '{InvocationId}'.", EventName = "DroppedStreamMessage")] 108[LoggerMessage(14, LogLevel.Warning, "Failed to find handler for '{Target}' method.", EventName = "MissingHandler")] 117[LoggerMessage(17, LogLevel.Warning, "Invocation {InvocationId} received stream item after channel was closed.", EventName = "ReceivedStreamItemAfterClose")] 287[LoggerMessage(77, LogLevel.Warning, "Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt.", EventName = "FirstReconnectRetryDelayNull")] 314[LoggerMessage(85, LogLevel.Warning, "Failed to find a value returning handler for '{Target}' method. Sending error to server.", EventName = "MissingResultHandler")] 317[LoggerMessage(86, LogLevel.Warning, "Result given for '{Target}' method but server is not expecting a result.", EventName = "ResultNotExpected")] 323[LoggerMessage(88, LogLevel.Warning, "Error returning result for invocation '{InvocationId}' for method '{Target}' because the underlying connection is closed.", EventName = "ErrorSendingInvocationResult")]
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
Internal\RedisLog.cs (2)
52[LoggerMessage(11, LogLevel.Warning, "Error processing message for internal server message.", EventName = "InternalMessageFailed")] 64[LoggerMessage(15, LogLevel.Warning, "Error parsing client result with protocol {HubProtocol}.", EventName = "ErrorParsingResult")]
Microsoft.AspNetCore.SpaProxy (1)
SpaProxyLaunchManager.cs (1)
249if (_logger.IsEnabled(LogLevel.Warning))
Microsoft.AspNetCore.StaticAssets (4)
Development\StaticAssetDevelopmentRuntimeHandler.cs (1)
304[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 (2)
LoggerExtensions.cs (2)
50[LoggerMessage(9, LogLevel.Warning, "Range not satisfiable for {Path}", EventName = "RangeNotSatisfiable")] 62[LoggerMessage(16, LogLevel.Warning,
Microsoft.CodeAnalysis.LanguageServer (3)
HostWorkspace\LanguageServerProjectSystem.cs (1)
323_logger.Log(logItem.Kind is DiagnosticLogItemKind.Error ? LogLevel.Error : LogLevel.Warning, $"{logItem.Kind} while loading {logItem.ProjectFilePath}: {logItem.Message}");
Logging\LspLogMessageLogger.cs (1)
85LogLevel.Warning => MessageType.Warning,
Testing\RunTestsHandler.cs (1)
162Microsoft.Extensions.Logging.LogLevel.Warning => TraceLevel.Warning,
Microsoft.CodeAnalysis.Workspaces.MSBuild (3)
MSBuild\DiagnosticReporterLoggerProvider.cs (3)
33new LoggerFilterOptions() { MinLevel = LogLevel.Warning }); 45return logLevel >= LogLevel.Warning; 50var kind = logLevel == LogLevel.Warning ? WorkspaceDiagnosticKind.Warning : WorkspaceDiagnosticKind.Failure;
Microsoft.Extensions.Caching.StackExchangeRedis (1)
RedisCache.Log.cs (1)
13[LoggerMessage(1, LogLevel.Warning, "Could not determine the Redis server version. Falling back to use HMSET command instead of HSET.", EventName = "CouldNotDetermineServerVersion")]
Microsoft.Extensions.Diagnostics.HealthChecks (1)
DefaultHealthCheckService.cs (1)
225[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.Testing (1)
Logging\FakeLogRecord.cs (1)
140LogLevel.Warning => " warn",
Microsoft.Extensions.Diagnostics.Testing.Tests (2)
Logging\FakeLoggerTests.cs (2)
154Assert.True(logger.IsEnabled(LogLevel.Warning)); 165Assert.True(logger.IsEnabled(LogLevel.Warning));
Microsoft.Extensions.Hosting (1)
HostingHostBuilderExtensions.cs (1)
291logging.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\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\libraries\Common\src\Extensions\Logging\DebuggerDisplayFormatting.cs (1)
38LogLevel.Warning,
Microsoft.Extensions.Logging.AzureAppServices (1)
ConfigurationBasedLevelSwitcher.cs (1)
40return LogLevel.Warning;
Microsoft.Extensions.Logging.Console (4)
JsonConsoleFormatter.cs (1)
133LogLevel.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)
493ret = LogLevel.Warning; 533return LogLevel.Warning;
Microsoft.Extensions.Logging.TraceSource (1)
TraceSourceLogger.cs (1)
74case LogLevel.Warning: return TraceEventType.Warning;
Microsoft.Extensions.Telemetry.Tests (14)
Logging\ExtendedLoggerTests.cs (13)
68logger.Log(LogLevel.Warning, new EventId(2, "ID2"), lms, null, (_, _) => "MSG2"); 153logger.Log(LogLevel.Warning, new EventId(2, "ID2"), lms, null, (_, _) => "MSG2"); 217logger.Log(LogLevel.Warning, new EventId(2, "ID2"), (LoggerMessageState?)null, null, (_, _) => "MSG2"); 218logger.Log(LogLevel.Warning, new EventId(2, "ID2b"), (LoggerMessageState?)null, null, (_, _) => "MSG2b"); 278logger.Log(LogLevel.Warning, new EventId(0, "ID0"), e, null, (_, _) => "MSG0"); 318Assert.False(filteredLogger.IsEnabled(LogLevel.Warning)); 319Assert.True(unfilteredLogger.IsEnabled(LogLevel.Warning)); 322fake.ControlLevel(LogLevel.Warning, false); 324Assert.False(filteredLogger.IsEnabled(LogLevel.Warning)); 325Assert.False(unfilteredLogger.IsEnabled(LogLevel.Warning)); 347logger.Log(LogLevel.Warning, new EventId(0, "ID0"), "PAYLOAD", null, (_, _) => "MSG0"); 455logger.Log(LogLevel.Warning, new EventId(2, "ID2"), lms, null, (_, _) => "MSG2"); 456logger.Log(LogLevel.Warning, new EventId(2, "ID2b"), lms, ex, (_, _) => "MSG2b");
Logging\SerialExtendedLoggerTests.cs (1)
55logger.Log(LogLevel.Warning, new EventId(2, "ID2"), (LoggerMessageState?)null, null, (_, _) => "MSG2");
Microsoft.Gen.Logging.Generated.Tests (36)
LoggerMessageAttributeTests.cs (2)
126AttributeTestExtensions.M7(logger, LogLevel.Warning, "arg_0", "arg_1"); 127AssertWhenDefaultLogMethodCtor(collector, LogLevel.Warning, ("p0", "-----"), ("p1", "arg_1"));
LogMethodTests.cs (12)
68fakeLogger.ControlLevel(LogLevel.Warning, false); 75LevelTestExtensions.M8(logger, LogLevel.Warning); 335MessageTestExtensions.M6(logger, LogLevel.Warning, "p", "q"); 338Assert.Equal(LogLevel.Warning, collector.LatestRecord.Level); 374o.M2(LogLevel.Warning, "param"); 380Assert.Equal(LogLevel.Warning, logRecord.Level); 412Assert.Equal(LogLevel.Warning, collector.LatestRecord.Level); 458LevelTestExtensions.M10(logger, LogLevel.Warning); 461Assert.Equal(LogLevel.Warning, collector.LatestRecord.Level); 483Assert.Equal(LogLevel.Warning, collector.LatestRecord.Level); 571EventNameTestExtensions.M1(LogLevel.Warning, logger, "Eight"); 577Assert.Equal(LogLevel.Warning, logRecord.Level);
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)]
ServerComparison.TestSites (1)
Program.cs (1)
23factory.AddFilter("Console", level => level >= LogLevel.Warning);
Sockets.BindTests (1)
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (1)
682Assert.Single(LogMessages, log => log.LogLevel == LogLevel.Warning &&