119 references to Logger
Aspire.Hosting (11)
ApplicationModel\ProjectResource.cs (1)
112
var logger = ctx.
Logger
;
Pipelines\DistributedApplicationPipeline.cs (8)
75
context.
Logger
.LogInformation("Initializing deployment for environment '{EnvironmentName}'", hostEnvironment.EnvironmentName);
82
context.
Logger
.LogInformation("Deployment state will be loaded from: {StateFilePath}", stateFilePath);
107
context.
Logger
.LogInformation("User declined to clear deployment state. Canceling pipeline execution.");
112
context.
Logger
.LogInformation("Clearing deployment state due to --clear-cache flag.");
122
context.
Logger
.LogInformation("Setting default deploy tag '{Tag}' for compute resource(s).", uniqueDeployTag);
243
context.
Logger
,
917
stepContext.
Logger
.LogError(ex, "Step '{StepName}' failed.", step.Name);
1027
stepContext.
Logger
.LogError(ex, "Step '{StepName}' failed.", step.Name);
Pipelines\PipelineStepHelpers.cs (2)
35
context.
Logger
,
42
context.
Logger
.LogInformation("Skipping push for resource '{ResourceName}' - destination is {Destination}, not Registry",
Aspire.Hosting.Azure (6)
AzureBicepResource.cs (2)
322
context.
Logger
.LogDebug("Resource {ResourceName} is excluded from publish. Skipping provisioning.", resource.Name);
330
context.
Logger
.LogDebug("Resource {ResourceName} is already provisioned. Skipping provisioning.", resource.Name);
AzureEnvironmentResource.cs (4)
192
context.
Logger
,
308
context.
Logger
.LogInformation(" {Type}: {Name}", shortType, name);
320
context.
Logger
.LogWarning(ex, "Failed to enumerate resources in resource group '{ResourceGroupName}'", resourceGroupName);
352
context.
Logger
.LogInformation("User canceled the destroy operation.");
Aspire.Hosting.Azure.Kubernetes (10)
AzureKubernetesEnvironmentResource.AksPipeline.cs (10)
266
=> (AzCommandRunnerForTesting ?? RunAzCommandAsync)(path, arguments, context.
Logger
);
273
context.
Logger
,
291
context.
Logger
.LogInformation(
308
context.
Logger
.LogInformation(
333
context.
Logger
.LogInformation(
532
context.
Logger
.LogWarning(
557
kubeConfigPath, context.
Logger
, TimeSpan.FromMinutes(10),
612
context.
Logger
.LogDebug("kubectl: {Line}", line);
617
context.
Logger
.LogDebug("kubectl: {Line}", line);
641
context.
Logger
.LogInformation(
Aspire.Hosting.Azure.Sandboxes (14)
AzureSandboxContainerDeployment.cs (14)
484
context.
Logger
.LogWarning(
549
context.
Logger
.LogWarning(
564
return new AzureDevComputeClient(httpClientFactory.CreateClient(), tokenCredentialProvider.TokenCredential, context.
Logger
);
1075
Logger = context.
Logger
1146
Logger = context.
Logger
1332
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.");
1658
context.
Logger
.LogWarning(ex, "Failed to list existing sandbox deployments labeled for resource '{ResourceName}'.", resourceName);
1680
context.
Logger
.LogWarning(ex, "Failed to list existing sandbox disk images labeled for resource '{ResourceName}'.", resourceName);
1728
context.
Logger
.LogWarning(ex, "Failed to list sandboxes while reconciling failed deployment '{DeployId}'.", deployId);
1749
context.
Logger
.LogWarning(ex, "Failed to list disk images while reconciling failed deployment '{DeployId}'.", deployId);
1813
context.
Logger
.LogWarning(
2251
context.
Logger
.LogWarning(ex, "Failed to remove sandbox port {Port} from sandbox '{SandboxId}'.", port, sandboxId);
2264
context.
Logger
.LogWarning(ex, "Failed to delete sandbox '{SandboxId}'.", sandboxId);
2298
context.
Logger
.LogWarning(ex, "Failed to delete sandbox disk image '{DiskImageId}'.", diskImageId);
Aspire.Hosting.Docker (4)
DockerComposeEnvironmentResource.cs (3)
281
context.
Logger
,
540
context.
Logger
.LogInformation("User canceled the destroy operation.");
556
var envFile = EnvFile.Create(envFilePath, context.
Logger
);
DockerComposeServiceResource.cs (1)
343
? ParseServiceEndpoints(services, externalEndpointMappings, context.
Logger
)
Aspire.Hosting.EntityFrameworkCore (1)
EFResourceBuilderExtensions.cs (1)
358
var logger = stepContext.
Logger
;
Aspire.Hosting.Foundry (6)
HostedAgent\AzureHostedAgentResource.cs (5)
115
EnvironmentVariables = await GetResolvedEnvironmentVariablesAsync(context.ExecutionContext, this, Target, context.
Logger
, context.CancellationToken).ConfigureAwait(false),
244
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);
251
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);
277
context.
Logger
.LogInformation("Assigned Foundry User role to hosted agent '{Name}' identity '{PrincipalId}'.", Name, principalId);
281
context.
Logger
.LogWarning(
Toolbox\FoundryToolboxResource.cs (1)
80
message => stepContext.
Logger
.LogWarning("{Message}", message),
Aspire.Hosting.Kubernetes (63)
CertManagerExtensions.cs (11)
440
var manifest = await BuildClusterIssuerManifestAsync(context.Model, certManager, issuer, context.
Logger
, context.CancellationToken)
443
context.
Logger
.LogInformation(
468
OnOutputData = line => context.
Logger
.LogDebug("kubectl: {Line}", line),
472
context.
Logger
.LogDebug("kubectl: {Line}", line);
487
context.
Logger
.LogInformation("ClusterIssuer '{IssuerName}' applied.", issuer.Name);
505
context.
Logger
.LogInformation(
514
context.
Logger
.LogInformation(
533
OnOutputData = line => context.
Logger
.LogDebug("kubectl: {Line}", line),
537
context.
Logger
.LogDebug("kubectl: {Line}", line);
549
context.
Logger
.LogWarning(
558
context.
Logger
.LogInformation("ClusterIssuer '{IssuerName}' deleted.", issuer.Name);
Deployment\HelmDeploymentEngine.cs (14)
195
ctx.
Logger
.LogInformation(
253
context.
Logger
.LogDebug("No values.yaml found at {Path}, skipping prepare step.", valuesFilePath);
463
context.
Logger
.LogDebug("Running helm {Arguments}", arguments);
470
onOutputData: output => context.
Logger
.LogDebug("helm (stdout): {Output}", output),
474
context.
Logger
.LogDebug("helm (stderr): {Error}", error);
529
var endpoints = await GetServiceEndpointsAsync(computeResource.Name.ToServiceName(), @namespace, environment.KubeConfigPath, context.
Logger
, context.CancellationToken).ConfigureAwait(false);
535
context.
Logger
.LogInformation("Resource {ResourceName}: {Endpoints}", computeResource.Name, endpointText);
539
context.
Logger
.LogDebug("No external endpoints found for {ResourceName}", computeResource.Name);
544
context.
Logger
.LogWarning(ex, "Failed to retrieve endpoints for {ResourceName}", computeResource.Name);
627
context.
Logger
.LogDebug("Running helm {Arguments}", arguments);
631
onOutputData: output => context.
Logger
.LogDebug("helm (stdout): {Output}", output),
632
onErrorData: error => context.
Logger
.LogDebug("helm (stderr): {Error}", error),
665
context.
Logger
.LogInformation(
700
context.
Logger
.LogInformation("User canceled the destroy operation.");
KubernetesEnvironmentResource.cs (37)
415
context.
Logger
,
1432
context.
Logger
.LogInformation(
1454
context.
Logger
.LogInformation(
1464
context.
Logger
.LogWarning(
1506
OnOutputData = line => context.
Logger
.LogDebug("{Line}", line),
1507
OnErrorData = line => context.
Logger
.LogDebug("{Line}", line)
1515
context.
Logger
.LogWarning(
1575
context.
Logger
.LogInformation("TLS secret '{SecretName}' already exists, skipping bootstrap.", secretName);
1580
context.
Logger
.LogInformation("Creating bootstrap TLS secret '{SecretName}' for '{Hostname}'.", secretName, hostname);
1611
OnOutputData = line => context.
Logger
.LogDebug("{Line}", line),
1612
OnErrorData = line => context.
Logger
.LogDebug("{Line}", line)
1620
context.
Logger
.LogWarning("Failed to create bootstrap TLS secret '{SecretName}' (exit code {ExitCode}).", secretName, createExitResult.ExitCode);
1624
context.
Logger
.LogInformation(
1633
DeleteTempDirSafely(tempDir, context.
Logger
);
1680
context.
Logger
.LogDebug(
1879
OnErrorData = line => context.
Logger
.LogDebug("{Line}", line)
1891
context.
Logger
.LogDebug("Gateway '{GatewayName}' not found or unreadable; skipping field-ownership cleanup.", gatewayName);
1906
context.
Logger
.LogDebug(ex, "Could not parse Gateway '{GatewayName}' JSON for field-ownership cleanup.", gatewayName);
1943
OnOutputData = line => context.
Logger
.LogDebug("{Line}", line),
1944
OnErrorData = line => context.
Logger
.LogDebug("{Line}", line)
1952
context.
Logger
.LogInformation(
1963
context.
Logger
.LogDebug(
1971
DeleteTempDirSafely(patchTempDir, context.
Logger
);
2063
context.
Logger
.LogDebug("Could not read Gateway for field ownership transfer.");
2124
OnOutputData = line => context.
Logger
.LogDebug("{Line}", line),
2125
OnErrorData = line => context.
Logger
.LogDebug("{Line}", line)
2133
context.
Logger
.LogDebug(
2142
DeleteTempDirSafely(tempDir, context.
Logger
);
2147
context.
Logger
.LogDebug(ex, "Failed to parse Gateway JSON for field ownership transfer.");
2177
context.
Logger
.LogDebug(
2212
context.
Logger
.LogInformation("TLS secret '{SecretName}' already exists, skipping bootstrap.", secretName);
2217
context.
Logger
.LogInformation("Creating bootstrap TLS secret '{SecretName}' for '{Hostname}'.", secretName, hostname);
2248
OnOutputData = line => context.
Logger
.LogDebug("{Line}", line),
2249
OnErrorData = line => context.
Logger
.LogDebug("{Line}", line)
2257
context.
Logger
.LogWarning("Failed to create bootstrap TLS secret '{SecretName}' (exit code {ExitCode}).", secretName, createExitResult.ExitCode);
2261
context.
Logger
.LogInformation("Bootstrap TLS secret '{SecretName}' created for '{Hostname}'. Replace with a real cert via cert-manager or manually.", secretName, hostname);
2267
DeleteTempDirSafely(tempDir, context.
Logger
);
KubernetesHelmChartExtensions.cs (1)
392
context.
Logger
.LogInformation(
Aspire.Hosting.Radius (4)
Publishing\RadCredentialRegisterStep.cs (1)
68
var logger = context.
Logger
;
Publishing\RadiusBicepPublishingContext.cs (1)
54
var logger = context.
Logger
;
Publishing\RadiusDeploymentPipelineStep.cs (1)
103
var logger = context.
Logger
;
Publishing\SealedSecretApplyStep.cs (1)
67
var logger = context.
Logger
;