259 references to Warning
Aspire.Confluent.Kafka (1)
Aspire.Dashboard (9)
Aspire.Dashboard.Tests (4)
Aspire.Hosting (3)
Aspire.Hosting.Tests (1)
Aspire.RabbitMQ.Client (1)
Aspire.RabbitMQ.Client.Tests (1)
InMemory.FunctionalTests (2)
LocalizationWebsite (1)
Microsoft.Arcade.Common (2)
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)
Microsoft.AspNetCore.Authentication (3)
Microsoft.AspNetCore.Authentication.Certificate (2)
Microsoft.AspNetCore.Authentication.Negotiate (3)
Microsoft.AspNetCore.Authentication.OpenIdConnect (3)
Microsoft.AspNetCore.Authentication.WsFederation (1)
Microsoft.AspNetCore.BrowserTesting (1)
Microsoft.AspNetCore.Components.Endpoints (2)
Microsoft.AspNetCore.Components.Server (2)
Microsoft.AspNetCore.Components.WebAssembly (2)
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
Microsoft.AspNetCore.Cors (1)
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)
Microsoft.AspNetCore.Diagnostics (2)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (1)
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (3)
Microsoft.AspNetCore.Diagnostics.Tests (1)
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));
Microsoft.AspNetCore.Grpc.JsonTranscoding (4)
Microsoft.AspNetCore.Hosting (2)
Microsoft.AspNetCore.Hosting.TestSites (1)
Microsoft.AspNetCore.Http (2)
Microsoft.AspNetCore.Http.Connections (1)
Microsoft.AspNetCore.Http.Connections.Client (2)
Microsoft.AspNetCore.Http.Extensions (1)
Microsoft.AspNetCore.HttpLogging (1)
Microsoft.AspNetCore.HttpOverrides (1)
Microsoft.AspNetCore.HttpsPolicy (1)
Microsoft.AspNetCore.HttpsPolicy.Tests (3)
Microsoft.AspNetCore.InternalTesting.Tests (1)
Microsoft.AspNetCore.Mvc.Core (7)
Microsoft.AspNetCore.Mvc.Core.Test (1)
Microsoft.AspNetCore.Mvc.Formatters.Xml (2)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (2)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (3)
Microsoft.AspNetCore.Mvc.RazorPages (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Microsoft.AspNetCore.OutputCaching (1)
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (1)
Microsoft.AspNetCore.OutputCaching.Tests (1)
Microsoft.AspNetCore.ResponseCaching (1)
Microsoft.AspNetCore.ResponseCaching.Tests (1)
Microsoft.AspNetCore.Routing (2)
Microsoft.AspNetCore.Server.HttpSys (4)
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
Microsoft.AspNetCore.Server.Kestrel.Core (12)
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)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (2)
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)
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)
Microsoft.AspNetCore.SpaProxy (1)
Microsoft.AspNetCore.StaticAssets (4)
Microsoft.AspNetCore.StaticFiles (2)
Microsoft.CodeAnalysis.LanguageServer (3)
Microsoft.CodeAnalysis.Workspaces.MSBuild (3)
Microsoft.Extensions.Caching.StackExchangeRedis (1)
Microsoft.Extensions.Diagnostics.HealthChecks (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (4)
Microsoft.Extensions.Diagnostics.Testing (1)
Microsoft.Extensions.Diagnostics.Testing.Tests (2)
Microsoft.Extensions.Hosting (1)
Microsoft.Extensions.Hosting.Testing (1)
Microsoft.Extensions.Identity.Core (1)
Microsoft.Extensions.Logging (2)
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)
Microsoft.Extensions.Logging.Console (4)
Microsoft.Extensions.Logging.EventLog (1)
Microsoft.Extensions.Logging.EventSource (2)
Microsoft.Extensions.Logging.TraceSource (1)
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");
Microsoft.Gen.Logging.Generated.Tests (36)
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);
ServerComparison.TestSites (1)
Sockets.BindTests (1)