1 write to _logger
aspire (1)
Layout\LayoutDiscovery.cs (1)
44_logger = logger;
41 references to _logger
aspire (41)
Layout\LayoutDiscovery.cs (41)
60_logger.LogDebug("Found ASPIRE_LAYOUT_PATH: {Path}", envLayoutPath); 72_logger.LogDebug("Discovered layout relative to CLI: {Path}", relativeLayout.LayoutPath); 87_logger.LogDebug("Discovered layout in Aspire home: {Path}", aspireHomeLayout.LayoutPath); 91_logger.LogDebug("No bundle layout discovered"); 104_logger.LogDebug(ex, "TryDiscoverAspireHomeLayout: could not resolve Aspire home directory"); 113_logger.LogDebug("TryDiscoverAspireHomeLayout: Checking Aspire home {Path}...", aspireHome); 144_logger.LogDebug("SDK mode forced via {EnvVar}", BundleDiscovery.UseGlobalDotNetEnvVar); 160_logger.LogDebug("TryLoadLayoutFromPath: {Path}", layoutPath); 164_logger.LogDebug("Layout path does not exist: {Path}", layoutPath); 168_logger.LogDebug("Layout path exists, checking directory structure..."); 174_logger.LogDebug("Layout directory contents: {Contents}", string.Join(", ", entries)); 178_logger.LogDebug("Could not list directory contents: {Error}", ex.Message); 190_logger.LogDebug("TryDiscoverRelativeLayout: ProcessPath is null or empty"); 194var resolvedCliPath = CliPathHelper.ResolveSymlinkOrOriginalPath(cliPath, _logger); 197_logger.LogDebug("TryDiscoverRelativeLayout: Resolved CLI path {RawPath} -> {ResolvedPath}", cliPath, resolvedCliPath); 205_logger.LogDebug("TryDiscoverRelativeLayout: No layout found relative to resolved CLI path; trying raw path {Path}.", cliPath); 216_logger.LogDebug("TryDiscoverRelativeLayout: Could not get directory from process path {Path}", cliPath); 220_logger.LogDebug("TryDiscoverRelativeLayout: CLI at {Path}, checking for layout...", cliDir); 236_logger.LogDebug("TryDiscoverRelativeLayout: Checking parent directory {Path}...", parentDir); 258_logger.LogDebug("TryInferLayout: Checking layout at {Path}", layoutPath); 259_logger.LogDebug(" {Dir}/{Managed}/: {Exists}", BundleDiscovery.BundleDirectoryName, BundleDiscovery.ManagedDirectoryName, Directory.Exists(bundleManagedPath) ? "exists" : "MISSING"); 260_logger.LogDebug(" {Dir}/{Dashboard}/: {Exists}", BundleDiscovery.BundleDirectoryName, BundleDiscovery.DashboardDirectoryName, Directory.Exists(bundleDashboardPath) ? "exists" : "MISSING"); 261_logger.LogDebug(" {Dir}/{Dcp}/: {Exists}", BundleDiscovery.BundleDirectoryName, BundleDiscovery.DcpDirectoryName, Directory.Exists(bundleDcpPath) ? "exists" : "MISSING"); 267_logger.LogDebug(" {Dir}/{Managed}/{Exe}: {Exists}", BundleDiscovery.BundleDirectoryName, BundleDiscovery.ManagedDirectoryName, managedExeName, File.Exists(bundleManagedExe) ? "exists" : "MISSING"); 268_logger.LogDebug(" {Dir}/{Dashboard}/{Exe}: {Exists}", BundleDiscovery.BundleDirectoryName, BundleDiscovery.DashboardDirectoryName, dashboardExeName, File.Exists(bundleDashboardExe) ? "exists" : "MISSING"); 269_logger.LogDebug(" {Dir}/{Dcp}/{Exe}: {Exists}", BundleDiscovery.BundleDirectoryName, BundleDiscovery.DcpDirectoryName, Path.GetFileName(bundleDcpExe), File.Exists(bundleDcpExe) ? "exists" : "MISSING"); 273_logger.LogDebug("TryInferLayout: New bundle/ layout is valid"); 293_logger.LogDebug(" {Dir}/: {Exists}", BundleDiscovery.ManagedDirectoryName, Directory.Exists(managedPath) ? "exists" : "MISSING"); 294_logger.LogDebug(" {Dir}/: {Exists}", BundleDiscovery.DashboardDirectoryName, Directory.Exists(dashboardPath) ? "exists" : "MISSING"); 295_logger.LogDebug(" {Dir}/: {Exists}", BundleDiscovery.DcpDirectoryName, Directory.Exists(dcpPath) ? "exists" : "MISSING"); 299_logger.LogDebug("TryInferLayout: Layout rejected - missing required directories"); 306_logger.LogDebug(" managed/{ManagedExe}: {Exists}", managedExeName, File.Exists(managedExePath) ? "exists" : "MISSING"); 307_logger.LogDebug(" dashboard/{DashboardExe}: {Exists}", dashboardExeName, File.Exists(dashboardExePath) ? "exists" : "MISSING"); 308_logger.LogDebug(" dcp/{DcpExe}: {Exists}", Path.GetFileName(dcpExePath), File.Exists(dcpExePath) ? "exists" : "MISSING"); 312_logger.LogDebug("TryInferLayout: Layout rejected - required executable not found"); 316_logger.LogDebug("TryInferLayout: Flat layout is valid"); 333_logger.LogDebug("DCP path override from {EnvVar}", BundleDiscovery.DcpPathEnvVar); 337_logger.LogDebug("Managed path override from {EnvVar}", BundleDiscovery.ManagedPathEnvVar); 349_logger.LogDebug("Layout validation failed: aspire-managed not found at {Path}", managedPath); 356_logger.LogDebug("Layout validation failed: Dashboard not found at {Path}", dashboardPath); 366_logger.LogDebug("Layout validation failed: DCP not found");