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