113 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, 915stepContext.Logger.LogError(ex, "Step '{StepName}' failed.", step.Name); 1025stepContext.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 (9)
AzureKubernetesEnvironmentResource.AksPipeline.cs (9)
246=> (AzCommandRunnerForTesting ?? RunAzCommandAsync)(path, arguments, context.Logger); 253context.Logger, 266context.Logger.LogInformation( 291context.Logger.LogInformation( 363context.Logger.LogWarning( 388kubeConfigPath, context.Logger, TimeSpan.FromMinutes(10), 443context.Logger.LogDebug("kubectl: {Line}", line); 448context.Logger.LogDebug("kubectl: {Line}", line); 472context.Logger.LogInformation(
Aspire.Hosting.Azure.Sandboxes (14)
AzureSandboxContainerDeployment.cs (14)
469context.Logger.LogWarning( 534context.Logger.LogWarning( 549return new AzureDevComputeClient(httpClientFactory.CreateClient(), tokenCredentialProvider.TokenCredential, context.Logger); 1040Logger = context.Logger 1111Logger = context.Logger 1290context.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."); 1579context.Logger.LogWarning(ex, "Failed to list existing sandbox deployments labeled for resource '{ResourceName}'.", resourceName); 1601context.Logger.LogWarning(ex, "Failed to list existing sandbox disk images labeled for resource '{ResourceName}'.", resourceName); 1649context.Logger.LogWarning(ex, "Failed to list sandboxes while reconciling failed deployment '{DeployId}'.", deployId); 1670context.Logger.LogWarning(ex, "Failed to list disk images while reconciling failed deployment '{DeployId}'.", deployId); 1734context.Logger.LogWarning( 2214context.Logger.LogWarning(ex, "Failed to remove sandbox port {Port} from sandbox '{SandboxId}'.", port, sandboxId); 2227context.Logger.LogWarning(ex, "Failed to delete sandbox '{SandboxId}'.", sandboxId); 2261context.Logger.LogWarning(ex, "Failed to delete sandbox disk image '{DiskImageId}'.", diskImageId);
Aspire.Hosting.Docker (4)
DockerComposeEnvironmentResource.cs (3)
281context.Logger, 512context.Logger.LogInformation("User canceled the destroy operation."); 528var 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 (5)
HostedAgent\AzureHostedAgentResource.cs (5)
119EnvironmentVariables = await GetResolvedEnvironmentVariablesAsync(context.ExecutionContext, this, Target, context.Logger, context.CancellationToken).ConfigureAwait(false), 248context.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); 255context.Logger.LogWarning("Could not resolve the Microsoft Foundry resource ID for hosted agent '{Name}'. The agent identity '{PrincipalId}' may need the Cognitive Services User role assigned manually.", Name, principalId); 281context.Logger.LogInformation("Assigned Cognitive Services User role to hosted agent '{Name}' identity '{PrincipalId}'.", Name, principalId); 285context.Logger.LogWarning(
Aspire.Hosting.Kubernetes (59)
CertManagerExtensions.cs (10)
439var manifest = await BuildClusterIssuerManifestAsync(context.Model, certManager, issuer, context.Logger, context.CancellationToken) 442context.Logger.LogInformation( 467OnOutputData = line => context.Logger.LogDebug("kubectl: {Line}", line), 471context.Logger.LogDebug("kubectl: {Line}", line); 486context.Logger.LogInformation("ClusterIssuer '{IssuerName}' applied.", issuer.Name); 505context.Logger.LogInformation( 524OnOutputData = line => context.Logger.LogDebug("kubectl: {Line}", line), 528context.Logger.LogDebug("kubectl: {Line}", line); 540context.Logger.LogWarning( 549context.Logger.LogInformation("ClusterIssuer '{IssuerName}' deleted.", issuer.Name);
Deployment\HelmDeploymentEngine.cs (12)
247context.Logger.LogDebug("No values.yaml found at {Path}, skipping prepare step.", valuesFilePath); 457context.Logger.LogDebug("Running helm {Arguments}", arguments); 464onOutputData: output => context.Logger.LogDebug("helm (stdout): {Output}", output), 468context.Logger.LogDebug("helm (stderr): {Error}", error); 523var endpoints = await GetServiceEndpointsAsync(computeResource.Name.ToServiceName(), @namespace, environment.KubeConfigPath, context.Logger, context.CancellationToken).ConfigureAwait(false); 529context.Logger.LogInformation("Resource {ResourceName}: {Endpoints}", computeResource.Name, endpointText); 533context.Logger.LogDebug("No external endpoints found for {ResourceName}", computeResource.Name); 538context.Logger.LogWarning(ex, "Failed to retrieve endpoints for {ResourceName}", computeResource.Name); 603context.Logger.LogDebug("Running helm {Arguments}", arguments); 607onOutputData: output => context.Logger.LogDebug("helm (stdout): {Output}", output), 608onErrorData: error => context.Logger.LogDebug("helm (stderr): {Error}", error), 663context.Logger.LogInformation("User canceled the destroy operation.");
KubernetesEnvironmentResource.cs (37)
411context.Logger, 1399context.Logger.LogInformation( 1421context.Logger.LogInformation( 1431context.Logger.LogWarning( 1473OnOutputData = line => context.Logger.LogDebug("{Line}", line), 1474OnErrorData = line => context.Logger.LogDebug("{Line}", line) 1482context.Logger.LogWarning( 1542context.Logger.LogInformation("TLS secret '{SecretName}' already exists, skipping bootstrap.", secretName); 1547context.Logger.LogInformation("Creating bootstrap TLS secret '{SecretName}' for '{Hostname}'.", secretName, hostname); 1578OnOutputData = line => context.Logger.LogDebug("{Line}", line), 1579OnErrorData = line => context.Logger.LogDebug("{Line}", line) 1587context.Logger.LogWarning("Failed to create bootstrap TLS secret '{SecretName}' (exit code {ExitCode}).", secretName, createExitResult.ExitCode); 1591context.Logger.LogInformation( 1600DeleteTempDirSafely(tempDir, context.Logger); 1647context.Logger.LogDebug( 1846OnErrorData = line => context.Logger.LogDebug("{Line}", line) 1858context.Logger.LogDebug("Gateway '{GatewayName}' not found or unreadable; skipping field-ownership cleanup.", gatewayName); 1873context.Logger.LogDebug(ex, "Could not parse Gateway '{GatewayName}' JSON for field-ownership cleanup.", gatewayName); 1910OnOutputData = line => context.Logger.LogDebug("{Line}", line), 1911OnErrorData = line => context.Logger.LogDebug("{Line}", line) 1919context.Logger.LogInformation( 1930context.Logger.LogDebug( 1938DeleteTempDirSafely(patchTempDir, context.Logger); 2030context.Logger.LogDebug("Could not read Gateway for field ownership transfer."); 2091OnOutputData = line => context.Logger.LogDebug("{Line}", line), 2092OnErrorData = line => context.Logger.LogDebug("{Line}", line) 2100context.Logger.LogDebug( 2109DeleteTempDirSafely(tempDir, context.Logger); 2114context.Logger.LogDebug(ex, "Failed to parse Gateway JSON for field ownership transfer."); 2144context.Logger.LogDebug( 2179context.Logger.LogInformation("TLS secret '{SecretName}' already exists, skipping bootstrap.", secretName); 2184context.Logger.LogInformation("Creating bootstrap TLS secret '{SecretName}' for '{Hostname}'.", secretName, hostname); 2215OnOutputData = line => context.Logger.LogDebug("{Line}", line), 2216OnErrorData = line => context.Logger.LogDebug("{Line}", line) 2224context.Logger.LogWarning("Failed to create bootstrap TLS secret '{SecretName}' (exit code {ExitCode}).", secretName, createExitResult.ExitCode); 2228context.Logger.LogInformation("Bootstrap TLS secret '{SecretName}' created for '{Hostname}'. Replace with a real cert via cert-manager or manually.", secretName, hostname); 2234DeleteTempDirSafely(tempDir, context.Logger);
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;