465 references to Information
Aspire.Dashboard (9)
Components\Pages\StructuredLogs.razor.cs (1)
173new SelectViewModel<LogLevel?> { Id = LogLevel.Information, Name = "Information" },
DashboardWebApplication.cs (4)
131builder.Logging.AddFilter("Grpc", LogLevel.Information); 132builder.Logging.AddFilter("Aspire.Dashboard.Authentication", LogLevel.Information); 133builder.Logging.AddFilter("Aspire.Dashboard.Otlp", LogLevel.Information); 134builder.Logging.AddFilter("Microsoft", LogLevel.Information);
Otlp\Model\OtlpLogEntry.cs (4)
76SeverityNumber.Info => LogLevel.Information, 77SeverityNumber.Info2 => LogLevel.Information, 78SeverityNumber.Info3 => LogLevel.Information, 79SeverityNumber.Info4 => LogLevel.Information,
Aspire.Hosting (3)
Dashboard\DashboardLifecycleHook.cs (1)
374var level = logLine.IsErrorMessage ? LogLevel.Error : LogLevel.Information;
Dcp\DcpHostService.cs (2)
300var logLevel = LogLevel.Information; 304logLevel = LogLevel.Information;
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 (4)
ResourceLoggerForwarderServiceTests.cs (4)
119log => { Assert.Equal(LogLevel.Information, log.Level); Assert.Equal("1: 2000-12-29T20:59:59.0000000Z Test trace message", log.Message); Assert.Equal("TestApp.AppHost.Resources.myresource", log.Category); }, 120log => { Assert.Equal(LogLevel.Information, log.Level); Assert.Equal("2: 2000-12-29T20:59:59.0000000Z Test debug message", log.Message); Assert.Equal("TestApp.AppHost.Resources.myresource", log.Category); }, 121log => { Assert.Equal(LogLevel.Information, log.Level); Assert.Equal("3: 2000-12-29T20:59:59.0000000Z Test information message", log.Message); Assert.Equal("TestApp.AppHost.Resources.myresource", log.Category); }, 122log => { Assert.Equal(LogLevel.Information, log.Level); Assert.Equal("4: 2000-12-29T20:59:59.0000000Z Test warning message", log.Message); Assert.Equal("TestApp.AppHost.Resources.myresource", log.Category); },
Aspire.Hosting.Tests (2)
Dashboard\DashboardResourceTests.cs (1)
419[InlineData(LogLevel.Information)]
src\Aspire.Hosting.Testing\ResourceLoggerForwarderService.cs (1)
71var logLevel = line.IsErrorMessage ? LogLevel.Error : LogLevel.Information;
Aspire.RabbitMQ.Client (2)
RabbitMQEventSourceLogForwarder.cs (2)
65EventLevel.Informational => LogLevel.Information, 68EventLevel.LogAlways => LogLevel.Information,
Aspire.RabbitMQ.Client.Tests (2)
AspireRabbitMQLoggingTests.cs (2)
67Assert.Contains(logs, l => l.Level == LogLevel.Information && l.Message == "Performing automatic recovery"); 88Assert.Equal(LogLevel.Information, logs[0].Level);
BuildValidator (1)
Program.cs (1)
120_ => LogLevel.Information
CookieSessionSample (1)
Program.cs (1)
22factory.AddFilter("Console", level => level >= LogLevel.Information);
EventHubsConsumer (1)
Consumer.cs (1)
24void LogString(string message) => logger.Log(LogLevel.Information, 0, message, null, (s, _) => s);
http2cat (3)
src\Shared\Http2cat\Http2CatHostedService.cs (3)
68if (_logger.IsEnabled(LogLevel.Information)) 75if (_logger.IsEnabled(LogLevel.Information)) 104if (_logger.IsEnabled(LogLevel.Information))
IIS.FunctionalTests (3)
src\Shared\Http2cat\Http2CatHostedService.cs (3)
68if (_logger.IsEnabled(LogLevel.Information)) 75if (_logger.IsEnabled(LogLevel.Information)) 104if (_logger.IsEnabled(LogLevel.Information))
IIS.LongTests (3)
src\Shared\Http2cat\Http2CatHostedService.cs (3)
68if (_logger.IsEnabled(LogLevel.Information)) 75if (_logger.IsEnabled(LogLevel.Information)) 104if (_logger.IsEnabled(LogLevel.Information))
IIS.NewHandler.FunctionalTests (3)
src\Shared\Http2cat\Http2CatHostedService.cs (3)
68if (_logger.IsEnabled(LogLevel.Information)) 75if (_logger.IsEnabled(LogLevel.Information)) 104if (_logger.IsEnabled(LogLevel.Information))
IIS.NewShim.FunctionalTests (3)
src\Shared\Http2cat\Http2CatHostedService.cs (3)
68if (_logger.IsEnabled(LogLevel.Information)) 75if (_logger.IsEnabled(LogLevel.Information)) 104if (_logger.IsEnabled(LogLevel.Information))
IIS.Tests (1)
StrictTestServerTests.cs (1)
20if (TestSink.Writes.FirstOrDefault(w => w.LogLevel > LogLevel.Information) is WriteContext writeContext)
IISExpress.FunctionalTests (3)
src\Shared\Http2cat\Http2CatHostedService.cs (3)
68if (_logger.IsEnabled(LogLevel.Information)) 75if (_logger.IsEnabled(LogLevel.Information)) 104if (_logger.IsEnabled(LogLevel.Information))
InMemory.FunctionalTests (6)
ChunkedRequestTests.cs (1)
1072Assert.All(TestSink.Writes, w => Assert.InRange(w.LogLevel, LogLevel.Trace, LogLevel.Information));
Http2\Http2ConnectionTests.cs (1)
5326var logMessage = LogMessages.Single(m => m.LogLevel >= LogLevel.Information);
RequestBodyTimeoutTests.cs (2)
143Assert.Contains(TestSink.Writes, w => w.EventId.Id == 32 && w.LogLevel == LogLevel.Information); 144Assert.Contains(TestSink.Writes, w => w.EventId.Id == 33 && w.LogLevel == LogLevel.Information);
RequestTests.cs (1)
2030Assert.All(TestSink.Writes, w => Assert.InRange(w.LogLevel, LogLevel.Trace, LogLevel.Information));
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
59HttpParser = new HttpParser<Http1ParsingHandler>(Log.IsEnabled(LogLevel.Information), disableHttp1LineFeedTerminators);
InProcessWebSite (2)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Program.cs (2)
138factory.AddFilter("Console", level => level >= LogLevel.Information); 196factory.AddFilter("Console", level => level >= LogLevel.Information);
JwtSample (1)
Program.cs (1)
17factory.AddFilter("Console", level => level >= LogLevel.Information);
Microsoft.Arcade.Common (3)
CompactConsoleLoggerFormatter.cs (3)
46_messagePadding = new string(' ', GetLogLevelString(LogLevel.Information).Length + LoglevelPadding.Length + (_options.TimestampFormat?.Length ?? 0)); 108LogLevel.Information => "info", 128LogLevel.Information => (ConsoleColor.DarkGreen, ConsoleColor.Black),
Microsoft.AspNetCore.Authentication (5)
LoggingExtensions.cs (5)
8[LoggerMessage(4, LogLevel.Information, "Error from RemoteAuthentication: {ErrorMessage}.", EventName = "RemoteAuthenticationFailed")] 17[LoggerMessage(7, LogLevel.Information, "{AuthenticationScheme} was not authenticated. Failure message: {FailureMessage}", EventName = "AuthenticationSchemeNotAuthenticatedWithFailure")] 26[LoggerMessage(12, LogLevel.Information, "AuthenticationScheme: {AuthenticationScheme} was challenged.", EventName = "AuthenticationSchemeChallenged")] 29[LoggerMessage(13, LogLevel.Information, "AuthenticationScheme: {AuthenticationScheme} was forbidden.", EventName = "AuthenticationSchemeForbidden")] 41[LoggerMessage(17, LogLevel.Information, "Access was denied by the resource owner or by the remote server.", EventName = "AccessDenied")]
Microsoft.AspNetCore.Authentication.BearerToken (1)
LoggingExtensions.cs (1)
8[LoggerMessage(1, LogLevel.Information, "AuthenticationScheme: {AuthenticationScheme} signed in.", EventName = "AuthenticationSchemeSignedIn")]
Microsoft.AspNetCore.Authentication.Cookies (2)
LoggingExtensions.cs (2)
8[LoggerMessage(10, LogLevel.Information, "AuthenticationScheme: {AuthenticationScheme} signed in.", EventName = "AuthenticationSchemeSignedIn")] 11[LoggerMessage(11, LogLevel.Information, "AuthenticationScheme: {AuthenticationScheme} signed out.", EventName = "AuthenticationSchemeSignedOut")]
Microsoft.AspNetCore.Authentication.JwtBearer (1)
LoggingExtensions.cs (1)
8[LoggerMessage(1, LogLevel.Information, "Failed to validate the token.", EventName = "TokenValidationFailed")]
Microsoft.AspNetCore.Authentication.Negotiate (2)
Internal\NegotiateLoggingExtensions.cs (2)
8[LoggerMessage(1, LogLevel.Information, "Incomplete Negotiate handshake, sending an additional 401 Negotiate challenge.", EventName = "IncompleteNegotiateChallenge")] 29[LoggerMessage(8, LogLevel.Information, "Deferring to the server's implementation of Windows Authentication.", EventName = "Deferring")]
Microsoft.AspNetCore.Authentication.OpenIdConnect (2)
LoggingExtensions.cs (2)
152[LoggerMessage(46, LogLevel.Information, "Remote signout request processed.", EventName = "RemoteSignOut")] 163[LoggerMessage(49, LogLevel.Information, "AuthenticationScheme: {AuthenticationScheme} signed out.", EventName = "AuthenticationSchemeSignedOut")]
Microsoft.AspNetCore.Authentication.WsFederation (1)
LoggingExtensions.cs (1)
26[LoggerMessage(7, LogLevel.Information, "Remote signout request processed.", EventName = "RemoteSignOut")]
Microsoft.AspNetCore.Authorization (1)
LoggingExtensions.cs (1)
14[LoggerMessage(2, LogLevel.Information, "Authorization failed. {Reason}", EventName = "UserAuthorizationFailed")]
Microsoft.AspNetCore.Authorization.Test (2)
DefaultAuthorizationServiceTests.cs (2)
1190Assert.Equal(LogLevel.Information, level); 1223Assert.Equal(LogLevel.Information, level);
Microsoft.AspNetCore.BrowserTesting (2)
PageInformation.cs (2)
100"info" => LogLevel.Information, 104_ => LogLevel.Information
Microsoft.AspNetCore.Components.Endpoints (2)
Builder\OpaqueRedirection.cs (1)
104[LoggerMessage(1, LogLevel.Information, "Opaque URL unprotection failed.", EventName = "OpaqueUrlUnprotectionFailed")]
RazorComponentEndpointInvoker.cs (1)
292[LoggerMessage(5, LogLevel.Information, "Antiforgery token validation failed for the current request.", EventName = nameof(EndpointAntiforgeryValidationFailed))]
Microsoft.AspNetCore.Components.Server (1)
Circuits\RemoteRenderer.cs (1)
386[LoggerMessage(103, LogLevel.Information, "Sending data for batch failed: {Message}", EventName = "SendBatchDataFailed")]
Microsoft.AspNetCore.Components.WebAssembly (3)
Services\WebAssemblyConsoleLogger.cs (3)
16private static readonly string _messagePadding = new(' ', GetLogLevelString(LogLevel.Information).Length + _loglevelPadding.Length); 82case LogLevel.Information: 146case LogLevel.Information:
Microsoft.AspNetCore.Cors (6)
CORSLoggerExtensions.cs (6)
19[LoggerMessage(4, LogLevel.Information, "CORS policy execution successful.", EventName = "PolicySuccess")] 22[LoggerMessage(5, LogLevel.Information, "CORS policy execution failed.", EventName = "PolicyFailure")] 25[LoggerMessage(6, LogLevel.Information, "Request origin {origin} does not have permission to access the resource.", EventName = "OriginNotAllowed")] 28[LoggerMessage(7, LogLevel.Information, "Request method {accessControlRequestMethod} not allowed in CORS policy.", EventName = "AccessControlMethodNotAllowed")] 31[LoggerMessage(8, LogLevel.Information, "Request header '{requestHeader}' not allowed in CORS policy.", EventName = "RequestHeaderNotAllowed")] 37[LoggerMessage(10, LogLevel.Information, "No CORS policy found for the specified request.", EventName = "NoCorsPolicyFound")]
Microsoft.AspNetCore.DataProtection (11)
LoggingExtensions.cs (11)
106[LoggerMessage(22, LogLevel.Information, "Revoking all keys as of {RevocationDate:u} for reason '{Reason}'.", EventName = "RevokingAllKeysAsOfForReason")] 145[LoggerMessage(36, LogLevel.Information, "Revoking key {KeyId:B} at {RevocationDate:u} for reason '{Reason}'.", EventName = "RevokingKeyForReason")] 154[LoggerMessage(39, LogLevel.Information, "Writing data to file '{FileName}'.", EventName = "WritingDataToFile")] 175[LoggerMessage(45, LogLevel.Information, "Using ephemeral data protection provider. Payloads will be undecipherable upon application shutdown.", EventName = "UsingEphemeralDataProtectionProvider")] 214[LoggerMessage(58, LogLevel.Information, "Creating key {KeyId:B} with creation date {CreationDate:u}, activation date {ActivationDate:u}, and expiration date {ExpirationDate:u}.", EventName = "CreatingKey")] 220[LoggerMessage(61, LogLevel.Information, "User profile not available. Using '{Name}' as key repository and Windows DPAPI to encrypt keys at rest.", EventName = "UsingRegistryAsKeyRepositoryWithDPAPI")] 223[LoggerMessage(62, LogLevel.Information, "User profile is available. Using '{FullName}' as key repository; keys will not be encrypted at rest.", EventName = "UsingProfileAsKeyRepository")] 226[LoggerMessage(63, LogLevel.Information, "User profile is available. Using '{FullName}' as key repository and Windows DPAPI to encrypt keys at rest.", EventName = "UsingProfileAsKeyRepositoryWithDPAPI")] 229[LoggerMessage(64, LogLevel.Information, "Azure Web Sites environment detected. Using '{FullName}' as key repository; keys will not be encrypted at rest.", EventName = "UsingAzureAsKeyRepository")] 235[LoggerMessage(66, LogLevel.Information, "Key ring failed to load during application startup.", EventName = "KeyRingFailedToLoadOnStartup")] 244[LoggerMessage(62, LogLevel.Information, "Enabling read-only key access with repository directory '{Path}'", EventName = "UsingReadOnlyKeyConfiguration")]
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (36)
Logging\AcceptanceTests.cs (24)
161LogLevel.Information, 180Assert.Equal(LogLevel.Information, logCollector.LatestRecord.Level); 221LogLevel.Information, 240Assert.Equal(LogLevel.Information, logCollector.LatestRecord.Level); 274LogLevel.Information, 306Assert.All(logRecords, x => Assert.Equal(LogLevel.Information, x.Level)); 345LogLevel.Information, 368Assert.Equal(LogLevel.Information, lastRecord.Level); 399LogLevel.Information, 414Assert.Equal(LogLevel.Information, logCollector.LatestRecord.Level); 437LogLevel.Information, 456Assert.Equal(LogLevel.Information, logCollector.LatestRecord.Level); 471LogLevel.Information, 487Assert.All(logRecords, x => Assert.Equal(LogLevel.Information, x.Level)); 508LogLevel.Information, 525Assert.All(logRecords, x => Assert.Equal(LogLevel.Information, x.Level)); 565LogLevel.Information, 573Assert.Equal(LogLevel.Information, logCollector.LatestRecord.Level); 596LogLevel.Information, 614Assert.Equal(LogLevel.Information, logCollector.LatestRecord.Level); 633LogLevel.Information, 648Assert.Equal(LogLevel.Information, logCollector.LatestRecord.Level); 693LogLevel.Information, 721LogLevel.Information,
Logging\AcceptanceTests.Mvc.cs (10)
60LogLevel.Information, 75Assert.Equal(LogLevel.Information, logRecord.Level); 95LogLevel.Information, 110Assert.Equal(LogLevel.Information, logRecord.Level); 134LogLevel.Information, 156Assert.Equal(LogLevel.Information, logRecord.Level); 185LogLevel.Information, 200Assert.Equal(LogLevel.Information, logRecord.Level); 223LogLevel.Information, 241Assert.Equal(LogLevel.Information, logRecord.Level);
Logging\AcceptanceTests.Routing.cs (2)
61LogLevel.Information, 75Assert.Equal(LogLevel.Information, logRecord.Level);
Microsoft.AspNetCore.FunctionalTests (3)
WebApplicationFunctionalTests.cs (2)
35logger.Log(LogLevel.Information, 0, "Message", null, (s, e) => 78logger.Log(LogLevel.Information, 0, "Message", null, (s, e) =>
WebHostFunctionalTests.cs (1)
127logger.Log(LogLevel.Information, 0, "Message", null, (s, e) =>
Microsoft.AspNetCore.Grpc.JsonTranscoding (4)
Internal\GrpcServerLog.cs (4)
11[LoggerMessage(1, LogLevel.Information, "Request content-type of '{ContentType}' is not supported.", EventName = "UnsupportedRequestContentType")] 17[LoggerMessage(3, LogLevel.Information, "Error status code '{StatusCode}' with detail '{Detail}' raised.", EventName = "RpcConnectionError")] 29[LoggerMessage(7, LogLevel.Information, "Error reading message.", EventName = "ErrorReadingMessage")] 38[LoggerMessage(10, LogLevel.Information, "Error sending message.", EventName = "ErrorSendingMessage")]
Microsoft.AspNetCore.HostFiltering (2)
LoggerExtensions.cs (2)
19[LoggerMessage(3, LogLevel.Information, "{Protocol} request rejected due to missing or empty host header.", EventName = "RequestRejectedMissingHost")] 28[LoggerMessage(6, LogLevel.Information, "The host '{Host}' does not match an allowed host.", EventName = "NoAllowedHostMatched")]
Microsoft.AspNetCore.Hosting (5)
GenericHost\GenericWebHostService.cs (1)
203[LoggerMessage(14, LogLevel.Information,
Internal\HostingApplicationDiagnostics.cs (4)
123if (_logger.IsEnabled(LogLevel.Information)) 259logLevel: LogLevel.Information, 277logLevel: LogLevel.Information, 289logLevel: LogLevel.Information,
Microsoft.AspNetCore.Http.Connections.Client (11)
HttpConnection.Log.cs (2)
21[LoggerMessage(3, LogLevel.Information, "HttpConnection Started.", EventName = "Started")] 30[LoggerMessage(6, LogLevel.Information, "HttpConnection Disposed.", EventName = "Disposed")]
Internal\LongPollingTransport.Log.cs (2)
16[LoggerMessage(1, LogLevel.Information, "Starting transport. Transfer mode: {TransferFormat}.", EventName = "StartTransport")] 25[LoggerMessage(6, LogLevel.Information, "Transport is stopping.", EventName = "TransportStopping")]
Internal\ServerSentEventsTransport.Log.cs (2)
16[LoggerMessage(1, LogLevel.Information, "Starting transport. Transfer mode: {TransferFormat}.", EventName = "StartTransport")] 25[LoggerMessage(6, LogLevel.Information, "Transport is stopping.", EventName = "TransportStopping")]
Internal\WebSocketsTransport.Log.cs (5)
15[LoggerMessage(1, LogLevel.Information, "Starting transport. Transfer mode: {TransferFormat}. Url: '{WebSocketUrl}'.", EventName = "StartTransport")] 24[LoggerMessage(6, LogLevel.Information, "Transport is stopping.", EventName = "TransportStopping")] 45[LoggerMessage(11, LogLevel.Information, "WebSocket closed by the server. Close status {CloseStatus}.", EventName = "WebSocketClosed")] 54[LoggerMessage(14, LogLevel.Information, "Sending a message canceled.", EventName = "SendMessageCanceled")] 60[LoggerMessage(16, LogLevel.Information, "Closing WebSocket.", EventName = "ClosingWebSocket")]
Microsoft.AspNetCore.Http.Results (13)
ChallengeHttpResult.cs (2)
97if (logger.IsEnabled(LogLevel.Information)) 103[LoggerMessage(1, LogLevel.Information, "Executing ChallengeResult with authentication schemes ({Schemes}).", EventName = "ChallengeResultExecuting", SkipEnabledCheck = true)]
ForbidHttpResult.cs (2)
108if (logger.IsEnabled(LogLevel.Information)) 114[LoggerMessage(1, LogLevel.Information, "Executing ChallengeResult with authentication schemes ({Schemes}).", EventName = "ChallengeResultExecuting", SkipEnabledCheck = true)]
HttpResultsHelper.cs (4)
158[LoggerMessage(1, LogLevel.Information, 163[LoggerMessage(2, LogLevel.Information, 168[LoggerMessage(3, LogLevel.Information, "Writing value of type '{Type}' as Json.", 172[LoggerMessage(5, LogLevel.Information,
RedirectHttpResult.cs (1)
138[LoggerMessage(1, LogLevel.Information,
RedirectToRouteHttpResult.cs (1)
195[LoggerMessage(1, LogLevel.Information,
SignInHttpResult.cs (1)
71[LoggerMessage(1, LogLevel.Information,
SignOutHttpResult.cs (2)
97if (logger.IsEnabled(LogLevel.Information)) 103[LoggerMessage(1, LogLevel.Information,
Microsoft.AspNetCore.HttpLogging (7)
HttpLoggingExtensions.cs (6)
11LogLevel.Information, 17LogLevel.Information, 23[LoggerMessage(3, LogLevel.Information, "RequestBody: {Body}{Status}", EventName = "RequestBody")] 26[LoggerMessage(4, LogLevel.Information, "ResponseBody: {Body}", EventName = "ResponseBody")] 38[LoggerMessage(8, LogLevel.Information, "Duration: {Duration}ms", EventName = "Duration")] 42LogLevel.Information,
HttpLoggingMiddleware.cs (1)
51if (!_logger.IsEnabled(LogLevel.Information))
Microsoft.AspNetCore.HttpLogging.Tests (1)
HttpLoggingMiddlewareTests.cs (1)
1528var lines = Assert.Single(TestSink.Writes.Where(w => w.LogLevel >= LogLevel.Information)).Message.Split(Environment.NewLine);
Microsoft.AspNetCore.Identity.UI (4)
Areas\Identity\Pages\V4\Account\ExternalLogin.cshtml.cs (2)
144if (_logger.IsEnabled(LogLevel.Information)) 194if (_logger.IsEnabled(LogLevel.Information))
Areas\Identity\Pages\V5\Account\ExternalLogin.cshtml.cs (2)
144if (_logger.IsEnabled(LogLevel.Information)) 194if (_logger.IsEnabled(LogLevel.Information))
Microsoft.AspNetCore.InternalTesting.Tests (4)
LoggedTestXunitTests.cs (4)
67[LogLevel(LogLevel.Information)] 74Assert.Equal(LogLevel.Information, message.LogLevel); 91[LogLevel(LogLevel.Information)] 98Assert.Equal(LogLevel.Information, message.LogLevel);
Microsoft.AspNetCore.Mvc.Core (40)
ChallengeResult.cs (2)
117if (logger.IsEnabled(LogLevel.Information)) 123[LoggerMessage(1, LogLevel.Information, "Executing ChallengeResult with authentication schemes ({Schemes}).", EventName = "ChallengeResultExecuting", SkipEnabledCheck = true)]
ForbidResult.cs (2)
118if (logger.IsEnabled(LogLevel.Information)) 124[LoggerMessage(1, LogLevel.Information, $"Executing {nameof(ForbidResult)} with authentication schemes ({{Schemes}}).", EventName = "ForbidResultExecuting", SkipEnabledCheck = true)]
Infrastructure\ContentResultExecutor.cs (1)
77[LoggerMessage(1, LogLevel.Information, "Executing ContentResult with HTTP Response ContentType of {ContentType}", EventName = "ContentResultExecuting")]
Infrastructure\ControllerActionInvoker.cs (4)
619if (logger.IsEnabled(LogLevel.Information)) 639[LoggerMessage(101, LogLevel.Information, "Executing action method {ActionName} - Validation state: {ValidationState}", EventName = "ActionMethodExecuting", SkipEnabledCheck = true)] 647if (logger.IsEnabled(LogLevel.Information)) 654[LoggerMessage(103, LogLevel.Information, "Executed action method {ActionName}, returned result {ActionResult} in {ElapsedMilliseconds}ms.", EventName = "ActionMethodExecuted", SkipEnabledCheck = true)]
Infrastructure\DefaultActionDescriptorCollectionProvider.cs (1)
177Level = LogLevel.Information,
Infrastructure\FileContentResultExecutor.cs (2)
79if (logger.IsEnabled(LogLevel.Information)) 86[LoggerMessage(2, LogLevel.Information, "Executing {FileResultType}, sending file with download name '{FileDownloadName}' ...", EventName = "ExecutingFileResultWithNoFileName", SkipEnabledCheck = true)]
Infrastructure\FileStreamResultExecutor.cs (2)
91if (logger.IsEnabled(LogLevel.Information)) 98[LoggerMessage(1, LogLevel.Information, "Executing {FileResultType}, sending file with download name '{FileDownloadName}' ...", EventName = "ExecutingFileResultWithNoFileName", SkipEnabledCheck = true)]
Infrastructure\LocalRedirectResultExecutor.cs (1)
68[LoggerMessage(1, LogLevel.Information, "Executing LocalRedirectResult, redirecting to {Destination}.", EventName = "LocalRedirectResultExecuting")]
Infrastructure\ObjectResultExecutor.cs (2)
149if (logger.IsEnabled(LogLevel.Information)) 157[LoggerMessage(1, LogLevel.Information, "Executing {ObjectResultType}, writing value of type '{Type}'.", EventName = "ObjectResultExecuting", SkipEnabledCheck = true)]
Infrastructure\PhysicalFileResultExecutor.cs (2)
167if (logger.IsEnabled(LogLevel.Information)) 174[LoggerMessage(1, LogLevel.Information, "Executing {FileResultType}, sending file '{FileDownloadPath}' with download name '{FileDownloadName}' ...", EventName = "ExecutingFileResult", SkipEnabledCheck = true)]
Infrastructure\RedirectResultExecutor.cs (1)
65[LoggerMessage(1, LogLevel.Information, "Executing RedirectResult, redirecting to {Destination}.", EventName = "RedirectResultExecuting")]
Infrastructure\RedirectToActionResultExecutor.cs (1)
71[LoggerMessage(1, LogLevel.Information, "Executing RedirectResult, redirecting to {Destination}.", EventName = "RedirectToActionResultExecuting")]
Infrastructure\RedirectToPageResultExecutor.cs (1)
71[LoggerMessage(1, LogLevel.Information, "Executing RedirectToPageResult, redirecting to {Page}.", EventName = "RedirectToPageResultExecuting")]
Infrastructure\RedirectToRouteResultExecutor.cs (1)
67[LoggerMessage(1, LogLevel.Information, "Executing RedirectToRouteResult, redirecting to {Destination} from route {RouteName}.", EventName = "RedirectToRouteResultExecuting")]
Infrastructure\ResourceInvoker.cs (1)
59if (_diagnosticListener.IsEnabled() || _logger.IsEnabled(LogLevel.Information))
Infrastructure\ResourceInvoker.Log.cs (8)
22if (logger.IsEnabled(LogLevel.Information)) 67[LoggerMessage(101, LogLevel.Information, "Route matched with {RouteData}. Executing action {ActionName}", EventName = "ActionExecuting", SkipEnabledCheck = true)] 70[LoggerMessage(102, LogLevel.Information, "Route matched with {RouteData}. Executing controller action with signature {MethodInfo} on controller {Controller} ({AssemblyName}).", EventName = "ControllerActionExecuting", SkipEnabledCheck = true)] 73[LoggerMessage(103, LogLevel.Information, "Route matched with {RouteData}. Executing page {PageName}", EventName = "PageExecuting", SkipEnabledCheck = true)] 76[LoggerMessage(3, LogLevel.Information, "Authorization failed for the request at filter '{AuthorizationFilter}'.", EventName = "AuthorizationFailure")] 101if (logger.IsEnabled(LogLevel.Information)) 114[LoggerMessage(104, LogLevel.Information, "Executed page {PageName} in {ElapsedMilliseconds}ms", EventName = "PageExecuted", SkipEnabledCheck = true)] 117[LoggerMessage(105, LogLevel.Information, "Executed action {ActionName} in {ElapsedMilliseconds}ms", EventName = "ActionExecuted", SkipEnabledCheck = true)]
Infrastructure\SystemTextJsonResultExecutor.cs (2)
132[LoggerMessage(1, LogLevel.Information, "Executing JsonResult, writing value of type '{Type}'.", EventName = "JsonResultExecuting", SkipEnabledCheck = true)] 137if (logger.IsEnabled(LogLevel.Information))
Infrastructure\VirtualFileResultExecutor.cs (2)
149if (logger.IsEnabled(LogLevel.Information)) 156[LoggerMessage(1, LogLevel.Information, "Executing {FileResultType}, sending file '{FileDownloadPath}' with download name '{FileDownloadName}' ...", EventName = "ExecutingFileResult", SkipEnabledCheck = true)]
SignInResult.cs (1)
92[LoggerMessage(1, LogLevel.Information, $"Executing {nameof(SignInResult)} with authentication scheme ({{Scheme}}) and the following principal: {{Principal}}.", EventName = "SignInResultExecuting")]
SignOutResult.cs (2)
134if (logger.IsEnabled(LogLevel.Information)) 140[LoggerMessage(1, LogLevel.Information, $"Executing {nameof(SignOutResult)} with authentication schemes ({{Schemes}}).", EventName = "SignOutResultExecuting", SkipEnabledCheck = true)]
StatusCodeResult.cs (1)
48[LoggerMessage(1, LogLevel.Information, "Executing StatusCodeResult, setting HTTP status code {StatusCode}", EventName = "HttpStatusCodeResultExecuting")]
Microsoft.AspNetCore.Mvc.NewtonsoftJson (2)
NewtonsoftJsonResultExecutor.cs (2)
179[LoggerMessage(2, LogLevel.Information, "Executing JsonResult, writing value of type '{Type}'.", EventName = "JsonResultExecuting", SkipEnabledCheck = true)] 184if (logger.IsEnabled(LogLevel.Information))
Microsoft.AspNetCore.Mvc.RazorPages (8)
PageLoggerExtensions.cs (8)
79[LoggerMessage(105, LogLevel.Information, "Executing handler method {HandlerName} - ModelState is {ValidationState}", EventName = "ExecutingHandlerMethod", SkipEnabledCheck = true)] 87if (logger.IsEnabled(LogLevel.Information)) 108[LoggerMessage(107, LogLevel.Information, "Executing an implicit handler method - ModelState is {ValidationState}", EventName = "ExecutingImplicitHandlerMethod", SkipEnabledCheck = true)] 113if (logger.IsEnabled(LogLevel.Information)) 121[LoggerMessage(108, LogLevel.Information, "Executed handler method {HandlerName}, returned result {ActionResult}.", EventName = "ExecutedHandlerMethod")] 126if (logger.IsEnabled(LogLevel.Information)) 133[LoggerMessage(109, LogLevel.Information, "Executed an implicit handler method, returned result {ActionResult}.", EventName = "ExecutedImplicitHandlerMethod", SkipEnabledCheck = true)] 138if (logger.IsEnabled(LogLevel.Information))
Microsoft.AspNetCore.Mvc.ViewFeatures (7)
Filters\AntiforgeryMiddlewareAuthorizationFilter.cs (1)
34[LoggerMessage(1, LogLevel.Information, "Antiforgery token validation failed. {Message}", EventName = "AntiforgeryTokenInvalid")]
Filters\ValidateAntiforgeryTokenAuthorizationFilter.cs (1)
56[LoggerMessage(1, LogLevel.Information, "Antiforgery token validation failed. {Message}", EventName = "AntiforgeryTokenInvalid")]
PartialViewResultExecutor.cs (2)
192[LoggerMessage(1, LogLevel.Information, "Executing PartialViewResult, running view {PartialViewName}.", EventName = "PartialViewResultExecuting")] 206[LoggerMessage(4, LogLevel.Information, "Executed PartialViewResult - view {PartialViewName} executed in {ElapsedMilliseconds}ms.", EventName = "PartialViewResultExecuted")]
ViewComponentResultExecutor.cs (1)
164[LoggerMessage(1, LogLevel.Information, "Executing ViewComponentResult, running {ViewComponentName}.", EventName = "ViewComponentResultExecuting")]
ViewResultExecutor.cs (2)
192[LoggerMessage(1, LogLevel.Information, "Executing ViewResult, running view {ViewName}.", EventName = "ViewResultExecuting")] 206[LoggerMessage(4, LogLevel.Information, "Executed ViewResult - view {ViewName} executed in {ElapsedMilliseconds}ms.", EventName = "ViewResultExecuted")]
Microsoft.AspNetCore.OutputCaching (6)
LoggerExtensions.cs (6)
25[LoggerMessage(4, LogLevel.Information, "The content requested has not been modified.", EventName = "NotModifiedServed")] 28[LoggerMessage(5, LogLevel.Information, "Serving response from cache.", EventName = "CachedResponseServed")] 31[LoggerMessage(6, LogLevel.Information, "No cached response available for this request and the 'only-if-cached' cache directive was specified.", 35[LoggerMessage(7, LogLevel.Information, "No cached response available for this request.", EventName = "NoResponseServed")] 38[LoggerMessage(8, LogLevel.Information, "The response has been cached.", EventName = "ResponseCached")] 41[LoggerMessage(9, LogLevel.Information, "The response could not be cached for this request.", EventName = "ResponseNotCached")]
Microsoft.AspNetCore.OutputCaching.Tests (6)
TestUtils.cs (6)
292internal static LoggedMessage NotModifiedServed => new LoggedMessage(4, LogLevel.Information); 293internal static LoggedMessage CachedResponseServed => new LoggedMessage(5, LogLevel.Information); 294internal static LoggedMessage GatewayTimeoutServed => new LoggedMessage(6, LogLevel.Information); 295internal static LoggedMessage NoResponseServed => new LoggedMessage(7, LogLevel.Information); 296internal static LoggedMessage ResponseCached => new LoggedMessage(8, LogLevel.Information); 297internal static LoggedMessage ResponseNotCached => new LoggedMessage(9, LogLevel.Information);
Microsoft.AspNetCore.ResponseCaching (6)
LoggerExtensions.cs (6)
92[LoggerMessage(21, LogLevel.Information, "The content requested has not been modified.", EventName = "NotModifiedServed")] 95[LoggerMessage(22, LogLevel.Information, "Serving response from cache.", EventName = "CachedResponseServed")] 98[LoggerMessage(23, LogLevel.Information, "No cached response available for this request and the 'only-if-cached' cache directive was specified.", 102[LoggerMessage(24, LogLevel.Information, "No cached response available for this request.", EventName = "NoResponseServed")] 108[LoggerMessage(26, LogLevel.Information, "The response has been cached.", EventName = "ResponseCached")] 111[LoggerMessage(27, LogLevel.Information, "The response could not be cached for this request.", EventName = "ResponseNotCached")]
Microsoft.AspNetCore.ResponseCaching.Tests (6)
TestUtils.cs (6)
295internal static LoggedMessage NotModifiedServed => new LoggedMessage(21, LogLevel.Information); 296internal static LoggedMessage CachedResponseServed => new LoggedMessage(22, LogLevel.Information); 297internal static LoggedMessage GatewayTimeoutServed => new LoggedMessage(23, LogLevel.Information); 298internal static LoggedMessage NoResponseServed => new LoggedMessage(24, LogLevel.Information); 300internal static LoggedMessage ResponseCached => new LoggedMessage(26, LogLevel.Information); 301internal static LoggedMessage ResponseNotCached => new LoggedMessage(27, LogLevel.Information);
Microsoft.AspNetCore.Rewrite (5)
Extensions\RewriteMiddlewareLoggingExtensions.cs (5)
31[LoggerMessage(8, LogLevel.Information, "Request redirected to HTTPS", EventName = "RedirectedToHttps")] 34[LoggerMessage(13, LogLevel.Information, "Request redirected to www", EventName = "RedirectedToWww")] 37[LoggerMessage(14, LogLevel.Information, "Request redirected to root domain from www subdomain", EventName = "RedirectedToNonWww")] 39[LoggerMessage(9, LogLevel.Information, "Request was redirected to {redirectedUrl}", EventName = "RedirectedRequest")] 42[LoggerMessage(10, LogLevel.Information, "Request was rewritten to {rewrittenUrl}", EventName = "RewritetenRequest")]
Microsoft.AspNetCore.Routing (7)
EndpointMiddleware.cs (3)
62if (!_logger.IsEnabled(LogLevel.Information)) 131[LoggerMessage(0, LogLevel.Information, "Executing endpoint '{EndpointName}'", EventName = "ExecutingEndpoint")] 134[LoggerMessage(1, LogLevel.Information, "Executed endpoint '{EndpointName}'", EventName = "ExecutedEndpoint")]
EndpointRoutingMiddleware.cs (4)
188if (!_logger.IsEnabled(LogLevel.Information)) 354[LoggerMessage(4, LogLevel.Information, "The endpoint '{EndpointName}' is being executed without running additional middleware.", EventName = "ExecutingEndpoint")] 357[LoggerMessage(5, LogLevel.Information, "The endpoint '{EndpointName}' has been executed without running additional middleware.", EventName = "ExecutedEndpoint")] 360[LoggerMessage(6, LogLevel.Information, "The endpoint '{EndpointName}' is being short circuited without running additional middleware or producing a response.", EventName = "ShortCircuitedEndpoint")]
Microsoft.AspNetCore.Server.HttpSys (5)
MessagePump.Log.cs (2)
54[LoggerMessage(LoggerEventIds.StopCancelled, LogLevel.Information, "Canceled, terminating {OutstandingRequests} request(s).", EventName = "StopCancelled")] 57[LoggerMessage(LoggerEventIds.WaitingForRequestsToDrain, LogLevel.Information, "Stopping, waiting for {OutstandingRequests} request(s) to drain.", EventName = "WaitingForRequestsToDrain")]
NativeInterop\RequestQueue.cs (1)
157[LoggerMessage(LoggerEventIds.AttachedToQueue, LogLevel.Information, "Attached to an existing request queue '{RequestQueueName}', some options do not apply.", EventName = "AttachedToQueue")]
NativeInterop\UrlGroup.Log.cs (1)
21[LoggerMessage(LoggerEventIds.UnregisteringPrefix, LogLevel.Information, "Stop listening on prefix: {UriPrefix}", EventName = "UnregisteringPrefix")]
RequestProcessing\RequestContextLog.cs (1)
16[LoggerMessage(LoggerEventIds.RequestsDrained, LogLevel.Information, "All requests drained.", EventName = "RequestsDrained")]
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (3)
src\Shared\Http2cat\Http2CatHostedService.cs (3)
68if (_logger.IsEnabled(LogLevel.Information)) 75if (_logger.IsEnabled(LogLevel.Information)) 104if (_logger.IsEnabled(LogLevel.Information))
Microsoft.AspNetCore.Server.Kestrel.Core (14)
Internal\AddressBinder.cs (1)
176if (context.Logger.IsEnabled(LogLevel.Information))
Internal\Http\HttpProtocol.cs (1)
1398Log.IsEnabled(LogLevel.Information)
Internal\Infrastructure\KestrelTrace.Connections.cs (1)
94[LoggerMessage(34, LogLevel.Information, @"Connection id ""{ConnectionId}"", Request id ""{TraceIdentifier}"": the application aborted the connection.", EventName = "ApplicationAbortedConnection")]
Internal\Infrastructure\KestrelTrace.General.cs (2)
97[LoggerMessage(32, LogLevel.Information, @"Connection id ""{ConnectionId}"", Request id ""{TraceIdentifier}"": the application completed without reading the entire request body.", EventName = "RequestBodyNotEntirelyRead")] 100[LoggerMessage(33, LogLevel.Information, @"Connection id ""{ConnectionId}"", Request id ""{TraceIdentifier}"": automatic draining of the request body timed out after taking over 5 seconds.", EventName = "RequestBodyDrainTimedOut")]
Internal\Infrastructure\KestrelTrace.Http2.cs (1)
123[LoggerMessage(38, LogLevel.Information, @"Connection id ""{ConnectionId}"": HPACK encoding error while encoding headers for stream ID {StreamId}.", EventName = "HPackEncodingError")]
Internal\Infrastructure\KestrelTrace.Http3.cs (1)
98[LoggerMessage(52, LogLevel.Information, @"Connection id ""{ConnectionId}"": QPACK encoding error while encoding headers for stream ID {StreamId}.", EventName = "QPackEncodingError")]
Internal\KestrelServerImpl.cs (3)
99HttpParser = new HttpParser<Http1ParsingHandler>(trace.IsEnabled(LogLevel.Information), serverOptions.DisableHttp1LineFeedTerminators), 351if (Trace.IsEnabled(LogLevel.Information)) 379if (Trace.IsEnabled(LogLevel.Information))
LocalhostListenOptions.cs (2)
40if (context.Logger.IsEnabled(LogLevel.Information)) 54if (context.Logger.IsEnabled(LogLevel.Information))
Middleware\HttpsConnectionMiddleware.cs (2)
592[LoggerMessage(4, LogLevel.Information, "HTTP/2 over TLS is not supported on Windows versions older than Windows 10 and Windows Server 2016 due to incompatible ciphers or missing ALPN support. Falling back to HTTP/1.1 instead.", 616[LoggerMessage(9, LogLevel.Information, "Certificate with thumbprint {Thumbprint} lacks the subjectAlternativeName (SAN) extension and may not be accepted by browsers.", EventName = "NoSubjectAlternativeName")]
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
AddressBinderTests.cs (1)
222Assert.Equal(LogLevel.Information, log.LogLevel);
HttpParserTests.cs (1)
853private IHttpParser<RequestHandler> CreateParser(KestrelTrace log, bool disableHttp1LineFeedTerminators = true) => new HttpParser<RequestHandler>(log.IsEnabled(LogLevel.Information), disableHttp1LineFeedTerminators);
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
59HttpParser = new HttpParser<Http1ParsingHandler>(Log.IsEnabled(LogLevel.Information), disableHttp1LineFeedTerminators);
Microsoft.AspNetCore.Session (6)
DistributedSession.cs (1)
251if (_logger.IsEnabled(LogLevel.Information))
LoggingExtensions.cs (5)
11[LoggerMessage(2, LogLevel.Information, "Accessing expired session, Key:{sessionKey}", EventName = "AccessingExpiredSession")] 14[LoggerMessage(3, LogLevel.Information, "Session started; Key:{sessionKey}, Id:{sessionId}", EventName = "SessionStarted", SkipEnabledCheck = true)] 35[LoggerMessage(10, LogLevel.Information, "Committing the session was canceled.", EventName = "SessionCommitCanceled")] 41[LoggerMessage(12, LogLevel.Information, "Refreshing the session was canceled.", EventName = "SessionRefreshCanceled")] 44[LoggerMessage(13, LogLevel.Information, "Session cannot be committed since it is unavailable.", EventName = "SessionCommitNotAvailable")]
Microsoft.AspNetCore.Session.Tests (8)
SessionTests.cs (8)
370Assert.Equal(LogLevel.Information, sessionLogMessages[0].LogLevel); 438Assert.Equal(LogLevel.Information, sessionLogMessages[0].LogLevel); 440Assert.Equal(LogLevel.Information, sessionLogMessages[2].LogLevel); 882Assert.Equal(LogLevel.Information, sessionLogMessage.LogLevel); 945Assert.Equal(LogLevel.Information, sessionLogMessages[0].LogLevel); 953Assert.Equal(LogLevel.Information, sessionMiddlewareLogs[0].LogLevel); 1012Assert.Equal(LogLevel.Information, sessionLogMessages[0].LogLevel); 1076Assert.Equal(LogLevel.Information, sessionLogMessages[0].LogLevel);
Microsoft.AspNetCore.SignalR.Client.Core (5)
HubConnection.Log.cs (5)
135[LoggerMessage(24, LogLevel.Information, "Using HubProtocol '{Protocol} v{Version}'.", EventName = "HubProtocol")] 183[LoggerMessage(44, LogLevel.Information, "HubConnection started.", EventName = "Started")] 260[LoggerMessage(68, LogLevel.Information, "HubConnection reconnecting.", EventName = "Reconnecting")] 266[LoggerMessage(70, LogLevel.Information, "HubConnection reconnected successfully after {ReconnectAttempts} attempts and {ElapsedTime} elapsed.", EventName = "Reconnected")] 269[LoggerMessage(71, LogLevel.Information, "Reconnect retries have been exhausted after {ReconnectAttempts} failed attempts and {ElapsedTime} elapsed. Disconnecting.", EventName = "ReconnectAttemptsExhausted")]
Microsoft.AspNetCore.SignalR.Client.Tests (1)
HubConnectionTests.Reconnect.cs (1)
364Assert.Equal(LogLevel.Information, attemptsLog.Write.LogLevel);
Microsoft.AspNetCore.SignalR.StackExchangeRedis (4)
Internal\RedisLog.cs (4)
16if (logger.IsEnabled(LogLevel.Information) && endpoints.Count > 0) 22[LoggerMessage(1, LogLevel.Information, "Connecting to Redis endpoints: {Endpoints}. Using Server Name: {ServerName}", EventName = "ConnectingToEndpoints")] 25[LoggerMessage(2, LogLevel.Information, "Connected to Redis.", EventName = "Connected")] 43[LoggerMessage(8, LogLevel.Information, "Connection to Redis restored.", EventName = "ConnectionRestored")]
Microsoft.AspNetCore.SpaProxy (3)
SpaProxyLaunchManager.cs (2)
45if (_logger.IsEnabled(LogLevel.Information)) 163else if (_logger.IsEnabled(LogLevel.Information))
SpaProxyMiddleware.cs (1)
67if (_logger.IsEnabled(LogLevel.Information))
Microsoft.AspNetCore.SpaServices.Extensions (3)
AngularCli\AngularCliMiddleware.cs (1)
62if (logger.IsEnabled(LogLevel.Information))
Npm\NodeScriptRunner.cs (1)
89if (!string.IsNullOrWhiteSpace(line) && logger.IsEnabled(LogLevel.Information))
ReactDevelopmentServer\ReactDevelopmentServerMiddleware.cs (1)
68if (logger.IsEnabled(LogLevel.Information))
Microsoft.AspNetCore.StaticAssets (4)
LoggerExtensions.cs (4)
14[LoggerMessage(2, LogLevel.Information, "Sending file. Request path: '{VirtualPath}'. Physical path: '{PhysicalPath}'", EventName = "FileServed")] 38[LoggerMessage(6, LogLevel.Information, "The file {Path} was not modified", EventName = "FileNotModified")] 41[LoggerMessage(7, LogLevel.Information, "Precondition for {Path} failed", EventName = "PreconditionFailed")] 50[LoggerMessage(10, LogLevel.Information, "Sending {Range} of file {Path}", EventName = "SendingFileRange")]
Microsoft.AspNetCore.StaticFiles (4)
LoggerExtensions.cs (4)
17[LoggerMessage(2, LogLevel.Information, "Sending file. Request path: '{VirtualPath}'. Physical path: '{PhysicalPath}'", EventName = "FileServed")] 41[LoggerMessage(6, LogLevel.Information, "The file {Path} was not modified", EventName = "FileNotModified")] 44[LoggerMessage(7, LogLevel.Information, "Precondition for {Path} failed", EventName = "PreconditionFailed")] 53[LoggerMessage(10, LogLevel.Information, "Sending {Range} of file {Path}", EventName = "SendingFileRange")]
Microsoft.CodeAnalysis.LanguageServer (2)
Logging\LspLogMessageLogger.cs (1)
84LogLevel.Information => MessageType.Info,
Testing\RunTestsHandler.cs (1)
161Microsoft.Extensions.Logging.LogLevel.Information => TraceLevel.Info,
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
Windows\Log.cs (2)
12[LoggerMessage(1, LogLevel.Information, "Resource Monitoring is running inside a Job Object. For more information about Job Objects see https://aka.ms/job-objects")] 15[LoggerMessage(2, LogLevel.Information, "Resource Monitoring is running outside of Job Object. For more information about Job Objects see https://aka.ms/job-objects")]
Microsoft.Extensions.Diagnostics.Testing (1)
Logging\FakeLogRecord.cs (1)
139LogLevel.Information => " info",
Microsoft.Extensions.Diagnostics.Testing.Tests (3)
Logging\FakeLoggerTests.cs (3)
37Assert.Equal(LogLevel.Information, records[0].Level); 153Assert.True(logger.IsEnabled(LogLevel.Information)); 164Assert.True(logger.IsEnabled(LogLevel.Information));
Microsoft.Extensions.Hosting.Testing (1)
HostTerminatorService.cs (1)
66[LoggerMessage(1, LogLevel.Information, "Debugger is attached. The host won't be automatically disposed.")]
Microsoft.Extensions.Http (7)
Logging\LogHelper.cs (7)
42LogLevel.Information, 48LogLevel.Information, 53LogLevel.Information, 60LogLevel.Information, 65LogLevel.Information, 70LogLevel.Information, 98if (logger.IsEnabled(LogLevel.Information))
Microsoft.Extensions.Http.Diagnostics (2)
Logging\Internal\HttpClientLogger.cs (2)
85Log.OutgoingRequest(_logger, LogLevel.Information, logRecord); 149return LogLevel.Information;
Microsoft.Extensions.Http.Diagnostics.Tests (4)
Logging\AcceptanceTests.cs (2)
45Assert.Equal(LogLevel.Information, logRecord.Level); 86Assert.Equal(LogLevel.Information, secondLogRecord.Level);
Logging\HttpClientLoggerTest.cs (2)
936[InlineData(399, LogLevel.Information)] 941[InlineData(600, LogLevel.Information)]
Microsoft.Extensions.Logging (3)
Logger.cs (1)
246LogLevel.Information,
LoggingServiceCollectionExtensions.cs (1)
42new DefaultLoggerLevelConfigureOptions(LogLevel.Information)));
src\libraries\Common\src\Extensions\Logging\DebuggerDisplayFormatting.cs (1)
39LogLevel.Information,
Microsoft.Extensions.Logging.Abstractions (5)
LoggerExtensions.cs (4)
172logger.Log(LogLevel.Information, eventId, exception, message, args); 189logger.Log(LogLevel.Information, eventId, message, args); 206logger.Log(LogLevel.Information, exception, message, args); 222logger.Log(LogLevel.Information, message, args);
src\libraries\Common\src\Extensions\Logging\DebuggerDisplayFormatting.cs (1)
39LogLevel.Information,
Microsoft.Extensions.Logging.AzureAppServices (1)
ConfigurationBasedLevelSwitcher.cs (1)
42return LogLevel.Information;
Microsoft.Extensions.Logging.Console (7)
ConsoleLoggerExtensions.Obsolete.cs (2)
55factory.AddConsole((n, l) => l >= LogLevel.Information, includeScopes); 83factory.AddConsole((n, l) => l >= LogLevel.Information, includeScopes);
JsonConsoleFormatter.cs (1)
132LogLevel.Information => "Information",
SimpleConsoleFormatter.cs (3)
16private static readonly string _messagePadding = new string(' ', GetLogLevelString(LogLevel.Information).Length + LoglevelPadding.Length); 169LogLevel.Information => "info", 193LogLevel.Information => new ConsoleColors(ConsoleColor.DarkGreen, ConsoleColor.Black),
SystemdConsoleFormatter.cs (1)
127LogLevel.Information => "<6>", // informational messages
Microsoft.Extensions.Logging.EventLog (2)
EventLoggerFactoryExtensions.cs (1)
49public static ILoggerFactory AddEventLog(this ILoggerFactory factory) => AddEventLog(factory, LogLevel.Information);
EventLogLogger.cs (1)
189case LogLevel.Information:
Microsoft.Extensions.Logging.EventSource (2)
LoggingEventSource.cs (2)
490ret = LogLevel.Information; 528return LogLevel.Information;
Microsoft.Extensions.Logging.TraceSource (1)
TraceSourceLogger.cs (1)
75case LogLevel.Information: return TraceEventType.Information;
Microsoft.Extensions.ML (1)
ModelLoaders\FileModelLoader.cs (1)
175LogLevel.Information,
Microsoft.Extensions.Telemetry.Tests (1)
Logging\ExtendedLoggerTests.cs (1)
380logger.Log(LogLevel.Information, new EventId(0, "ID0"), "PAYLOAD", null, (_, _) => "MSG0");
Microsoft.Gen.Logging.Generated.Tests (49)
LoggerMessageAttributeTests.cs (2)
149new NonStaticTestClass(logger).M3(LogLevel.Information, "arg_0"); 150AssertWhenDefaultLogMethodCtor(collector, LogLevel.Information, ("p0", "-----"));
LogMethodTests.cs (11)
67fakeLogger.ControlLevel(LogLevel.Information, false); 74LevelTestExtensions.M8(logger, LogLevel.Information); 278ConstructorVariationsTestExtensions.M7(logger, LogLevel.Information, "Seven"); 284Assert.Equal(LogLevel.Information, logRecord.Level); 405Assert.Equal(LogLevel.Information, collector.LatestRecord.Level); 451LevelTestExtensions.M9(LogLevel.Information, logger); 454Assert.Equal(LogLevel.Information, collector.LatestRecord.Level); 487instance.NoParamsWithLevel(LogLevel.Information); 490Assert.Equal(LogLevel.Information, collector.LatestRecord.Level); 705fakeLogger.ControlLevel(LogLevel.Information, false); 710SkipEnabledCheckTestExtensions.LoggerMethodWithFalseSkipEnabledCheck(logger, LogLevel.Information, "p1");
LogPropertiesRedactionTests.cs (2)
52instance.DefaultAttrCtorLogPropertiesWithRedaction(LogLevel.Information, "arg0", classToRedact); 56Assert.Equal(LogLevel.Information, collector.LatestRecord.Level);
LogPropertiesTests.cs (5)
302Assert.Equal(LogLevel.Information, _logger.Collector.LatestRecord.Level); 323Assert.Equal(LogLevel.Information, _logger.Collector.LatestRecord.Level); 343Assert.Equal(LogLevel.Information, _logger.Collector.LatestRecord.Level); 365Assert.Equal(LogLevel.Information, latestRecord.Level); 501Assert.Equal(LogLevel.Information, latestRecord.Level);
TagProviderTests.cs (2)
57Assert.Equal(LogLevel.Information, latestRecord.Level); 290Assert.Equal(LogLevel.Information, latestRecord.Level);
test\Generators\Microsoft.Gen.Logging\TestClasses\AtSymbolsTestExtensions.cs (5)
18[LoggerMessage(0, LogLevel.Information, "M0 {event}")] 21[LoggerMessage(1, LogLevel.Information, "M1 {@myevent1}")] 36[LoggerMessage(LogLevel.Information, "M4 {class}")] 42[LoggerMessage(LogLevel.Information, "M6 class {class}")] 45[LoggerMessage(LogLevel.Information, "M7 param {@param}")]
test\Generators\Microsoft.Gen.Logging\TestClasses\InParameterTestExtensions.cs (1)
15[LoggerMessage(0, LogLevel.Information, "M0 {s}")]
test\Generators\Microsoft.Gen.Logging\TestClasses\LevelTestExtensions.cs (1)
16[LoggerMessage(2, LogLevel.Information, "M2")]
test\Generators\Microsoft.Gen.Logging\TestClasses\LogPropertiesExtensions.cs (6)
227[LoggerMessage(1, LogLevel.Information, "Both {StringProperty} and {ComplexParam} as params")] 230[LoggerMessage(2, LogLevel.Information, "Testing non-nullable struct here...")] 233[LoggerMessage(3, LogLevel.Information, "Testing nullable struct here...")] 236[LoggerMessage(4, LogLevel.Information, "Testing explicit nullable struct here...")] 239[LoggerMessage(5, LogLevel.Information, "Testing nullable property within class here...")] 245[LoggerMessage(6, LogLevel.Information, "Testing interface-typed argument here...")]
test\Generators\Microsoft.Gen.Logging\TestClasses\LogPropertiesRedactionExtensions.cs (1)
58[LoggerMessage(2, LogLevel.Information, "Only {StringProperty} as param")]
test\Generators\Microsoft.Gen.Logging\TestClasses\NonSensitiveRecordExtensions.cs (1)
20[LoggerMessage(6001, LogLevel.Information, "Logging User: {User}")]
test\Generators\Microsoft.Gen.Logging\TestClasses\NonStaticTestClass.cs (3)
31[LoggerMessage(4, LogLevel.Information, "LogProperties: {P0}")] 34[LoggerMessage(5, LogLevel.Information, "LogProperties with provider: {P0}, {P1}")] 39[LoggerMessage(6, LogLevel.Information, "LogProperties with redaction: {P0}")]
test\Generators\Microsoft.Gen.Logging\TestClasses\OverloadsTestExtensions.cs (2)
10[LoggerMessage(0, LogLevel.Information, "M0 {v}", EventName = "One")] 13[LoggerMessage(1, LogLevel.Information, "M0 {v}", EventName = "Two")]
test\Generators\Microsoft.Gen.Logging\TestClasses\SensitiveRecordExtensions.cs (3)
75[LoggerMessage(LogLevel.Information, "Data was obtained")] 80[LoggerMessage(LogLevel.Information)] 85[LoggerMessage(LogLevel.Information, "Data is {data}")]
test\Generators\Microsoft.Gen.Logging\TestClasses\SkipEnabledCheckTestExtensions.cs (2)
10[LoggerMessage(0, LogLevel.Information, "M0", SkipEnabledCheck = true)] 13[LoggerMessage(1, LogLevel.Information, "M1", SkipEnabledCheck = false)]
test\Generators\Microsoft.Gen.Logging\TestClasses\TagProviderExtensions.cs (1)
24[LoggerMessage(LogLevel.Information, "Custom provided properties for interface.")]
test\Generators\Microsoft.Gen.Logging\TestClasses\TransitiveTestExtensions.cs (1)
46[LoggerMessage(LogLevel.Information)]
SocialWeather (1)
Program.cs (1)
18factory.AddFilter("Console", level => level >= LogLevel.Information);
Sockets.BindTests (2)
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
59HttpParser = new HttpParser<Http1ParsingHandler>(Log.IsEnabled(LogLevel.Information), disableHttp1LineFeedTerminators);
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (1)
637Assert.Single(LogMessages, log => log.LogLevel == LogLevel.Information &&
Sockets.FunctionalTests (2)
src\Servers\Kestrel\shared\test\TestServiceContext.cs (1)
59HttpParser = new HttpParser<Http1ParsingHandler>(Log.IsEnabled(LogLevel.Information), disableHttp1LineFeedTerminators);
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (1)
458Assert.DoesNotContain(coreLogs, w => w.LogLevel > LogLevel.Information);
Stress.ApiService (1)
Program.cs (1)
131logger.Log(LogLevel.Information, 0, eventData, null, formatter: (_, _) => null!);
Templates.Blazor.Tests (3)
src\ProjectTemplates\Shared\AspNetProcess.cs (2)
80if (logger is not null && logger.IsEnabled(LogLevel.Information)) 99if (logger is not null && logger.IsEnabled(LogLevel.Information))
src\ProjectTemplates\Shared\TestOutputLogger.cs (1)
26if (_logger.IsEnabled(LogLevel.Information))
Templates.Blazor.WebAssembly.Auth.Tests (3)
src\ProjectTemplates\Shared\AspNetProcess.cs (2)
80if (logger is not null && logger.IsEnabled(LogLevel.Information)) 99if (logger is not null && logger.IsEnabled(LogLevel.Information))
src\ProjectTemplates\Shared\TestOutputLogger.cs (1)
26if (_logger.IsEnabled(LogLevel.Information))
Templates.Blazor.WebAssembly.Tests (3)
src\ProjectTemplates\Shared\AspNetProcess.cs (2)
80if (logger is not null && logger.IsEnabled(LogLevel.Information)) 99if (logger is not null && logger.IsEnabled(LogLevel.Information))
src\ProjectTemplates\Shared\TestOutputLogger.cs (1)
26if (_logger.IsEnabled(LogLevel.Information))
Templates.Mvc.Tests (3)
src\ProjectTemplates\Shared\AspNetProcess.cs (2)
80if (logger is not null && logger.IsEnabled(LogLevel.Information)) 99if (logger is not null && logger.IsEnabled(LogLevel.Information))
src\ProjectTemplates\Shared\TestOutputLogger.cs (1)
26if (_logger.IsEnabled(LogLevel.Information))
Templates.Tests (3)
src\ProjectTemplates\Shared\AspNetProcess.cs (2)
80if (logger is not null && logger.IsEnabled(LogLevel.Information)) 99if (logger is not null && logger.IsEnabled(LogLevel.Information))
src\ProjectTemplates\Shared\TestOutputLogger.cs (1)
26if (_logger.IsEnabled(LogLevel.Information))
TestProject.AppHost (1)
src\Aspire.Hosting.Testing\ResourceLoggerForwarderService.cs (1)
71var logLevel = line.IsErrorMessage ? LogLevel.Error : LogLevel.Information;
TestProject.WorkerA (1)
Worker.cs (1)
19if (_logger.IsEnabled(LogLevel.Information))
WsFedSample (2)
Program.cs (2)
35factory.AddFilter("Console", level => level >= LogLevel.Information); 36factory.AddFilter("Debug", level => level >= LogLevel.Information);