1 write to Logger
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Deployers\ApplicationDeployer.cs (1)
25
Logger
= LoggerFactory.CreateLogger(GetType().FullName);
98 references to Logger
Microsoft.AspNetCore.Server.IntegrationTesting (59)
Deployers\ApplicationDeployer.cs (14)
78
_publishedApplication = publisher.Publish(DeploymentParameters,
Logger
).GetAwaiter().GetResult();
84
using (
Logger
.BeginScope("CleanPublishedOutput"))
88
Logger
.LogWarning(
119
Logger
.LogInformation("Attempting to cancel process {0}", hostProcess.Id);
125
Logger
.LogWarning("Unable to terminate the host process with process Id '{processId}", hostProcess.Id);
129
Logger
.LogInformation("Successfully terminated host process with process Id '{processId}'", hostProcess.Id);
134
Logger
.LogWarning("Host process already exited or never started successfully.");
141
ProcessHelpers.SetEnvironmentVariable(environment, "ASPNETCORE_ENVIRONMENT", DeploymentParameters.EnvironmentName,
Logger
);
142
ProcessHelpers.AddEnvironmentVariablesToProcess(startInfo, environmentVariables,
Logger
);
147
using (
Logger
.BeginScope("UserAdditionalCleanup"))
158
Logger
.LogWarning("User cleanup code failed with exception : {exception}", exception.Message);
166
Logger
.LogInformation("Host process shutting down.");
179
Logger
.LogInformation($"Deploying {DeploymentParameters}");
186
Logger
.LogInformation("[Time]: Total time taken for this test variation '{t}' seconds", _stopwatch.Elapsed.TotalSeconds);
Deployers\NginxDeployer.cs (16)
30
using (
Logger
.BeginScope("Deploy"))
74
Logger
.LogInformation("Application ready at URL: {appUrl}", uri);
84
},
Logger
, exitToken);
134
using (
Logger
.BeginScope("SetupNginx"))
148
Logger
.LogDebug("Using PID file: {pidFile}", pidFile);
149
Logger
.LogDebug("Using Error Log file: {errorLog}", pidFile);
150
Logger
.LogDebug("Using Access Log file: {accessLog}", pidFile);
151
if (
Logger
.IsEnabled(LogLevel.Trace))
153
Logger
.LogTrace($"Config File Content:{Environment.NewLine}===START CONFIG==={Environment.NewLine}{{configContent}}{Environment.NewLine}===END CONFIG===", DeploymentParameters.ServerConfigTemplateContent);
171
runNginx.StartAndCaptureOutAndErrToLogger("nginx start",
Logger
);
182
Logger
.LogWarning("Unable to find nginx PID file: {pidFile}", pidFile);
187
Logger
.LogInformation("nginx process ID {pid} started", pid);
195
using (
Logger
.BeginScope("Dispose"))
213
runNginx.StartAndCaptureOutAndErrToLogger("nginx stop",
Logger
);
215
Logger
.LogInformation("nginx stop command issued");
218
Logger
.LogDebug("Deleting config file: {configFile}", _configFile);
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (14)
75
using (
Logger
.BeginScope("Deploy"))
97
Logger
.LogInformation($"Copied the locally published folder to the file share path '{_deployedFolderPathInFileShare}'");
110
using (
Logger
.BeginScope("Dispose"))
121
Logger
.LogInformation($"Stopping the application on the server '{_deploymentParameters.ServerName}'");
126
Logger
.LogWarning(0, ex, "Failed to stop the server.");
131
Logger
.LogInformation($"Deleting the deployed folder '{_deployedFolderPathInFileShare}'");
136
Logger
.LogWarning(0, ex, $"Failed to delete the deployed folder '{_deployedFolderPathInFileShare}'.");
141
Logger
.LogInformation($"Deleting the locally published folder '{DeploymentParameters.PublishedApplicationRootPath}'");
146
Logger
.LogWarning(0, ex, $"Failed to delete the locally published folder '{DeploymentParameters.PublishedApplicationRootPath}'.");
181
if (
Logger
.IsEnabled(LogLevel.Trace))
183
Logger
.LogTrace($"Config File Content:{Environment.NewLine}===START CONFIG==={Environment.NewLine}{{configContent}}{Environment.NewLine}===END CONFIG===", webConfig.ToString());
194
using (
Logger
.BeginScope($"RunScript:{serverAction}"))
252
Logger
.LogInformation($"[{_deploymentParameters.ServerName} {serverAction} stdout]: script complete");
255
runScriptsOnRemoteServerProcess.StartAndCaptureOutAndErrToLogger(serverAction,
Logger
);
Deployers\SelfHostDeployer.cs (15)
34
using (
Logger
.BeginScope("SelfHost.Deploy"))
67
Logger
.LogInformation("Application ready at URL: {appUrl}", actualUrl);
80
using (
Logger
.BeginScope("StartSelfHost"))
119
Logger
.LogInformation($"Executing {executableName} {executableArgs}");
134
Logger
.LogInformation($"Working directory {workingDirectory}");
135
Logger
.LogInformation($"{Directory.Exists(workingDirectory)}");
136
Logger
.LogInformation($"Filename {executableName}");
137
Logger
.LogInformation($"{File.Exists(executableName)}");
138
Logger
.LogInformation($"Arguments {executableArgs}");
167
Logger
.LogInformation("host process ID {pid} shut down", HostProcess.Id);
177
HostProcess.StartAndCaptureOutAndErrToLogger(executableName,
Logger
);
181
Logger
.LogError("Error occurred while starting the process. Exception: {exception}", ex.ToString());
186
Logger
.LogError("Host process {processName} {pid} exited with code {exitCode} or failed to start.", startInfo.FileName, HostProcess.Id, HostProcess.ExitCode);
190
Logger
.LogInformation("Started {fileName}. Process Id : {processId}", startInfo.FileName, HostProcess.Id);
207
using (
Logger
.BeginScope("SelfHost.Dispose"))
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (39)
IISDeployer.cs (16)
75
using (
Logger
.BeginScope("Deployment"))
79
Logger
.LogInformation(Environment.OSVersion.ToString());
116
Logger
.LogInformation("Successfully finished IIS application directory setup.");
191
Logger
.LogInformation($"Debug log file {file} found but was empty");
197
Logger
.LogInformation(line);
215
using (
Logger
.BeginScope("StartIIS"))
232
Logger
.LogInformation("W3SVC status " + serviceController.Status);
237
Logger
.LogInformation("Starting W3SVC");
259
Logger
.LogInformation($"Starting pool, state: {state}");
265
Logger
.LogInformation($"Starting site, state: {state}");
289
Logger
.LogInformation("Site has started.");
327
Logger
.LogWarning($"Name of redirected file: {redirectedFilePath}");
339
Logger
.LogInformation("applicationhost.config path {configPath}", _configPath);
394
Logger
.LogInformation($"Stopping site, state: {state}");
404
Logger
.LogInformation($"Stopping pool, state: {state}");
447
Logger
.LogInformation($"Site has stopped successfully.");
IISExpressDeployer.cs (23)
45
using (
Logger
.BeginScope("Deployment"))
50
Logger
.LogInformation(Environment.OSVersion.ToString());
84
Logger
.LogInformation("Executing: {exe} {args}", executableName, executableArgs);
89
Logger
.LogInformation("ContentRoot: {path}", DeploymentParameters.ApplicationPath);
98
Logger
.LogInformation("Application ready at URL: {appUrl}", actualUri);
154
using (
Logger
.BeginScope("StartIISExpress"))
167
Logger
.LogInformation("Attempting to start IIS Express on port: {port}", port);
174
Logger
.LogInformation("Executing command : {iisExpress} {parameters}", iisExpressPath, parameters);
223
Logger
.LogInformation("iisexpress Process {pid} shut down", process.Id);
230
process.StartAndCaptureOutAndErrToLogger("iisexpress",
Logger
);
231
Logger
.LogInformation("iisexpress Process {pid} started", process.Id);
235
Logger
.LogError("Host process {processName} {pid} exited with code {exitCode} or failed to start.", startInfo.FileName, process.Id, process.ExitCode);
245
Logger
.LogInformation("iisexpress Process {pid} failed to bind to port {port}, trying again", process.Id, port);
262
Logger
.LogInformation("Started iisexpress successfully. Process Id : {processId}, Port: {port}", _hostProcess.Id, port);
268
Logger
.LogError(message);
309
Logger
.LogDebug("Saving Config to {configPath}", DeploymentParameters.ServerConfigLocation);
401
using (
Logger
.BeginScope("Dispose"))
416
Logger
.LogDebug("Deleting applicationHost.config file from {configLocation}", DeploymentParameters.ServerConfigLocation);
424
Logger
.LogWarning("Failed to delete '{config}'. Exception : {exception}", DeploymentParameters.ServerConfigLocation, exception.Message);
490
Logger
.LogInformation($"Sending shutdown request to {pid}");
497
Logger
.LogDebug($"EnumWindow returned {ptr} belonging to {windowProcessId}");
514
Logger
.LogDebug($"Skipping window {ptr} with class name {className}");
565
Logger
.LogWarning($"IISExpress exit code is non-zero after graceful shutdown. Exit code: {hostProcess.ExitCode}");