465 references to Information
Aspire.Dashboard (9)
Aspire.Hosting (3)
Aspire.Hosting.Containers.Tests (1)
Aspire.Hosting.Testing (1)
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)
Aspire.RabbitMQ.Client (2)
Aspire.RabbitMQ.Client.Tests (2)
BuildValidator (1)
CookieSessionSample (1)
EventHubsConsumer (1)
http2cat (3)
IIS.FunctionalTests (3)
IIS.LongTests (3)
IIS.NewHandler.FunctionalTests (3)
IIS.NewShim.FunctionalTests (3)
IIS.Tests (1)
IISExpress.FunctionalTests (3)
InMemory.FunctionalTests (6)
InProcessWebSite (2)
JwtSample (1)
Microsoft.Arcade.Common (3)
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)
Microsoft.AspNetCore.Authentication.Cookies (2)
Microsoft.AspNetCore.Authentication.JwtBearer (1)
Microsoft.AspNetCore.Authentication.Negotiate (2)
Microsoft.AspNetCore.Authentication.OpenIdConnect (2)
Microsoft.AspNetCore.Authentication.WsFederation (1)
Microsoft.AspNetCore.Authorization (1)
Microsoft.AspNetCore.Authorization.Test (2)
Microsoft.AspNetCore.BrowserTesting (2)
Microsoft.AspNetCore.Components.Endpoints (2)
Microsoft.AspNetCore.Components.Server (1)
Microsoft.AspNetCore.Components.WebAssembly (3)
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);
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) =>
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)
Microsoft.AspNetCore.Hosting (5)
Microsoft.AspNetCore.Http.Connections.Client (11)
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)
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,
Microsoft.AspNetCore.HttpLogging.Tests (1)
Microsoft.AspNetCore.Identity.UI (4)
Microsoft.AspNetCore.InternalTesting.Tests (4)
Microsoft.AspNetCore.Mvc.Core (40)
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)]
Microsoft.AspNetCore.Mvc.NewtonsoftJson (2)
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)
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)
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)
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)
Microsoft.AspNetCore.Server.HttpSys (5)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (3)
Microsoft.AspNetCore.Server.Kestrel.Core (14)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (3)
Microsoft.AspNetCore.Session (6)
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)
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)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (4)
Microsoft.AspNetCore.SpaProxy (3)
Microsoft.AspNetCore.SpaServices.Extensions (3)
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)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
Microsoft.Extensions.Diagnostics.Testing (1)
Microsoft.Extensions.Diagnostics.Testing.Tests (3)
Microsoft.Extensions.Hosting.Testing (1)
Microsoft.Extensions.Http (7)
Microsoft.Extensions.Http.Diagnostics (2)
Microsoft.Extensions.Http.Diagnostics.Tests (4)
Microsoft.Extensions.Logging (3)
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);
Microsoft.Extensions.Logging.AzureAppServices (1)
Microsoft.Extensions.Logging.Console (7)
Microsoft.Extensions.Logging.EventLog (2)
Microsoft.Extensions.Logging.EventSource (2)
Microsoft.Extensions.Logging.TraceSource (1)
Microsoft.Extensions.ML (1)
Microsoft.Extensions.Telemetry.Tests (1)
Microsoft.Gen.Logging.Generated.Tests (49)
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");
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...")]
SocialWeather (1)
Sockets.BindTests (2)
Sockets.FunctionalTests (2)
Stress.ApiService (1)
Templates.Blazor.Tests (3)
Templates.Blazor.WebAssembly.Auth.Tests (3)
Templates.Blazor.WebAssembly.Tests (3)
Templates.Mvc.Tests (3)
Templates.Tests (3)
TestProject.AppHost (1)
TestProject.WorkerA (1)
WsFedSample (2)