1 write to Logger
Microsoft.AspNetCore.InternalTesting (1)
LoggedTest\LoggedTestBase.cs (1)
87Logger = loggerFactory.CreateLogger(classType);
314 references to Logger
IIS.FunctionalTests (33)
src\Servers\IIS\IIS\test\Common.FunctionalTests\HttpsTests.cs (3)
106Logger.LogError($"Certificate is invalid. Issuer name: {cert?.Issuer}"); 109Logger.LogError($"List of current certificates in root store:"); 113Logger.LogError(otherCert.Issuer);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (2)
46e => Logger.LogError($"Failed to remove app_offline : {e.Message}"), 89return Helpers.ReadAllTextFromFile(Helpers.GetExpectedLogName(deploymentResult, LogFolderPath), Logger);
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (9)
76var contents = Helpers.ReadAllTextFromFile(Helpers.GetExpectedLogName(deploymentResult, LogFolderPath), Logger); 103await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.CouldNotStartStdoutFileRedirection("Q:\\std", deploymentResult), Logger, allowMultiple: true); 172var logContents = Helpers.ReadAllTextFromFile(firstTempFile, Logger); 193await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, @"\[aspnetcorev2.dll\] Initializing logs for .*?Description: IIS ASP.NET Core Module V2", Logger); 217var contents = Helpers.ReadAllTextFromFile(Helpers.GetExpectedLogName(deploymentResult, logFolderPath), Logger); 219await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessThreadExitStdOut(deploymentResult, "12", "(.*)彡⾔(.*)"), Logger); 249await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.OutOfProcessFailedToStart(deploymentResult, "Wow!"), Logger); 265await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.OutOfProcessFailedToStart(deploymentResult, ""), Logger); 279await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.OutOfProcessFailedToStart(deploymentResult, new string('a', 30000)), Logger);
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (5)
70await EventLogHelpers.VerifyEventLogEventAsync(result, EventLogHelpers.OnlyOneAppPerAppPool(), Logger); 97await EventLogHelpers.VerifyEventLogEventAsync(result, "Mixed hosting model is not supported.", Logger); 128Helpers.CopyFiles(source, destination, Logger); 130_publishedApplication = new PublishedApplication(destination.FullName, Logger); 141_rootApplication = new PublishedApplication(Helpers.CreateEmptyApplication(config, contentRoot), Logger);
src\Servers\IIS\IIS\test\IIS.Shared.FunctionalTests\ApplicationInitializationTests.cs (4)
60await EventLogHelpers.VerifyEventLogEventAsync(result, EventLogHelpers.Started(result), Logger); 64await EventLogHelpers.VerifyEventLogEventAsync(result, EventLogHelpers.ShutdownMessage(result), Logger); 104await EventLogHelpers.VerifyEventLogEventAsync(result, EventLogHelpers.Started(result), Logger); 105await EventLogHelpers.VerifyEventLogEventAsync(result, EventLogHelpers.ShutdownMessage(result), Logger);
src\Servers\IIS\IIS\test\IIS.Shared.FunctionalTests\StdOutRedirectionTests.cs (10)
51@"Framework: 'Microsoft.NETCore.App', version '2.9.9' \(x64\)", Logger); 53"To install missing framework, download:", Logger); 74var contents = Helpers.ReadAllTextFromFile(Helpers.GetExpectedLogName(deploymentResult, LogFolderPath), Logger); 77@"Framework: 'Microsoft.NETCore.App', version '2.9.9' \(x64\)", Logger); 79missingFrameworkString, Logger); 105var contents = Helpers.ReadAllTextFromFile(fileInDirectory, Logger); 106await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, "Invoked hostfxr", Logger); 131await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, "Invoked hostfxr", Logger); 158var contents = Helpers.ReadAllTextFromFile(fileInDirectory, Logger); 160await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, "Invoked hostfxr", Logger);
IIS.LongTests (21)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (2)
46e => Logger.LogError($"Failed to remove app_offline : {e.Message}"), 89return Helpers.ReadAllTextFromFile(Helpers.GetExpectedLogName(deploymentResult, LogFolderPath), Logger);
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (6)
260EventLogHelpers.ShutdownMessage(deploymentResult), Logger); 297EventLogHelpers.ShutdownMessage(deploymentResult), Logger); 334EventLogHelpers.ShutdownMessage(deploymentResult), Logger); 418Logger.LogError($"Status code was a bad request. Content: {response.Content.ReadAsStringAsync().GetAwaiter().GetResult()}"); 428e => Logger.LogError($"Failed to create app_offline : {e.Message}"), 585e => Logger.LogError($"Failed to touch web.config : {e.Message}"),
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (13)
74await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.UnableToStart(deploymentResult, subError), Logger); 183await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, "AspNetCore Module is disabled", Logger); 216Assert.Contains("InProcessWebSite.exe", Helpers.ReadAllTextFromFile(Path.Combine(deploymentResult.ContentRoot, "web.config"), Logger)); 294await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessHostfxrInvalid(deploymentResult), Logger); 357await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessHostfxrUnableToLoad(deploymentResult), Logger); 376await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessFailedToFindNativeDependencies(deploymentResult), Logger); 396await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessFailedToFindApplication(), Logger); 453await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessFailedToFindRequestHandler(deploymentResult), Logger); 459await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessFailedToFindRequestHandler(deploymentResult), Logger); 487Logger); 519Logger); 1009await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessThreadExitStdOut(deploymentResult, "12", expectedEventLogString), Logger); 1036await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessThreadExitStdOut(deploymentResult, "12", expectedEventLogString), Logger);
IIS.NewHandler.FunctionalTests (21)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (2)
46e => Logger.LogError($"Failed to remove app_offline : {e.Message}"), 89return Helpers.ReadAllTextFromFile(Helpers.GetExpectedLogName(deploymentResult, LogFolderPath), Logger);
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (6)
260EventLogHelpers.ShutdownMessage(deploymentResult), Logger); 297EventLogHelpers.ShutdownMessage(deploymentResult), Logger); 334EventLogHelpers.ShutdownMessage(deploymentResult), Logger); 418Logger.LogError($"Status code was a bad request. Content: {response.Content.ReadAsStringAsync().GetAwaiter().GetResult()}"); 428e => Logger.LogError($"Failed to create app_offline : {e.Message}"), 585e => Logger.LogError($"Failed to touch web.config : {e.Message}"),
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (13)
74await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.UnableToStart(deploymentResult, subError), Logger); 183await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, "AspNetCore Module is disabled", Logger); 216Assert.Contains("InProcessWebSite.exe", Helpers.ReadAllTextFromFile(Path.Combine(deploymentResult.ContentRoot, "web.config"), Logger)); 294await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessHostfxrInvalid(deploymentResult), Logger); 357await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessHostfxrUnableToLoad(deploymentResult), Logger); 376await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessFailedToFindNativeDependencies(deploymentResult), Logger); 396await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessFailedToFindApplication(), Logger); 453await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessFailedToFindRequestHandler(deploymentResult), Logger); 459await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessFailedToFindRequestHandler(deploymentResult), Logger); 487Logger); 519Logger); 1009await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessThreadExitStdOut(deploymentResult, "12", expectedEventLogString), Logger); 1036await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessThreadExitStdOut(deploymentResult, "12", expectedEventLogString), Logger);
IIS.NewShim.FunctionalTests (21)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (2)
46e => Logger.LogError($"Failed to remove app_offline : {e.Message}"), 89return Helpers.ReadAllTextFromFile(Helpers.GetExpectedLogName(deploymentResult, LogFolderPath), Logger);
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (6)
260EventLogHelpers.ShutdownMessage(deploymentResult), Logger); 297EventLogHelpers.ShutdownMessage(deploymentResult), Logger); 334EventLogHelpers.ShutdownMessage(deploymentResult), Logger); 418Logger.LogError($"Status code was a bad request. Content: {response.Content.ReadAsStringAsync().GetAwaiter().GetResult()}"); 428e => Logger.LogError($"Failed to create app_offline : {e.Message}"), 585e => Logger.LogError($"Failed to touch web.config : {e.Message}"),
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (13)
74await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.UnableToStart(deploymentResult, subError), Logger); 183await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, "AspNetCore Module is disabled", Logger); 216Assert.Contains("InProcessWebSite.exe", Helpers.ReadAllTextFromFile(Path.Combine(deploymentResult.ContentRoot, "web.config"), Logger)); 294await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessHostfxrInvalid(deploymentResult), Logger); 357await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessHostfxrUnableToLoad(deploymentResult), Logger); 376await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessFailedToFindNativeDependencies(deploymentResult), Logger); 396await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessFailedToFindApplication(), Logger); 453await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessFailedToFindRequestHandler(deploymentResult), Logger); 459await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessFailedToFindRequestHandler(deploymentResult), Logger); 487Logger); 519Logger); 1009await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessThreadExitStdOut(deploymentResult, "12", expectedEventLogString), Logger); 1036await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessThreadExitStdOut(deploymentResult, "12", expectedEventLogString), Logger);
IIS.ShadowCopy.Tests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (2)
46e => Logger.LogError($"Failed to remove app_offline : {e.Message}"), 89return Helpers.ReadAllTextFromFile(Helpers.GetExpectedLogName(deploymentResult, LogFolderPath), Logger);
IIS.Tests (1)
ClientDisconnectTests.cs (1)
222Logger.LogError(exception, "Unexpected exception type");
IISExpress.FunctionalTests (38)
src\Servers\IIS\IIS\test\Common.FunctionalTests\HttpsTests.cs (3)
106Logger.LogError($"Certificate is invalid. Issuer name: {cert?.Issuer}"); 109Logger.LogError($"List of current certificates in root store:"); 113Logger.LogError(otherCert.Issuer);
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\IISFunctionalTestBase.cs (2)
46e => Logger.LogError($"Failed to remove app_offline : {e.Message}"), 89return Helpers.ReadAllTextFromFile(Helpers.GetExpectedLogName(deploymentResult, LogFolderPath), Logger);
src\Servers\IIS\IIS\test\Common.FunctionalTests\LoggingTests.cs (9)
76var contents = Helpers.ReadAllTextFromFile(Helpers.GetExpectedLogName(deploymentResult, LogFolderPath), Logger); 103await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.CouldNotStartStdoutFileRedirection("Q:\\std", deploymentResult), Logger, allowMultiple: true); 172var logContents = Helpers.ReadAllTextFromFile(firstTempFile, Logger); 193await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, @"\[aspnetcorev2.dll\] Initializing logs for .*?Description: IIS ASP.NET Core Module V2", Logger); 217var contents = Helpers.ReadAllTextFromFile(Helpers.GetExpectedLogName(deploymentResult, logFolderPath), Logger); 219await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessThreadExitStdOut(deploymentResult, "12", "(.*)彡⾔(.*)"), Logger); 249await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.OutOfProcessFailedToStart(deploymentResult, "Wow!"), Logger); 265await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.OutOfProcessFailedToStart(deploymentResult, ""), Logger); 279await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.OutOfProcessFailedToStart(deploymentResult, new string('a', 30000)), Logger);
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (5)
70await EventLogHelpers.VerifyEventLogEventAsync(result, EventLogHelpers.OnlyOneAppPerAppPool(), Logger); 97await EventLogHelpers.VerifyEventLogEventAsync(result, "Mixed hosting model is not supported.", Logger); 128Helpers.CopyFiles(source, destination, Logger); 130_publishedApplication = new PublishedApplication(destination.FullName, Logger); 141_rootApplication = new PublishedApplication(Helpers.CreateEmptyApplication(config, contentRoot), Logger);
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (6)
260EventLogHelpers.ShutdownMessage(deploymentResult), Logger); 297EventLogHelpers.ShutdownMessage(deploymentResult), Logger); 334EventLogHelpers.ShutdownMessage(deploymentResult), Logger); 418Logger.LogError($"Status code was a bad request. Content: {response.Content.ReadAsStringAsync().GetAwaiter().GetResult()}"); 428e => Logger.LogError($"Failed to create app_offline : {e.Message}"), 585e => Logger.LogError($"Failed to touch web.config : {e.Message}"),
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (13)
74await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.UnableToStart(deploymentResult, subError), Logger); 183await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, "AspNetCore Module is disabled", Logger); 216Assert.Contains("InProcessWebSite.exe", Helpers.ReadAllTextFromFile(Path.Combine(deploymentResult.ContentRoot, "web.config"), Logger)); 294await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessHostfxrInvalid(deploymentResult), Logger); 357await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessHostfxrUnableToLoad(deploymentResult), Logger); 376await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessFailedToFindNativeDependencies(deploymentResult), Logger); 396await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessFailedToFindApplication(), Logger); 453await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessFailedToFindRequestHandler(deploymentResult), Logger); 459await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessFailedToFindRequestHandler(deploymentResult), Logger); 487Logger); 519Logger); 1009await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessThreadExitStdOut(deploymentResult, "12", expectedEventLogString), Logger); 1036await EventLogHelpers.VerifyEventLogEventAsync(deploymentResult, EventLogHelpers.InProcessThreadExitStdOut(deploymentResult, "12", expectedEventLogString), Logger);
InMemory.FunctionalTests (24)
Http2\Http2TestBase.cs (3)
181Logger.LogInformation(0, ex, "ConnectionContext.Abort() was called. Completing _pair.Application.Output."); 1329Logger.LogInformation("Waiting for Connection task"); 1331Logger.LogInformation("Stopping Connection From ConnectionErrorAsync");
Http3\Http3ConnectionTests.cs (3)
509Logger.LogInformation($"Iteration {i}"); 543Logger.LogInformation($"Iteration {i}"); 813Logger.LogInformation($"Received notification that stream {index} disposed.");
Http3\Http3TimeoutTests.cs (2)
645Logger.LogInformation("Sending first request"); 656Logger.LogInformation("Sending second request");
HttpsTests.cs (1)
99Logger.LogTrace(ex, "AuthenticateAsClientAsync Exception");
KestrelMetricsTests.cs (15)
230Logger.LogInformation("Waiting for notification feature"); 239Logger.LogInformation("ConnectionClosedRequested"); 243Logger.LogInformation("Waiting for connection close request."); 246Logger.LogInformation("Receiving data and closing connection."); 256Logger.LogInformation("Finishing shutting down."); 289Logger.LogInformation("Server request delegate finishing."); 295Logger.LogInformation("Connection closed raised."); 307Logger.LogInformation("Shutting down server."); 775Logger.LogInformation("Server aborting request."); 812Logger.LogInformation("Client sending request."); 815Logger.LogInformation("Client validating response status code."); 818Logger.LogInformation("Client reading response until end."); 824Logger.LogInformation("Start server shutdown. The connection should be closed because it has no active requests."); 828Logger.LogInformation("Waiting for measurement."); 831Logger.LogInformation("Asserting metrics.");
Interop.FunctionalTests (53)
H2SpecTests.cs (1)
53await H2SpecCommands.RunTest(testCase.Id, host.GetPort(), testCase.Https, Logger);
Http3\Http3RequestTests.cs (50)
462Logger.LogInformation("Server received cancellation"); 468Logger.LogInformation("Server reading content"); 474Logger.LogInformation("Server waiting for cancellation"); 498Logger.LogInformation("Client sending request headers"); 501Logger.LogInformation("Client sending request content"); 505Logger.LogInformation("Client waiting until content is read on server"); 508Logger.LogInformation("Client cancelling"); 568Logger.LogInformation("Client sending request headers"); 601Logger.LogInformation("Server writing content."); 606Logger.LogInformation("Server aborting."); 617Logger.LogInformation($"Client sending request {i}"); 631Logger.LogInformation($"Client awaiting response {i}"); 634Logger.LogInformation($"Client awaiting content {i}"); 956}, Logger); 978Logger.LogInformation("Server received request aborted."); 986Logger.LogInformation("Server reading request body."); 989Logger.LogInformation("Server writing response body."); 996Logger.LogInformation("Server waiting for cancellation."); 1033Logger.LogInformation("Client reading response."); 1036Logger.LogInformation("Client canceled request."); 1081Logger.LogInformation("Server reading request body."); 1090Logger.LogInformation("Server writing response body."); 1120Logger.LogInformation("Client sending headers."); 1123Logger.LogInformation("Client waiting for headers."); 1127Logger.LogInformation("Client writing request."); 1133Logger.LogInformation("Client canceled request."); 1264Logger.LogInformation("Client waiting for headers."); 1268Logger.LogInformation("Client canceled request."); 1296Logger.LogInformation("Server received request aborted."); 1327Logger.LogInformation("Client canceled request."); 1351Logger.LogInformation($"Server trailer count: {feature.Trailers.Count}"); 1381Logger.LogInformation($"Client trailer count: {response.TrailingHeaders.Count()}"); 1526Logger.LogInformation($"Server received request {requestCount}"); 1549Logger.LogInformation("Client sending request 1"); 1563Logger.LogInformation("Client sending request 2"); 1730Logger.LogInformation("Disposing client."); 1734Logger.LogInformation("Waiting for server to receive connection close."); 1829Logger.LogInformation("Sending request after connection abort."); 1916Logger.LogInformation($"Started waiting for logs: {message}"); 1923Logger.LogInformation($"Successfully received logs: {message}"); 2005Logger.LogInformation("Server sending response headers"); 2008Logger.LogInformation("Server reading"); 2057Logger.LogInformation("Stopping host"); 2069Logger.LogInformation("Getting read task"); 2073Logger.LogInformation("Waiting for error from read task"); 2121Logger.LogInformation("Server sending response headers"); 2124Logger.LogInformation("Server reading"); 2127Logger.LogInformation("Server writing"); 2157Logger.LogInformation("Stopping host"); 2163Logger.LogInformation("Client completing request stream");
Http3\Http3TlsTests.cs (2)
203Logger.LogInformation(ex, "SendAsync successfully threw error."); 284}, Logger);
Microsoft.AspNetCore.BrowserTesting (2)
BrowserTestBase.cs (2)
32_output = new BrowserTestOutputLogger(Logger); 75_output = new BrowserTestOutputLogger(Logger);
Microsoft.AspNetCore.FunctionalTests (4)
WebHostFunctionalTests.cs (4)
165var response = await RetryHelper.RetryRequest(() => deploymentResult.HttpClient.GetAsync(string.Empty), Logger, deploymentResult.HostShutdownToken, retryCount: 5); 177Logger.LogWarning(response.ToString()); 178Logger.LogWarning(responseText); 223await assertAction(deploymentResult, Logger);
Microsoft.AspNetCore.Hosting.Tests (13)
HostingApplicationDiagnosticsTests.cs (7)
41timeoutTokenSource.Token.Register(() => Logger.LogError("Timeout while waiting for counter value.")); 66Logger.LogInformation("Act/Assert 1"); 67Logger.LogInformation(nameof(HostingApplication.CreateContext)); 76Logger.LogInformation(nameof(HostingApplication.DisposeContext)); 97Logger.LogInformation("Act/Assert 2"); 98Logger.LogInformation(nameof(HostingApplication.CreateContext)); 110Logger.LogInformation(nameof(HostingApplication.DisposeContext));
Internal\HostingEventSourceTests.cs (6)
194timeoutTokenSource.Token.Register(() => Logger.LogError("Timeout while waiting for counter value.")); 207Logger.LogInformation(nameof(HostingEventSource.RequestStart)); 214Logger.LogInformation(nameof(HostingEventSource.RequestStop)); 221Logger.LogInformation(nameof(HostingEventSource.RequestStart)); 228Logger.LogInformation(nameof(HostingEventSource.RequestFailed)); 230Logger.LogInformation(nameof(HostingEventSource.RequestStop));
Microsoft.AspNetCore.InternalTesting (1)
LoggedTest\LoggedTestBase.cs (1)
127Logger.LogError(exception, "Test threw an exception.");
Microsoft.AspNetCore.InternalTesting.Tests (13)
LoggedTestXunitTests.cs (13)
27Assert.NotNull(Logger); 37Assert.NotNull(Logger); 48Assert.NotNull(Logger); 58Assert.NotNull(Logger); 70Logger.LogInformation("Information"); 71Logger.LogDebug("Debug"); 81Logger.LogDebug("Debug"); 82Logger.LogTrace("Trace"); 94Logger.LogInformation("Information"); 95Logger.LogDebug("Debug"); 139Logger.LogInformation("Information"); 148using (Logger.BeginScope("Scope")) { } 158Logger.LogTrace("Trace");
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
HeartbeatTests.cs (4)
46Logger.LogInformation($"Heartbeat split: {split.TotalMilliseconds}ms"); 54Logger.LogInformation("Extra OnHeartbeat call()."); 59Logger.LogInformation($"Heartbeat run {heartbeatCallCount} times. Notifying test."); 71Logger.LogInformation($"Starting heartbeat dispose.");
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (41)
QuicConnectionContextTests.cs (16)
523var stream1 = await QuicTestHelpers.CreateAndCompleteBidirectionalStreamGracefully(clientConnection, serverConnection, Logger); 535var stream2 = await QuicTestHelpers.CreateAndCompleteBidirectionalStreamGracefully(clientConnection, serverConnection, Logger); 585streamTasks.Add(SendStream(Logger, streamIndex: i, requestState)); 588Logger.LogInformation("Waiting for all connections to be received by the server."); 592Logger.LogInformation("Waiting for all stream tasks."); 594Logger.LogInformation("Stream tasks finished."); 676Logger.LogInformation("Client starting stream 1"); 680Logger.LogInformation("Server accept stream 1"); 683Logger.LogInformation("Server reading stream 1"); 694Logger.LogInformation("Server complete stream 1"); 698Logger.LogInformation("Server disposing stream 1"); 704Logger.LogInformation("Client starting stream 2"); 708Logger.LogInformation("Server accept stream 2"); 711Logger.LogInformation("Server reading stream 2"); 722Logger.LogInformation("Server complete stream 2"); 726Logger.LogInformation("Server disposing stream 2");
QuicConnectionListenerTests.cs (3)
72Logger.LogInformation("Client creating successful connection 1"); 84Logger.LogInformation("Client creating unsuccessful connection 2"); 98Logger.LogInformation("Client creating successful connection 3");
QuicStreamContextTests.cs (19)
43await QuicTestHelpers.CreateAndCompleteBidirectionalStreamGracefully(clientConnection, serverConnection, Logger); 115Logger.LogInformation("Client starting stream."); 121Logger.LogInformation("Server accepted stream."); 127Logger.LogInformation("Server writing a large response."); 131Logger.LogInformation("Server complete reading and writing."); 135Logger.LogInformation("Client wait to finish reading."); 141Logger.LogInformation("Server starts disposing."); 149Logger.LogInformation("Wait for server finish disposing."); 183Logger.LogInformation("Client starting stream."); 188Logger.LogInformation("Server accepted stream."); 196Logger.LogInformation("Client starting to read."); 199Logger.LogInformation("Server sending data."); 202Logger.LogInformation("Server completing pipes."); 206Logger.LogInformation("Client reading until end of stream."); 213Logger.LogInformation("Server waiting for send and receiving loops to complete."); 218Logger.LogInformation("Server disposing stream."); 240var stream1 = await QuicTestHelpers.CreateAndCompleteBidirectionalStreamGracefully(clientConnection, serverConnection, Logger); 241var stream2 = await QuicTestHelpers.CreateAndCompleteBidirectionalStreamGracefully(clientConnection, serverConnection, Logger); 462Logger.LogInformation("Server aborting stream");
WebHostTests.cs (3)
208}, Logger); 275}, Logger); 344}, Logger);
Microsoft.AspNetCore.SignalR.Client.Tests (1)
SendUtilsTests.cs (1)
44await SendUtils.SendMessages(new Uri("http://fakeuri.org"), application, httpClient, logger: Logger).DefaultTimeout();
Microsoft.AspNetCore.WebSockets.Tests (2)
WebSocketMiddlewareTests.cs (2)
545Logger.LogError(ex, "Unexpected error."); 612Logger.LogError(ex, "Unexpected error.");
Sockets.FunctionalTests (2)
src\Servers\Kestrel\test\FunctionalTests\UnixDomainSocketsTests.cs (2)
59Logger.LogDebug("Application receive loop ending for connection {connectionId}.", connection.ConnectionId); 70Logger.LogDebug("Graceful shutdown triggered for {connectionId}.", connection.ConnectionId);
Templates.Blazor.Tests (1)
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (1)
36_output = new TestOutputLogger(Logger);
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (1)
36_output = new TestOutputLogger(Logger);
Templates.Blazor.WebAssembly.Tests (1)
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (1)
36_output = new TestOutputLogger(Logger);
Templates.Mvc.Tests (4)
MvcTemplateTest.cs (1)
28_output = new TestOutputLogger(Logger);
RazorPagesTemplateTest.cs (1)
31_output = new TestOutputLogger(Logger);
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (1)
36_output = new TestOutputLogger(Logger);
WebApiTemplateTest.cs (1)
33_output = new TestOutputLogger(Logger);
Templates.Tests (10)
BaselineTest.cs (1)
65_output = new TestOutputLogger(Logger);
ByteOrderMarkTest.cs (1)
24_output = new TestOutputLogger(Logger);
EmptyWebTemplateTest.cs (1)
30_output = new TestOutputLogger(Logger);
GrpcTemplateTest.cs (2)
31_output = new TestOutputLogger(Logger); 100using (var serverProcess = project.StartBuiltProjectAsync(hasListeningUri: !isWindowsOld, logger: Logger))
IdentityUIPackageTest.cs (1)
31_output = new TestOutputLogger(Logger);
RazorClassLibraryTemplateTest.cs (1)
29_output = new TestOutputLogger(Logger);
src\ProjectTemplates\Shared\BlazorTemplateTest.cs (1)
36_output = new TestOutputLogger(Logger);
WebApiNativeAotTemplateTest.cs (1)
27_output = new TestOutputLogger(Logger);
WorkerTemplateTest.cs (1)
25_output = new TestOutputLogger(Logger);