1 write to Logger
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Deployers\ApplicationDeployer.cs (1)
25
Logger
= LoggerFactory.CreateLogger(GetType().FullName);
59 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"))