1 write to _logger
aspire (1)
Layout\LayoutDiscovery.cs (1)
44_logger = logger;
36 references to _logger
aspire (36)
Layout\LayoutDiscovery.cs (36)
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); 256_logger.LogDebug("TryInferLayout: Checking layout at {Path}", layoutPath); 257_logger.LogDebug(" {Dir}/{Managed}/: {Exists}", BundleDiscovery.BundleDirectoryName, BundleDiscovery.ManagedDirectoryName, Directory.Exists(bundleManagedPath) ? "exists" : "MISSING"); 258_logger.LogDebug(" {Dir}/{Dcp}/: {Exists}", BundleDiscovery.BundleDirectoryName, BundleDiscovery.DcpDirectoryName, Directory.Exists(bundleDcpPath) ? "exists" : "MISSING"); 263_logger.LogDebug(" {Dir}/{Managed}/{Exe}: {Exists}", BundleDiscovery.BundleDirectoryName, BundleDiscovery.ManagedDirectoryName, managedExeName, File.Exists(bundleManagedExe) ? "exists" : "MISSING"); 264_logger.LogDebug(" {Dir}/{Dcp}/{Exe}: {Exists}", BundleDiscovery.BundleDirectoryName, BundleDiscovery.DcpDirectoryName, Path.GetFileName(bundleDcpExe), File.Exists(bundleDcpExe) ? "exists" : "MISSING"); 268_logger.LogDebug("TryInferLayout: New bundle/ layout is valid"); 286_logger.LogDebug(" {Dir}/: {Exists}", BundleDiscovery.ManagedDirectoryName, Directory.Exists(managedPath) ? "exists" : "MISSING"); 287_logger.LogDebug(" {Dir}/: {Exists}", BundleDiscovery.DcpDirectoryName, Directory.Exists(dcpPath) ? "exists" : "MISSING"); 291_logger.LogDebug("TryInferLayout: Layout rejected - missing required directories"); 297_logger.LogDebug(" managed/{ManagedExe}: {Exists}", managedExeName, File.Exists(managedExePath) ? "exists" : "MISSING"); 298_logger.LogDebug(" dcp/{DcpExe}: {Exists}", Path.GetFileName(dcpExePath), File.Exists(dcpExePath) ? "exists" : "MISSING"); 302_logger.LogDebug("TryInferLayout: Layout rejected - required executable not found"); 306_logger.LogDebug("TryInferLayout: Legacy layout is valid"); 323_logger.LogDebug("DCP path override from {EnvVar}", BundleDiscovery.DcpPathEnvVar); 327_logger.LogDebug("Managed path override from {EnvVar}", BundleDiscovery.ManagedPathEnvVar); 339_logger.LogDebug("Layout validation failed: aspire-managed not found at {Path}", managedPath); 349_logger.LogDebug("Layout validation failed: DCP not found");