120 references to Logger
Aspire.Hosting (11)
ApplicationModel\DotnetProgramPublishing.cs (1)
156
context.
Logger
,
Pipelines\DistributedApplicationPipeline.cs (8)
73
context.
Logger
.LogInformation("Initializing deployment for environment '{EnvironmentName}'", hostEnvironment.EnvironmentName);
80
context.
Logger
.LogInformation("Deployment state will be loaded from: {StateFilePath}", stateFilePath);
105
context.
Logger
.LogInformation("User declined to clear deployment state. Canceling pipeline execution.");
110
context.
Logger
.LogInformation("Clearing deployment state due to --clear-cache flag.");
120
context.
Logger
.LogInformation("Setting default deploy tag '{Tag}' for compute resource(s).", uniqueDeployTag);
197
context.
Logger
,
871
stepContext.
Logger
.LogError(ex, "Step '{StepName}' failed.", step.Name);
981
stepContext.
Logger
.LogError(ex, "Step '{StepName}' failed.", step.Name);
Pipelines\PipelineStepHelpers.cs (2)
34
context.
Logger
,
41
context.
Logger
.LogInformation("Skipping push for resource '{ResourceName}' - destination is {Destination}, not Registry",
Aspire.Hosting.Azure (6)
AzureBicepResource.cs (2)
318
context.
Logger
.LogDebug("Resource {ResourceName} is excluded from publish. Skipping provisioning.", resource.Name);
326
context.
Logger
.LogDebug("Resource {ResourceName} is already provisioned. Skipping provisioning.", resource.Name);
AzureEnvironmentResource.cs (4)
188
context.
Logger
,
304
context.
Logger
.LogInformation(" {Type}: {Name}", shortType, name);
316
context.
Logger
.LogWarning(ex, "Failed to enumerate resources in resource group '{ResourceGroupName}'", resourceGroupName);
348
context.
Logger
.LogInformation("User canceled the destroy operation.");
Aspire.Hosting.Azure.Kubernetes (10)
AzureKubernetesEnvironmentResource.AksPipeline.cs (10)
261
=> (AzCommandRunnerForTesting ?? RunAzCommandAsync)(path, arguments, context.
Logger
);
268
context.
Logger
,
286
context.
Logger
.LogInformation(
303
context.
Logger
.LogInformation(
328
context.
Logger
.LogInformation(
527
context.
Logger
.LogWarning(
552
kubeConfigPath, context.
Logger
, TimeSpan.FromMinutes(10),
607
context.
Logger
.LogDebug("kubectl: {Line}", line);
612
context.
Logger
.LogDebug("kubectl: {Line}", line);
636
context.
Logger
.LogInformation(
Aspire.Hosting.Azure.Sandboxes (14)
AzureSandboxContainerDeployment.cs (14)
482
context.
Logger
.LogWarning(
547
context.
Logger
.LogWarning(
562
return new AzureDevComputeClient(httpClientFactory.CreateClient(), tokenCredentialProvider.TokenCredential, context.
Logger
);
1073
Logger = context.
Logger
1144
Logger = context.
Logger
1330
context.
Logger
.LogWarning(ex, "Sandbox deployment state and Azure scope outputs were unavailable, so data-plane cleanup could not run before the Azure resource group cleanup.");
1656
context.
Logger
.LogWarning(ex, "Failed to list existing sandbox deployments labeled for resource '{ResourceName}'.", resourceName);
1678
context.
Logger
.LogWarning(ex, "Failed to list existing sandbox disk images labeled for resource '{ResourceName}'.", resourceName);
1726
context.
Logger
.LogWarning(ex, "Failed to list sandboxes while reconciling failed deployment '{DeployId}'.", deployId);
1747
context.
Logger
.LogWarning(ex, "Failed to list disk images while reconciling failed deployment '{DeployId}'.", deployId);
1811
context.
Logger
.LogWarning(
2249
context.
Logger
.LogWarning(ex, "Failed to remove sandbox port {Port} from sandbox '{SandboxId}'.", port, sandboxId);
2262
context.
Logger
.LogWarning(ex, "Failed to delete sandbox '{SandboxId}'.", sandboxId);
2296
context.
Logger
.LogWarning(ex, "Failed to delete sandbox disk image '{DiskImageId}'.", diskImageId);
Aspire.Hosting.Docker (4)
DockerComposeEnvironmentResource.cs (3)
279
context.
Logger
,
538
context.
Logger
.LogInformation("User canceled the destroy operation.");
554
var envFile = EnvFile.Create(envFilePath, context.
Logger
);
DockerComposeServiceResource.cs (1)
343
? ParseServiceEndpoints(services, externalEndpointMappings, context.
Logger
)
Aspire.Hosting.EntityFrameworkCore (1)
EFResourceBuilderExtensions.cs (1)
448
var logger = stepContext.
Logger
;
Aspire.Hosting.Foundry (6)
HostedAgent\AzureHostedAgentResource.cs (5)
117
EnvironmentVariables = await GetResolvedEnvironmentVariablesAsync(context.ExecutionContext, this, context.
Logger
, context.CancellationToken).ConfigureAwait(false),
246
context.
Logger
.LogWarning("Hosted agent '{Name}' version '{Version}' did not return an instance identity. The agent may not be able to access Foundry project storage.", Name, version.Version);
253
context.
Logger
.LogWarning("Could not resolve the Microsoft Foundry resource ID for hosted agent '{Name}'. The agent identity '{PrincipalId}' may need the Foundry User role assigned manually.", Name, principalId);
279
context.
Logger
.LogInformation("Assigned Foundry User role to hosted agent '{Name}' identity '{PrincipalId}'.", Name, principalId);
283
context.
Logger
.LogWarning(
Toolbox\FoundryToolboxResource.cs (1)
80
message => stepContext.
Logger
.LogWarning("{Message}", message),
Aspire.Hosting.Kubernetes (63)
CertManagerExtensions.cs (11)
438
var manifest = await BuildClusterIssuerManifestAsync(context.Model, certManager, issuer, context.
Logger
, context.CancellationToken)
441
context.
Logger
.LogInformation(
466
OnOutputData = line => context.
Logger
.LogDebug("kubectl: {Line}", line),
470
context.
Logger
.LogDebug("kubectl: {Line}", line);
485
context.
Logger
.LogInformation("ClusterIssuer '{IssuerName}' applied.", issuer.Name);
503
context.
Logger
.LogInformation(
512
context.
Logger
.LogInformation(
531
OnOutputData = line => context.
Logger
.LogDebug("kubectl: {Line}", line),
535
context.
Logger
.LogDebug("kubectl: {Line}", line);
547
context.
Logger
.LogWarning(
556
context.
Logger
.LogInformation("ClusterIssuer '{IssuerName}' deleted.", issuer.Name);
Deployment\HelmDeploymentEngine.cs (14)
192
ctx.
Logger
.LogInformation(
250
context.
Logger
.LogDebug("No values.yaml found at {Path}, skipping prepare step.", valuesFilePath);
460
context.
Logger
.LogDebug("Running helm {Arguments}", arguments);
467
onOutputData: output => context.
Logger
.LogDebug("helm (stdout): {Output}", output),
471
context.
Logger
.LogDebug("helm (stderr): {Error}", error);
526
var endpoints = await GetServiceEndpointsAsync(computeResource.Name.ToServiceName(), @namespace, environment.KubeConfigPath, context.
Logger
, context.CancellationToken).ConfigureAwait(false);
532
context.
Logger
.LogInformation("Resource {ResourceName}: {Endpoints}", computeResource.Name, endpointText);
536
context.
Logger
.LogDebug("No external endpoints found for {ResourceName}", computeResource.Name);
541
context.
Logger
.LogWarning(ex, "Failed to retrieve endpoints for {ResourceName}", computeResource.Name);
624
context.
Logger
.LogDebug("Running helm {Arguments}", arguments);
628
onOutputData: output => context.
Logger
.LogDebug("helm (stdout): {Output}", output),
629
onErrorData: error => context.
Logger
.LogDebug("helm (stderr): {Error}", error),
662
context.
Logger
.LogInformation(
697
context.
Logger
.LogInformation("User canceled the destroy operation.");
KubernetesEnvironmentResource.cs (37)
415
context.
Logger
,
1469
context.
Logger
.LogInformation(
1491
context.
Logger
.LogInformation(
1501
context.
Logger
.LogWarning(
1543
OnOutputData = line => context.
Logger
.LogDebug("{Line}", line),
1544
OnErrorData = line => context.
Logger
.LogDebug("{Line}", line)
1552
context.
Logger
.LogWarning(
1612
context.
Logger
.LogInformation("TLS secret '{SecretName}' already exists, skipping bootstrap.", secretName);
1617
context.
Logger
.LogInformation("Creating bootstrap TLS secret '{SecretName}' for '{Hostname}'.", secretName, hostname);
1648
OnOutputData = line => context.
Logger
.LogDebug("{Line}", line),
1649
OnErrorData = line => context.
Logger
.LogDebug("{Line}", line)
1657
context.
Logger
.LogWarning("Failed to create bootstrap TLS secret '{SecretName}' (exit code {ExitCode}).", secretName, createExitResult.ExitCode);
1661
context.
Logger
.LogInformation(
1670
DeleteTempDirSafely(tempDir, context.
Logger
);
1717
context.
Logger
.LogDebug(
1916
OnErrorData = line => context.
Logger
.LogDebug("{Line}", line)
1928
context.
Logger
.LogDebug("Gateway '{GatewayName}' not found or unreadable; skipping field-ownership cleanup.", gatewayName);
1943
context.
Logger
.LogDebug(ex, "Could not parse Gateway '{GatewayName}' JSON for field-ownership cleanup.", gatewayName);
1980
OnOutputData = line => context.
Logger
.LogDebug("{Line}", line),
1981
OnErrorData = line => context.
Logger
.LogDebug("{Line}", line)
1989
context.
Logger
.LogInformation(
2000
context.
Logger
.LogDebug(
2008
DeleteTempDirSafely(patchTempDir, context.
Logger
);
2100
context.
Logger
.LogDebug("Could not read Gateway for field ownership transfer.");
2161
OnOutputData = line => context.
Logger
.LogDebug("{Line}", line),
2162
OnErrorData = line => context.
Logger
.LogDebug("{Line}", line)
2170
context.
Logger
.LogDebug(
2179
DeleteTempDirSafely(tempDir, context.
Logger
);
2184
context.
Logger
.LogDebug(ex, "Failed to parse Gateway JSON for field ownership transfer.");
2214
context.
Logger
.LogDebug(
2249
context.
Logger
.LogInformation("TLS secret '{SecretName}' already exists, skipping bootstrap.", secretName);
2254
context.
Logger
.LogInformation("Creating bootstrap TLS secret '{SecretName}' for '{Hostname}'.", secretName, hostname);
2285
OnOutputData = line => context.
Logger
.LogDebug("{Line}", line),
2286
OnErrorData = line => context.
Logger
.LogDebug("{Line}", line)
2294
context.
Logger
.LogWarning("Failed to create bootstrap TLS secret '{SecretName}' (exit code {ExitCode}).", secretName, createExitResult.ExitCode);
2298
context.
Logger
.LogInformation("Bootstrap TLS secret '{SecretName}' created for '{Hostname}'. Replace with a real cert via cert-manager or manually.", secretName, hostname);
2304
DeleteTempDirSafely(tempDir, context.
Logger
);
KubernetesHelmChartExtensions.cs (1)
389
context.
Logger
.LogInformation(
Aspire.Hosting.Radius (5)
Publishing\RadCredentialRegisterStep.cs (1)
65
var logger = context.
Logger
;
Publishing\RadiusBicepPublishingContext.cs (1)
51
var logger = context.
Logger
;
Publishing\RadiusDeploymentPipelineStep.cs (1)
508
var logger = context.
Logger
;
Publishing\SealedSecretApplyStep.cs (1)
63
var logger = context.
Logger
;
RadiusEnvironmentResource.cs (1)
85
Action = stepContext => RadiusDeploymentPipelineStep.VerifyControlPlaneVersionAsync(stepContext.
Logger
, stepContext.CancellationToken),