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