340 references to Error
Aspire.Dashboard (6)
Components\Pages\StructuredLogs.razor.cs (1)
175new SelectViewModel<LogLevel?> { Id = LogLevel.Error, Name = "Error" },
Otlp\Model\OtlpLogEntry.cs (4)
84SeverityNumber.Error => LogLevel.Error, 85SeverityNumber.Error2 => LogLevel.Error, 86SeverityNumber.Error3 => LogLevel.Error, 87SeverityNumber.Error4 => LogLevel.Error,
Otlp\Storage\TelemetryRepository.cs (1)
352if (logEntry.Severity >= LogLevel.Error)
Aspire.Hosting (6)
ApplicationModel\ResourceLoggerService.cs (1)
551var isErrorMessage = logLevel >= LogLevel.Error;
Dashboard\DashboardLifecycleHook.cs (1)
374var level = logLine.IsErrorMessage ? LogLevel.Error : LogLevel.Information;
Dcp\DcpHostService.cs (1)
308logLevel = LogLevel.Error;
DistributedApplicationBuilder.cs (3)
139_innerBuilder.Logging.AddFilter("Microsoft.AspNetCore.Server.Kestrel", LogLevel.Error); 140_innerBuilder.Logging.AddFilter("Aspire.Hosting.Dashboard", LogLevel.Error); 141_innerBuilder.Logging.AddFilter("Grpc.AspNetCore.Server.ServerCallHandler", LogLevel.Error);
Aspire.Hosting.Azure (1)
Provisioning\Provisioners\BicepProvisioner.cs (1)
199OnErrorData = data => resourceLogger.Log(LogLevel.Error, 0, data, null, (s, e) => s),
Aspire.Hosting.Containers.Tests (1)
src\Aspire.Hosting.Testing\ResourceLoggerForwarderService.cs (1)
71var logLevel = line.IsErrorMessage ? LogLevel.Error : LogLevel.Information;
Aspire.Hosting.Testing (1)
ResourceLoggerForwarderService.cs (1)
71var logLevel = line.IsErrorMessage ? LogLevel.Error : LogLevel.Information;
Aspire.Hosting.Testing.Tests (2)
ResourceLoggerForwarderServiceTests.cs (2)
123log => { Assert.Equal(LogLevel.Error, log.Level); Assert.Equal("5: 2000-12-29T20:59:59.0000000Z Test error message", log.Message); Assert.Equal("TestApp.AppHost.Resources.myresource", log.Category); }, 124log => { Assert.Equal(LogLevel.Error, log.Level); Assert.Equal("6: 2000-12-29T20:59:59.0000000Z Test critical message", log.Message); Assert.Equal("TestApp.AppHost.Resources.myresource", log.Category); });
Aspire.Hosting.Tests (5)
Dashboard\DashboardLifecycleHookTests.cs (3)
137LogLevel = LogLevel.Error, 150LogLevel.Error 158LogLevel.Error
Dashboard\DashboardResourceTests.cs (1)
417[InlineData(LogLevel.Error)]
src\Aspire.Hosting.Testing\ResourceLoggerForwarderService.cs (1)
71var logLevel = line.IsErrorMessage ? LogLevel.Error : LogLevel.Information;
Aspire.Playground.Tests (2)
Infrastructure\DistributedApplicationExtensions.cs (2)
139AssertDoesNotContain(appHostlogs, log => log.Level >= LogLevel.Error && log.Category != "Microsoft.Extensions.Diagnostics.HealthChecks.DefaultHealthCheckService"); 140AssertDoesNotContain(resourceLogs, log => log.Category is { Length: > 0 } category && assertableResourceLogNames.Contains(category) && log.Level >= LogLevel.Error);
Aspire.RabbitMQ.Client (1)
RabbitMQEventSourceLogForwarder.cs (1)
64EventLevel.Error => LogLevel.Error,
Aspire.RabbitMQ.Client.Tests (3)
AspireRabbitMQLoggingTests.cs (3)
68Assert.Contains(logs, l => l.Level == LogLevel.Error && l.Message == "Connection recovery exception."); 129Assert.Equal(LogLevel.Error, logs[0].Level); 175Assert.Equal(LogLevel.Error, logs[0].Level);
BuildValidator (1)
Program.cs (1)
118(_, true) => LogLevel.Error,
HttpStress (1)
Program.cs (1)
413.ConfigureLogging(log => log.AddFilter("Microsoft.AspNetCore", level => aspnetLog ? level >= LogLevel.Error : false))
IIS.Tests (1)
MaxRequestBodySizeTests.cs (1)
361Assert.Equal(LogLevel.Error, appErrorLog.LogLevel);
InMemory.FunctionalTests (20)
Http2\Http2StreamTests.cs (2)
3111Assert.Contains(LogMessages, m => (m.Exception?.Message.Contains("App Faulted") ?? false) && m.LogLevel == LogLevel.Error); 4723Assert.Contains(TestSink.Writes, w => w.EventId.Id == 13 && w.LogLevel == LogLevel.Error
HttpProtocolSelectionTests.cs (1)
94Assert.Single(LogMessages, message => message.LogLevel == LogLevel.Error
HttpsTests.cs (1)
854if (logLevel == LogLevel.Error)
ResponseTests.cs (15)
982var logMessage = Assert.Single(LogMessages, message => message.LogLevel == LogLevel.Error); 1021var logMessage = Assert.Single(LogMessages, message => message.LogLevel == LogLevel.Error); 1061var logMessage = Assert.Single(LogMessages, message => message.LogLevel == LogLevel.Error); 1096var logMessage = Assert.Single(LogMessages, message => message.LogLevel == LogLevel.Error); 1294var error = LogMessages.Where(message => message.LogLevel == LogLevel.Error); 1332Assert.DoesNotContain(LogMessages, message => message.LogLevel == LogLevel.Error); 1368Assert.DoesNotContain(LogMessages, message => message.LogLevel == LogLevel.Error); 1404Assert.DoesNotContain(LogMessages, message => message.LogLevel == LogLevel.Error); 2464Assert.Equal(2, LogMessages.Where(message => message.LogLevel == LogLevel.Error).Count()); 2524Assert.Equal(2, LogMessages.Where(message => message.LogLevel == LogLevel.Error).Count()); 2664Assert.Equal(2, LogMessages.Where(message => message.LogLevel == LogLevel.Error).Count()); 2711Assert.Single(LogMessages, message => message.LogLevel == LogLevel.Error); 2756Assert.Single(LogMessages, message => message.LogLevel == LogLevel.Error); 2789Assert.DoesNotContain(LogMessages, message => message.LogLevel == LogLevel.Error); 4133Assert.Contains(TestSink.Writes, w => w.EventId.Id == 13 && w.LogLevel == LogLevel.Error
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (1)
33public int TotalErrorsLogged => Messages.Count(message => message.LogLevel == LogLevel.Error);
Microsoft.Arcade.Common (2)
CompactConsoleLoggerFormatter.cs (2)
110LogLevel.Error => "fail", 130LogLevel.Error => (ConsoleColor.Black, ConsoleColor.DarkRed),
Microsoft.AspNetCore.Antiforgery (1)
Internal\AntiforgeryLoggerExtensions.cs (1)
29[LoggerMessage(7, LogLevel.Error, "An exception was thrown while deserializing the token.", EventName = "TokenDeserializeException")]
Microsoft.AspNetCore.Authentication.JwtBearer (1)
LoggingExtensions.cs (1)
14[LoggerMessage(3, LogLevel.Error, "Exception occurred while processing message.", EventName = "ProcessingMessageFailed")]
Microsoft.AspNetCore.Authentication.Negotiate (1)
Internal\NegotiateLoggingExtensions.cs (1)
20[LoggerMessage(5, LogLevel.Error, "An exception occurred while processing the authentication request.", EventName = "ExceptionProcessingAuth")]
Microsoft.AspNetCore.Authentication.OpenIdConnect (12)
LoggingExtensions.cs (12)
95[LoggerMessage(12, LogLevel.Error, "Message contains error: '{Error}', error_description: '{ErrorDescription}', error_uri: '{ErrorUri}'.", EventName = "ResponseError")] 98[LoggerMessage(52, LogLevel.Error, "Message contains error: '{Error}', error_description: '{ErrorDescription}', error_uri: '{ErrorUri}', status code '{StatusCode}'.", EventName = "ResponseErrorWithStatusCode")] 101[LoggerMessage(17, LogLevel.Error, "Exception occurred while processing message.", EventName = "ExceptionProcessingMessage")] 119[LoggerMessage(43, LogLevel.Error, "Unable to read the 'id_token', no suitable ISecurityTokenValidator was found for: '{IdToken}'.", EventName = "UnableToReadIdToken")] 122[LoggerMessage(40, LogLevel.Error, "The Validated Security Token must be of type JwtSecurityToken, but instead its type is: '{SecurityTokenType}'", EventName = "InvalidSecurityTokenType")] 125[LoggerMessage(41, LogLevel.Error, "Unable to validate the 'id_token', no suitable ISecurityTokenValidator was found for: '{IdToken}'.", EventName = "UnableToValidateIdToken")] 155[LoggerMessage(47, LogLevel.Error, "The remote signout request was ignored because the 'sid' parameter " + 159[LoggerMessage(48, LogLevel.Error, "The remote signout request was ignored because the 'sid' parameter didn't match " + 169[LoggerMessage(54, LogLevel.Error, "The remote signout request was ignored because the 'iss' parameter " + 173[LoggerMessage(55, LogLevel.Error, "The remote signout request was ignored because the 'iss' parameter didn't match " + 177[LoggerMessage(56, LogLevel.Error, "Unable to validate the 'id_token', no suitable TokenHandler was found for: '{IdToken}'.", EventName = "UnableToValidateIdTokenFromHandler")] 180[LoggerMessage(57, LogLevel.Error, "The Validated Security Token must be of type JsonWebToken, but instead its type is: '{SecurityTokenType}.'", EventName = "InvalidSecurityTokenTypeFromHandler")]
Microsoft.AspNetCore.Authentication.WsFederation (1)
LoggingExtensions.cs (1)
14[LoggerMessage(3, LogLevel.Error, "Exception occurred while processing message.", EventName = "ExceptionProcessingMessage")]
Microsoft.AspNetCore.BrowserTesting (1)
PageInformation.cs (1)
103"error" => LogLevel.Error,
Microsoft.AspNetCore.Components.Server (7)
Circuits\CircuitHost.cs (3)
903[LoggerMessage(110, LogLevel.Error, "Unhandled error invoking circuit handler type {handlerType}.{handlerMethod}: {Message}", EventName = "CircuitHandlerFailed")] 925[LoggerMessage(111, LogLevel.Error, "Unhandled exception in circuit '{CircuitId}'.", EventName = "CircuitUnhandledException")] 1021[LoggerMessage(219, LogLevel.Error, "Location change to '{URI}' in circuit '{CircuitId}' failed.", EventName = "LocationChangeFailedInCircuit")]
Circuits\CircuitRegistry.cs (2)
366[LoggerMessage(100, LogLevel.Error, "Unhandled exception disposing circuit host: {Message}", EventName = "ExceptionDisposingCircuit")] 411[LoggerMessage(114, LogLevel.Error, "Exception handler for {CircuitId} failed.", EventName = "CircuitExceptionHandlerFailed")]
Circuits\RemoteNavigationManager.cs (2)
194[LoggerMessage(4, LogLevel.Error, "Navigation failed when changing the location to {Uri}", EventName = "NavigationFailed")] 197[LoggerMessage(5, LogLevel.Error, "Failed to refresh", EventName = "RefreshFailed")]
Microsoft.AspNetCore.Components.Tests (2)
Lifetime\ComponentStatePersistenceManagerTest.cs (2)
205Assert.Equal(LogLevel.Error, log.LogLevel); 234Assert.Equal(LogLevel.Error, log.LogLevel);
Microsoft.AspNetCore.Components.WebAssembly (3)
Services\WebAssemblyConsoleLogger.cs (2)
88case LogLevel.Error: 150case LogLevel.Error:
Services\WebAssemblyNavigationManager.cs (1)
101[LoggerMessage(2, LogLevel.Error, "Navigation failed when changing the location to {Uri}", EventName = "NavigationFailed")]
Microsoft.AspNetCore.Components.WebView (1)
Services\WebViewNavigationManager.cs (1)
109[LoggerMessage(2, LogLevel.Error, "Navigation failed when changing the location to {Uri}", EventName = "NavigationFailed")]
Microsoft.AspNetCore.DataProtection (13)
LoggingExtensions.cs (13)
103[LoggerMessage(21, LogLevel.Error, "An exception occurred while processing the revocation element '{RevocationElement}'. Cannot continue keyring processing.", EventName = "ExceptionWhileProcessingRevocationElement")] 112[LoggerMessage(24, LogLevel.Error, "An exception occurred while processing the key element '{Element}'.", EventName = "ExceptionOccurredWhileProcessingTheKeyElement")] 121[LoggerMessage(28, LogLevel.Error, "An error occurred while encrypting to X.509 certificate with thumbprint '{Thumbprint}'.", EventName = "ErrorOccurredWhileEncryptingToX509CertificateWithThumbprint")] 127[LoggerMessage(30, LogLevel.Error, "An exception occurred while trying to resolve certificate with thumbprint '{Thumbprint}'.", EventName = "ExceptionOccurredWhileTryingToResolveCertificateWithThumbprint")] 169[LoggerMessage(43, LogLevel.Error, "An exception occurred while trying to decrypt the element.", EventName = "ExceptionOccurredTryingToDecryptElement")] 181[LoggerMessage(47, LogLevel.Error, "An error occurred while refreshing the key ring. Will try again in 2 minutes.", EventName = "ErrorOccurredWhileRefreshingKeyRing")] 184[LoggerMessage(48, LogLevel.Error, "An error occurred while reading the key ring.", EventName = "ErrorOccurredWhileReadingKeyRing")] 187[LoggerMessage(49, LogLevel.Error, "The key ring does not contain a valid default protection key. The data protection system cannot create a new key because auto-generation of keys is disabled. For more information go to http://aka.ms/dataprotectionwarning", EventName = "KeyRingDoesNotContainValidDefaultKey")] 202[LoggerMessage(54, LogLevel.Error, "An error occurred while encrypting to Windows DPAPI.", EventName = "ErrorOccurredWhileEncryptingToWindowsDPAPI")] 208[LoggerMessage(56, LogLevel.Error, "An error occurred while encrypting to Windows DPAPI-NG.", EventName = "ErrorOccurredWhileEncryptingToWindowsDPAPING")] 253[LoggerMessage(72, LogLevel.Error, "The key ring's default data protection key {KeyId:B} has been revoked.", EventName = "KeyRingDefaultKeyIsRevoked")] 262[LoggerMessage(75, LogLevel.Error, "Failed to delete file '{FileName}'. Not attempting further deletions.", EventName = "FailedToDeleteFile")] 268[LoggerMessage(77, LogLevel.Error, "Failed to delete registry key '{RegistryKeyName}', value '{ValueName}'. Not attempting further deletions.", EventName = "FailedToRemoveDataFromRegistryKeyValue")]
Microsoft.AspNetCore.Diagnostics (3)
DiagnosticsLoggerExtensions.cs (3)
11[LoggerMessage(1, LogLevel.Error, "An unhandled exception has occurred while executing the request.", EventName = "UnhandledException")] 21[LoggerMessage(3, LogLevel.Error, "An exception was thrown attempting to execute the error handler.", EventName = "Exception")] 30[LoggerMessage(3, LogLevel.Error, "An exception was thrown attempting to display the error page.", EventName = "DisplayErrorPageException")]
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (5)
DiagnosticsEntityFrameworkCoreLoggerExtensions.cs (5)
10[LoggerMessage(1, LogLevel.Error, "No context type was specified. Ensure the form data from the request includes a 'context' value, specifying the context type name to apply migrations for.", EventName = "NoContextType")] 13[LoggerMessage(3, LogLevel.Error, "The context type '{ContextTypeName}' was not found in services. This usually means the context was not registered in services during startup. You probably want to call AddScoped<>() inside the UseServices(...) call in your application startup code.", EventName = "ContextNotRegistered")] 25[LoggerMessage(7, LogLevel.Error, "An error occurred while applying the migrations for '{ContextTypeName}'. See InnerException for details:", EventName = "MigrationsEndPointException")] 46[LoggerMessage(5, LogLevel.Error, "The context type '{ContextTypeName}' was not found in services. This usually means the context was not registered in services during startup. You probably want to call AddScoped<>() inside the UseServices(...) call in your application startup code. Skipping display of the database error page.", EventName = "ContextNotRegistered")] 49[LoggerMessage(7, LogLevel.Error, "An exception occurred while calculating the database error page content. Skipping display of the database error page.", EventName = "DatabaseErrorPageException")]
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Logging\AcceptanceTests.cs (1)
665LogLevel.Error,
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\GrpcServerLog.cs (1)
14[LoggerMessage(2, LogLevel.Error, "Error when executing service method '{ServiceMethod}'.", EventName = "ErrorExecutingServiceMethod")]
Microsoft.AspNetCore.Http.Connections (3)
Internal\HttpConnectionManager.Log.cs (2)
18[LoggerMessage(3, LogLevel.Error, "Failed disposing connection {TransportConnectionId}.", EventName = "FailedDispose")] 27[LoggerMessage(7, LogLevel.Error, "Scanning connections failed.", EventName = "ScanningConnectionsFailed")]
Internal\Transports\LongPollingServerTransport.cs (1)
129[LoggerMessage(5, LogLevel.Error, "Long Polling transport was terminated due to an error on connection.", EventName = "LongPollingTerminated")]
Microsoft.AspNetCore.Http.Connections.Client (7)
HttpConnection.Log.cs (3)
50[LoggerMessage(10, LogLevel.Error, "Failed to start connection. Error getting negotiation response from '{Url}'.", EventName = "ErrorWithNegotiation")] 53[LoggerMessage(11, LogLevel.Error, "Failed to start connection. Error starting transport '{Transport}'.", EventName = "ErrorStartingTransport")] 97[LoggerMessage(17, LogLevel.Error, "The transport threw an exception while stopping.", EventName = "TransportThrewExceptionOnStop")]
Internal\LongPollingTransport.Log.cs (2)
40[LoggerMessage(9, LogLevel.Error, "Error while polling '{PollUrl}'.", EventName = "ErrorPolling")] 62[LoggerMessage(13, LogLevel.Error, "Error sending DELETE request to '{PollUrl}'.", EventName = "ErrorSendingDeleteRequest")]
Internal\SendUtils.cs (1)
134[LoggerMessage(106, LogLevel.Error, "Error while sending to '{Url}'.", EventName = "ErrorSending")]
Internal\WebSocketsTransport.Log.cs (1)
57[LoggerMessage(15, LogLevel.Error, "Error while sending a message.", EventName = "ErrorSendingMessage")]
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\ActionSelector.cs (1)
252[LoggerMessage(1, LogLevel.Error, "Request matched multiple actions resulting in ambiguity. Matching actions: {AmbiguousActions}", EventName = "AmbiguousActions")]
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Cache\DistributedCacheTagHelperService.cs (1)
204[LoggerMessage(1, LogLevel.Error, "Couldn't deserialize cached value for key {Key}.", EventName = "DistributedFormatterDeserializationException")]
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
PartialViewResultExecutor.cs (1)
203[LoggerMessage(3, LogLevel.Error, "The partial view '{PartialViewName}' was not found. Searched locations: {SearchedViewLocations}", EventName = "PartialViewNotFound")]
ViewResultExecutor.cs (1)
203[LoggerMessage(3, LogLevel.Error, "The view '{ViewName}' was not found. Searched locations: {SearchedViewLocations}", EventName = "ViewNotFound")]
Microsoft.AspNetCore.OutputCaching (2)
LoggerExtensions.cs (2)
52[LoggerMessage(12, LogLevel.Error, "Unable to query output cache.", EventName = "UnableToQueryOutputCache")] 55[LoggerMessage(13, LogLevel.Error, "Unable to write to output-cache.", EventName = "UnableToWriteToOutputCache")]
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (1)
RedisOutputCacheStore.Log.cs (1)
15[LoggerMessage(2, LogLevel.Error, "Fatal error occurred executing redis output-cache GC loop.", EventName = "RedisOutputCacheGCFatalError")]
Microsoft.AspNetCore.Routing.Tests (1)
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (1)
1084context.HttpContext.Items["loggerErrorIsEnabled"] = _logger.IsEnabled(LogLevel.Error);
Microsoft.AspNetCore.Server.HttpSys (21)
AsyncAcceptContext.Log.cs (1)
12[LoggerMessage(LoggerEventIds.AcceptSetResultFailed, LogLevel.Error, "Error attempting to set 'accept' outcome", EventName = "AcceptSetResultFailed")]
HttpSysListener.Log.cs (5)
12[LoggerMessage(LoggerEventIds.ListenerDisposeError, LogLevel.Error, "Dispose", EventName = "ListenerDisposeError")] 18[LoggerMessage(LoggerEventIds.HttpSysListenerCtorError, LogLevel.Error, ".Ctor", EventName = "HttpSysListenerCtorError")] 21[LoggerMessage(LoggerEventIds.ListenerStartError, LogLevel.Error, "Start", EventName = "ListenerStartError")] 27[LoggerMessage(LoggerEventIds.ListenerStopError, LogLevel.Error, "Stop", EventName = "ListenerStopError")] 33[LoggerMessage(LoggerEventIds.RequestValidationFailed, LogLevel.Error, "Error validating request {RequestId}", EventName = "RequestValidationFailed")]
MessagePump.Log.cs (2)
14[LoggerMessage(LoggerEventIds.AcceptError, LogLevel.Error, "Failed to accept a request.", EventName = "AcceptError")] 51[LoggerMessage(LoggerEventIds.RequestListenerProcessError, LogLevel.Error, "ProcessRequestAsync", EventName = "RequestListenerProcessError")]
NativeInterop\DisconnectListener.Log.cs (3)
12[LoggerMessage(LoggerEventIds.DisconnectHandlerError, LogLevel.Error, "CreateDisconnectToken Callback", EventName = "DisconnectHandlerError")] 15[LoggerMessage(LoggerEventIds.DisconnectRegistrationError, LogLevel.Error, "Unable to register for disconnect notifications.", EventName = "DisconnectRegistrationError")] 18[LoggerMessage(LoggerEventIds.CreateDisconnectTokenError, LogLevel.Error, "CreateDisconnectToken", EventName = "CreateDisconnectTokenError")]
NativeInterop\UrlGroup.Log.cs (2)
12[LoggerMessage(LoggerEventIds.CloseUrlGroupError, LogLevel.Error, "HttpCloseUrlGroup; Result: {StatusCode}", EventName = "CloseUrlGroupError")] 18[LoggerMessage(LoggerEventIds.SetUrlPropertyError, LogLevel.Error, "SetUrlGroupProperty", EventName = "SetUrlPropertyError")]
RequestProcessing\ClientCertLoader.Log.cs (2)
12[LoggerMessage(LoggerEventIds.ChannelBindingMissing, LogLevel.Error, "GetChannelBindingFromTls", EventName = "ChannelBindingMissing")] 15[LoggerMessage(LoggerEventIds.ChannelBindingUnsupported, LogLevel.Error, "GetChannelBindingFromTls; Channel binding is not supported.", EventName = "ChannelBindingUnsupported")]
RequestProcessing\RequestContextLog.cs (2)
10[LoggerMessage(LoggerEventIds.RequestError, LogLevel.Error, "ProcessRequestAsync", EventName = "RequestError")] 13[LoggerMessage(LoggerEventIds.RequestProcessError, LogLevel.Error, "ProcessRequestAsync", EventName = "RequestProcessError")]
RequestProcessing\ResponseBody.cs (3)
786[LoggerMessage(LoggerEventIds.FewerBytesThanExpected, LogLevel.Error, "ResponseStream::Dispose; Fewer bytes were written than were specified in the Content-Length.", EventName = "FewerBytesThanExpected")] 789[LoggerMessage(LoggerEventIds.WriteError, LogLevel.Error, "Flush", EventName = "WriteError")] 801[LoggerMessage(LoggerEventIds.FileSendAsyncError, LogLevel.Error, "SendFileAsync", EventName = "FileSendAsyncError")]
RequestProcessing\ResponseStreamAsyncResult.Log.cs (1)
15[LoggerMessage(LoggerEventIds.WriteError, LogLevel.Error, "FlushAsync.IOCompleted", EventName = "WriteError")]
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
RequestTests.cs (1)
397var errorLogs = TestSink.Writes.Where(w => w.LogLevel >= LogLevel.Error).Select(w => w.Exception);
Microsoft.AspNetCore.Server.IIS (2)
Core\IISHttpContext.Log.cs (2)
16[LoggerMessage(2, LogLevel.Error, @"Connection ID ""{ConnectionId}"", Request ID ""{TraceIdentifier}"": An unhandled exception was thrown by the application.", EventName = "ApplicationError")] 19[LoggerMessage(3, LogLevel.Error, @"Unexpected exception in ""{ClassName}.{MethodName}"".", EventName = "UnexpectedError")]
Microsoft.AspNetCore.Server.Kestrel.Core (5)
Internal\Infrastructure\KestrelTrace.General.cs (2)
79[LoggerMessage(13, LogLevel.Error, @"Connection id ""{ConnectionId}"", Request id ""{TraceIdentifier}"": An unhandled exception was thrown by the application.", EventName = "ApplicationError")] 115[LoggerMessage(67, LogLevel.Error, @"Connection id ""{ConnectionId}"", Request id ""{TraceIdentifier}"": automatic draining of the request body failed because the body reader is in an invalid state.", EventName = "RequestBodyDrainBodyReaderInvalidState")]
Internal\LoggerExtensions.cs (3)
29[LoggerMessage(4, LogLevel.Error, BadDeveloperCertificateStateMessage, EventName = "BadDeveloperCertificateState")] 35[LoggerMessage(6, LogLevel.Error, "The certificate file at '{CertificateFilePath}' can not be found, contains malformed data or does not contain a certificate.", EventName = "MissingOrInvalidCertificateFile")] 38[LoggerMessage(7, LogLevel.Error, "The certificate key file at '{CertificateKeyFilePath}' can not be found, contains malformed data or does not contain a PEM encoded key in PKCS8 format.", EventName = "MissingOrInvalidCertificateKeyFile")]
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
ConnectionDispatcherTests.cs (1)
113var errors = TestSink.Writes.Where(e => e.LogLevel >= LogLevel.Error).ToArray();
HeartbeatTests.cs (1)
197Assert.Equal(ex, TestSink.Writes.Single(message => message.LogLevel == LogLevel.Error).Exception);
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (1)
33public int TotalErrorsLogged => Messages.Count(message => message.LogLevel == LogLevel.Error);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (1)
33public int TotalErrorsLogged => Messages.Count(message => message.LogLevel == LogLevel.Error);
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
Internal\NamedPipeLog.cs (1)
33[LoggerMessage(3, LogLevel.Error, "Named pipe listener aborted.", EventName = "ConnectionListenerAborted")]
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (1)
33public int TotalErrorsLogged => Messages.Count(message => message.LogLevel == LogLevel.Error);
Microsoft.AspNetCore.Session (2)
LoggingExtensions.cs (2)
8[LoggerMessage(1, LogLevel.Error, "Error closing the session.", EventName = "ErrorClosingTheSession")] 23[LoggerMessage(6, LogLevel.Error, "Session cache read exception, Key:{sessionKey}", EventName = "SessionCacheReadException", SkipEnabledCheck = true)]
Microsoft.AspNetCore.Session.Tests (4)
SessionTests.cs (4)
684Assert.Equal(LogLevel.Error, message.LogLevel); 733Assert.Equal(LogLevel.Error, message.LogLevel); 887Assert.Equal(LogLevel.Error, sessionMiddlewareLogMessage.LogLevel); 1127Assert.Equal(LogLevel.Error, message.LogLevel);
Microsoft.AspNetCore.SignalR.Client.Core (22)
HubConnection.Log.cs (19)
78[LoggerMessage(7, LogLevel.Error, "Sending Invocation '{InvocationId}' failed.", EventName = "FailedToSendInvocation")] 102[LoggerMessage(12, LogLevel.Error, "Connection is shutting down due to an error.", EventName = "ShutdownWithError")] 132[LoggerMessage(23, LogLevel.Error, "Unsolicited response received for invocation '{InvocationId}'.", EventName = "ReceivedUnexpectedResponse")] 144[LoggerMessage(27, LogLevel.Error, "An exception was thrown in the handler for the Closed event.", EventName = "ErrorDuringClosedEvent")] 153[LoggerMessage(34, LogLevel.Error, "Invoking client side method '{MethodName}' failed.", EventName = "ErrorInvokingClientSideMethod")] 156[LoggerMessage(35, LogLevel.Error, "The underlying connection closed while processing the handshake response. See exception for details.", EventName = "ErrorReceivingHandshakeResponse")] 159[LoggerMessage(36, LogLevel.Error, "Server returned handshake error: {Error}", EventName = "HandshakeServerError")] 165[LoggerMessage(38, LogLevel.Error, "Received close message with an error: {Error}", EventName = "ReceivedCloseWithError")] 180[LoggerMessage(43, LogLevel.Error, "Error starting connection.", EventName = "ErrorStartingConnection")] 209[LoggerMessage(50, LogLevel.Error, "The server connection was terminated with an error.", EventName = "ServerDisconnectedWithError")] 236[LoggerMessage(57, LogLevel.Error, "Failed to bind arguments received in invocation '{InvocationId}' of '{MethodName}'.", EventName = "ArgumentBindingFailure")] 257[LoggerMessage(67, LogLevel.Error, "The HubConnection failed to transition from the {ExpectedState} state to the {NewState} state because it was actually in the {ActualState} state.", EventName = "StateTransitionFailed")] 263[LoggerMessage(69, LogLevel.Error, "HubConnection reconnecting due to an error.", EventName = "ReconnectingWithError")] 278[LoggerMessage(74, LogLevel.Error, "An exception was thrown in the handler for the Reconnecting event.", EventName = "ErrorDuringReconnectingEvent")] 281[LoggerMessage(75, LogLevel.Error, "An exception was thrown in the handler for the Reconnected event.", EventName = "ErrorDuringReconnectedEvent")] 284[LoggerMessage(76, LogLevel.Error, $"An exception was thrown from {nameof(IRetryPolicy)}.{nameof(IRetryPolicy.NextRetryDelay)}().", EventName = "ErrorDuringNextRetryDelay")] 299[LoggerMessage(81, LogLevel.Error, "Received an invalid handshake response.", EventName = "ErrorInvalidHandshakeResponse")] 305[LoggerMessage(82, LogLevel.Error, "The handshake timed out after {HandshakeTimeoutSeconds} seconds.", EventName = "ErrorHandshakeTimedOut")] 308[LoggerMessage(83, LogLevel.Error, "The handshake was canceled by the client.", EventName = "ErrorHandshakeCanceled")]
Internal\InvocationRequest.cs (3)
250[LoggerMessage(5, LogLevel.Error, "Invocation {InvocationId} caused an error trying to write a stream item.", EventName = "ErrorWritingStreamItem")] 253[LoggerMessage(6, LogLevel.Error, "Invocation {InvocationId} received a completion result, but was invoked as a streaming invocation.", EventName = "ReceivedUnexpectedComplete")] 258[LoggerMessage(7, LogLevel.Error, "Invocation {InvocationId} received stream item but was invoked as a non-streamed invocation.", EventName = "StreamItemOnNonStreamInvocation")]
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
HubConnectionTests.cs (2)
1392Assert.Equal(LogLevel.Error, errorLog.Write.LogLevel); 1446Assert.Equal(LogLevel.Error, errorLog.Write.LogLevel);
Microsoft.AspNetCore.SignalR.Core (4)
HubConnectionContext.Log.cs (1)
27[LoggerMessage(6, LogLevel.Error, "Failed writing message. Aborting connection.", EventName = "FailedWritingMessage")]
HubConnectionHandlerLog.cs (1)
10[LoggerMessage(1, LogLevel.Error, "Error when dispatching '{HubMethod}' on hub.", EventName = "ErrorDispatchingHubEvent")]
Internal\DefaultHubDispatcherLog.cs (2)
50[LoggerMessage(8, LogLevel.Error, "Failed to invoke hub method '{HubMethod}'.", EventName = "FailedInvokingHubMethod")] 109[LoggerMessage(25, LogLevel.Error, "Invocation ID {InvocationId}: Failed while sending stream items from hub method {HubMethod}.", EventName = "FailedStreaming")]
Microsoft.AspNetCore.SignalR.StackExchangeRedis (5)
Internal\RedisLog.cs (5)
40[LoggerMessage(7, LogLevel.Error, "Not connected to Redis.", EventName = "NotConnected")] 46[LoggerMessage(9, LogLevel.Error, "Connection to Redis failed.", EventName = "ConnectionFailed")] 55[LoggerMessage(12, LogLevel.Error, "Received a client result for protocol {HubProtocol} which is not supported by this server. This likely means you have different versions of your server deployed.", EventName = "MismatchedServers")] 58[LoggerMessage(13, LogLevel.Error, "Error forwarding client result with ID '{InvocationID}' to server.", EventName = "ErrorForwardingResult")] 61[LoggerMessage(14, LogLevel.Error, "Error connecting to Redis.", EventName = "ErrorConnecting")]
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
src\Shared\SignalR\VerifyNoErrorScope.cs (1)
36var results = _sink.GetLogs().Where(w => w.Write.LogLevel >= LogLevel.Error).ToList();
Microsoft.AspNetCore.SpaProxy (2)
SpaProxyLaunchManager.cs (2)
151if (_logger.IsEnabled(LogLevel.Error)) 158if (_logger.IsEnabled(LogLevel.Error))
Microsoft.CodeAnalysis.LanguageServer (4)
HostWorkspace\ExtensionManager.cs (1)
20=> _logger.Log(LogLevel.Error, exception, $"{provider.GetType()} threw an exception.");
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)
86LogLevel.Error => MessageType.Error,
Testing\RunTestsHandler.cs (1)
163Microsoft.Extensions.Logging.LogLevel.Error or Microsoft.Extensions.Logging.LogLevel.Critical => TraceLevel.Error,
Microsoft.Extensions.Diagnostics.HealthChecks (4)
DefaultHealthCheckService.cs (2)
228[LoggerMessage(EventIds.HealthCheckEndId, LogLevel.Error, HealthCheckEndText, EventName = EventIds.HealthCheckEndName)] 251[LoggerMessage(EventIds.HealthCheckErrorId, LogLevel.Error, "Health check {HealthCheckName} threw an unhandled exception after {ElapsedMilliseconds}ms", EventName = EventIds.HealthCheckErrorName)]
HealthCheckPublisherHostedService.cs (2)
274[LoggerMessage(EventIds.HealthCheckPublisherErrorId, LogLevel.Error, "Health check {HealthCheckPublisher} threw an unhandled exception after {ElapsedMilliseconds}ms", EventName = EventIds.HealthCheckPublisherErrorName)] 280[LoggerMessage(EventIds.HealthCheckPublisherTimeoutId, LogLevel.Error, "Health check {HealthCheckPublisher} was canceled after {ElapsedMilliseconds}ms", EventName = EventIds.HealthCheckPublisherTimeoutName)]
Microsoft.Extensions.Diagnostics.Probes (1)
Log.cs (1)
11[LoggerMessage(LogLevel.Error, "Error updating health status through TCP endpoint")]
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
Log.cs (2)
14[LoggerMessage(1, LogLevel.Error, "Unable to gather utilization statistics.")] 17[LoggerMessage(2, LogLevel.Error, "Publisher `{Publisher}` was unable to publish utilization statistics.")]
Microsoft.Extensions.Diagnostics.Testing (1)
Logging\FakeLogRecord.cs (1)
141LogLevel.Error => "error",
Microsoft.Extensions.Diagnostics.Testing.Tests (10)
Logging\FakeLoggerTests.cs (9)
46Assert.Equal(LogLevel.Error, records[1].Level); 54Assert.Equal(LogLevel.Error, logger.LatestRecord.Level); 71logger.Log<int>(LogLevel.Error, new EventId(0), 42, null, (_, _) => "MESSAGE"); 99logger.Log<object?>(LogLevel.Error, new EventId(0), null, null, (_, _) => "MESSAGE"); 113logger.Log<object?>(LogLevel.Error, new EventId(0), null, null, (_, _) => "MESSAGE"); 129logger.Log(LogLevel.Error, new EventId(0), dt, null, (_, _) => "MESSAGE"); 155Assert.True(logger.IsEnabled(LogLevel.Error)); 166Assert.True(logger.IsEnabled(LogLevel.Error)); 206options.FilteredLevels.Add(LogLevel.Error);
Logging\TestLog.cs (1)
10[LoggerMessage(0, LogLevel.Error, "Hello {name}")]
Microsoft.Extensions.Hosting (2)
Internal\HostingLoggerExtensions.cs (2)
85if (logger.IsEnabled(LogLevel.Error)) 107if (logger.IsEnabled(LogLevel.Error))
Microsoft.Extensions.Http (1)
DefaultHttpClientFactory.cs (1)
337LogLevel.Error,
Microsoft.Extensions.Http.Diagnostics (6)
Logging\Internal\HttpClientLogger.cs (1)
146return LogLevel.Error;
Logging\Internal\Log.cs (5)
45OutgoingRequest(logger, LogLevel.Error, 2, nameof(OutgoingRequestError), record, exception); 48[LoggerMessage(LogLevel.Error, RequestReadErrorMessage)] 56[LoggerMessage(LogLevel.Error, ResponseReadErrorMessage)] 64[LoggerMessage(LogLevel.Error, LoggerContextMissingMessage)] 72[LoggerMessage(LogLevel.Error, EnrichmentErrorMessage)]
Microsoft.Extensions.Http.Diagnostics.Tests (6)
Logging\AcceptanceTests.cs (1)
77Assert.Equal(LogLevel.Error, firstLogRecord.Level);
Logging\HttpClientLoggerTest.cs (5)
937[InlineData(400, LogLevel.Error)] 938[InlineData(499, LogLevel.Error)] 939[InlineData(500, LogLevel.Error)] 940[InlineData(599, LogLevel.Error)] 988Assert.Equal(LogLevel.Error, logRecord.Level);
Microsoft.Extensions.Logging (2)
Logger.cs (1)
244LogLevel.Error,
src\libraries\Common\src\Extensions\Logging\DebuggerDisplayFormatting.cs (1)
37LogLevel.Error,
Microsoft.Extensions.Logging.Abstractions (5)
LoggerExtensions.cs (4)
312logger.Log(LogLevel.Error, eventId, exception, message, args); 329logger.Log(LogLevel.Error, eventId, message, args); 346logger.Log(LogLevel.Error, exception, message, args); 362logger.Log(LogLevel.Error, message, args);
src\libraries\Common\src\Extensions\Logging\DebuggerDisplayFormatting.cs (1)
37LogLevel.Error,
Microsoft.Extensions.Logging.AzureAppServices (1)
ConfigurationBasedLevelSwitcher.cs (1)
38return LogLevel.Error;
Microsoft.Extensions.Logging.Console (4)
JsonConsoleFormatter.cs (1)
134LogLevel.Error => "Error",
SimpleConsoleFormatter.cs (2)
171LogLevel.Error => "fail", 195LogLevel.Error => new ConsoleColors(ConsoleColor.Black, ConsoleColor.DarkRed),
SystemdConsoleFormatter.cs (1)
129LogLevel.Error => "<3>", // error conditions
Microsoft.Extensions.Logging.EventLog (1)
EventLogLogger.cs (1)
196case LogLevel.Error:
Microsoft.Extensions.Logging.EventSource (2)
LoggingEventSource.cs (2)
496ret = LogLevel.Error; 538return LogLevel.Error;
Microsoft.Extensions.Logging.TraceSource (1)
TraceSourceLogger.cs (1)
73case LogLevel.Error: return TraceEventType.Error;
Microsoft.Extensions.ML (3)
ModelLoaders\FileModelLoader.cs (1)
170LogLevel.Error,
ModelLoaders\UriModelLoader.cs (2)
204LogLevel.Error, 209LogLevel.Error,
Microsoft.Extensions.ServiceDiscovery (1)
ServiceEndpointWatcher.Log.cs (1)
39[LoggerMessage(4, LogLevel.Error, "Error resolving endpoints for service '{ServiceName}'.", EventName = "ResolutionFailed")]
Microsoft.Extensions.Telemetry.PerformanceTests (8)
ClassicCodeGen.cs (4)
19global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.String, global::System.String, global::System.String, global::System.String, global::System.String, global::System.String>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(2037881459, nameof(RefTypes)), "Connection id '{connectionId}' received {type} frame for stream ID {streamId} with length {length} and flags {flags} and {other}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 23if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error)) 30global::Microsoft.Extensions.Logging.LoggerMessage.Define<global::System.Int64, global::System.Int64, global::System.Int32, global::System.Guid>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(558429541, nameof(ValueTypes)), "Range [{start}..{end}], options {options}, guid {guid}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 34if (logger.IsEnabled(global::Microsoft.Extensions.Logging.LogLevel.Error))
ExtendedLoggerBench.cs (2)
29LogLevel.Error, 34LogLevel.Error,
ModernCodeGen.cs (2)
26global::Microsoft.Extensions.Logging.LogLevel.Error, 59global::Microsoft.Extensions.Logging.LogLevel.Error,
Microsoft.Extensions.Telemetry.Tests (5)
Logging\ExtendedLoggerTests.cs (4)
213logger.Log<object?>(LogLevel.Error, new EventId(0, "ID0"), null, null, (_, _) => "MSG0"); 214logger.Log<object?>(LogLevel.Error, new EventId(0, "ID0b"), null, null, (_, _) => "MSG0b"); 451logger.Log<object?>(LogLevel.Error, new EventId(0, "ID0"), null, null, (_, _) => "MSG0"); 452logger.Log<object?>(LogLevel.Error, new EventId(0, "ID0b"), null, ex, (_, _) => "MSG0b");
Logging\SerialExtendedLoggerTests.cs (1)
52logger.Log<object?>(LogLevel.Error, new EventId(0, "ID0"), null, null, (_, _) => "MSG0");
Microsoft.Gen.Logging.Generated.Tests (66)
LogMethodTests.cs (17)
69fakeLogger.ControlLevel(LogLevel.Error, false); 76LevelTestExtensions.M8(logger, LogLevel.Error); 230ConstructorVariationsTestExtensions.M1(logger, LogLevel.Error, "One"); 233Assert.Equal(LogLevel.Error, collector.LatestRecord.Level); 246ConstructorVariationsTestExtensions.M3(logger, LogLevel.Error, "Three"); 249Assert.Equal(LogLevel.Error, collector.LatestRecord.Level); 262ConstructorVariationsTestExtensions.M5(logger, LogLevel.Error, "Five"); 265Assert.Equal(LogLevel.Error, collector.LatestRecord.Level); 363Assert.Equal(LogLevel.Error, collector.LatestRecord.Level); 419Assert.Equal(LogLevel.Error, collector.LatestRecord.Level); 465LevelTestExtensions.M11(logger, LogLevel.Error); 467Assert.Equal(LogLevel.Error, collector.LatestRecord.Level); 494instance.NoParamsWithLevel(LogLevel.Error); 497Assert.Equal(LogLevel.Error, collector.LatestRecord.Level); 547ExceptionTestExtensions.M3(exception, logger, LogLevel.Error); 553Assert.Equal(LogLevel.Error, collector.LatestRecord.Level); 592Assert.Equal(LogLevel.Error, collector.LatestRecord.Level);
TagProviderTests.cs (2)
183LogPropertiesOmitParameterNameExtensions.M3(_logger, LogLevel.Error, props); 189Assert.Equal(LogLevel.Error, latestRecord.Level);
test\Generators\Microsoft.Gen.Logging\TestClasses\ArgTestExtensions.cs (10)
11[LoggerMessage(0, LogLevel.Error, "M1")] 14[LoggerMessage(1, LogLevel.Error, "M2 {p1}")] 17[LoggerMessage(2, LogLevel.Error, "M3 {p1} {p2}")] 20[LoggerMessage(3, LogLevel.Error, "M4")] 23[LoggerMessage(4, LogLevel.Error, "M5 {p2}")] 26[LoggerMessage(5, LogLevel.Error, "M6 {p2}")] 29[LoggerMessage(6, LogLevel.Error, "M7 {p1}")] 33[LoggerMessage(7, LogLevel.Error, "M8{p1}{p2}{p3}{p4}{p5}{p6}{p7}")] 36[LoggerMessage(8, LogLevel.Error, "M9 {p1} {p2} {p3} {p4} {p5} {p6} {p7}")] 40[LoggerMessage(9, LogLevel.Error, "M10{p1}")]
test\Generators\Microsoft.Gen.Logging\TestClasses\CollectionTestExtensions.cs (9)
10[LoggerMessage(0, LogLevel.Error, "M0")] 13[LoggerMessage(1, LogLevel.Error, "M1{p0}")] 16[LoggerMessage(2, LogLevel.Error, "M2{p0}{p1}")] 19[LoggerMessage(3, LogLevel.Error, "M3{p0}{p1}{p2}")] 22[LoggerMessage(4, LogLevel.Error, "M4{p0}{p1}{p2}{p3}")] 25[LoggerMessage(5, LogLevel.Error, "M5{p0}{p1}{p2}{p3}{p4}")] 28[LoggerMessage(6, LogLevel.Error, "M6{p0}{p1}{p2}{p3}{p4}{p5}")] 32[LoggerMessage(7, LogLevel.Error, "M7{p0}{p1}{p2}{p3}{p4}{p5}{p6}")] 35[LoggerMessage(8, LogLevel.Error, "M8{p0}{p1}{p2}{p3}{p4}{p5}{p6}{p7}")]
test\Generators\Microsoft.Gen.Logging\TestClasses\DataClassificationTestExtensions.cs (3)
22[LoggerMessage(1, LogLevel.Error, "M0 {p1}")] 25[LoggerMessage(2, LogLevel.Error, "M1 {p1} {p2}")] 28[LoggerMessage(3, LogLevel.Error, "M2")]
test\Generators\Microsoft.Gen.Logging\TestClasses\EnumerableTestExtensions.cs (15)
12[LoggerMessage(0, LogLevel.Error, "M0")] 15[LoggerMessage(1, LogLevel.Error, "M1{p0}")] 18[LoggerMessage(2, LogLevel.Error, "M2{p0}{p1}")] 21[LoggerMessage(3, LogLevel.Error, "M3{p0}{p1}{p2}")] 24[LoggerMessage(4, LogLevel.Error, "M4{p0}{p1}{p2}{p3}")] 27[LoggerMessage(5, LogLevel.Error, "M5{p0}{p1}{p2}{p3}{p4}")] 30[LoggerMessage(6, LogLevel.Error, "M6{p0}{p1}{p2}{p3}{p4}{p5}")] 35[LoggerMessage(7, LogLevel.Error, "M7{p0}{p1}{p2}{p3}{p4}{p5}{p6}")] 38[LoggerMessage(8, LogLevel.Error, "M8{p0}{p1}{p2}{p3}{p4}{p5}{p6}{p7}")] 41[LoggerMessage(9, LogLevel.Error, "M9{p0}{p1}{p2}{p3}{p4}{p5}{p6}{p7}{p8}")] 44[LoggerMessage(10, LogLevel.Error, "M10{p1}{p2}{p3}")] 47[LoggerMessage(11, LogLevel.Error, "M11{p1}")] 50[LoggerMessage(12, LogLevel.Error, "M12{class}")] 53[LoggerMessage(13, LogLevel.Error, "M13{p1}")] 56[LoggerMessage(14, LogLevel.Error, "M14{p1}")]
test\Generators\Microsoft.Gen.Logging\TestClasses\FormattableTestExtensions.cs (3)
11[LoggerMessage(0, LogLevel.Error, "Method1 {p1}")] 14[LoggerMessage(1, LogLevel.Error, "Method2")] 17[LoggerMessage(2, LogLevel.Error, "Method3")]
test\Generators\Microsoft.Gen.Logging\TestClasses\LevelTestExtensions.cs (1)
22[LoggerMessage(4, LogLevel.Error, "M4")]
test\Generators\Microsoft.Gen.Logging\TestClasses\NestedClassTestExtensions.cs (1)
21[LoggerMessage(8, LogLevel.Error, "M8")]
test\Generators\Microsoft.Gen.Logging\TestClasses\TemplateTestExtensions.cs (4)
10[LoggerMessage(0, LogLevel.Error, "M0 {A1}")] 13[LoggerMessage(1, LogLevel.Error, "M1 {A1} {A1}")] 17[LoggerMessage(2, LogLevel.Error, "M2 {A1} {a2} {A3} {a4} {A5} {a6} {A7}")] 21[LoggerMessage(3, LogLevel.Error, "M3 {a2} {A1}")]
test\Generators\Microsoft.Gen.Logging\TestClasses\TestInstances.cs (1)
19[LoggerMessage(0, LogLevel.Error, "M0")]
Sockets.BindTests (1)
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (1)
33public int TotalErrorsLogged => Messages.Count(message => message.LogLevel == LogLevel.Error);
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (1)
33public int TotalErrorsLogged => Messages.Count(message => message.LogLevel == LogLevel.Error);
TestProject.AppHost (1)
src\Aspire.Hosting.Testing\ResourceLoggerForwarderService.cs (1)
71var logLevel = line.IsErrorMessage ? LogLevel.Error : LogLevel.Information;