1 write to _logger
aspire (1)
Layout\LayoutDiscovery.cs (1)
44
_logger
= logger;
42 references to _logger
aspire (42)
Layout\LayoutDiscovery.cs (42)
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");
194
var 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");
274
_logger
.LogDebug("TryInferLayout: New bundle/ layout is valid");
296
_logger
.LogDebug(" {Dir}/: {Exists}", BundleDiscovery.ManagedDirectoryName, Directory.Exists(managedPath) ? "exists" : "MISSING");
297
_logger
.LogDebug(" {Dir}/: {Exists}", BundleDiscovery.DashboardDirectoryName, Directory.Exists(dashboardPath) ? "exists" : "MISSING");
298
_logger
.LogDebug(" {Dir}/: {Exists}", BundleDiscovery.DcpDirectoryName, Directory.Exists(dcpPath) ? "exists" : "MISSING");
302
_logger
.LogDebug("TryInferLayout: Layout rejected - missing required directories");
309
_logger
.LogDebug(" managed/{ManagedExe}: {Exists}", managedExeName, File.Exists(managedExePath) ? "exists" : "MISSING");
310
_logger
.LogDebug(" dashboard/{DashboardExe}: {Exists}", dashboardExeName, File.Exists(dashboardExePath) ? "exists" : "MISSING");
311
_logger
.LogDebug(" dcp/{DcpExe}: {Exists}", Path.GetFileName(dcpExePath), File.Exists(dcpExePath) ? "exists" : "MISSING");
316
_logger
.LogDebug("TryInferLayout: Layout rejected - required executable not found");
320
_logger
.LogDebug("TryInferLayout: Flat layout is valid");
350
_logger
.LogDebug("DCP path override from {EnvVar}", BundleDiscovery.DcpPathEnvVar);
354
_logger
.LogDebug("Managed path override from {EnvVar}", BundleDiscovery.ManagedPathEnvVar);
366
_logger
.LogDebug("Layout validation failed: aspire-managed not found at {Path}", managedPath);
373
_logger
.LogDebug("Layout validation failed: Dashboard not found at {Path}", dashboardPath);
380
_logger
.LogDebug("Layout validation failed: TerminalHost not found at {Path}", terminalHostPath);
390
_logger
.LogDebug("Layout validation failed: DCP not found");