1 write to _logger
aspire (1)
Commands\AgentMcpCommand.cs (1)
62_logger = logger;
22 references to _logger
aspire (22)
Commands\AgentMcpCommand.cs (22)
127_logger.LogWarning(ex, "Failed to index aspire.dev documentation in background"); 144_logger.LogDebug("MCP ListTools request received"); 175_logger.LogDebug(ex, "Failed to aggregate resource MCP tools"); 178_logger.LogDebug("Returning {ToolCount} tools", tools.Count); 187_logger.LogDebug("MCP CallTool request received for tool: {ToolName}", toolName); 235if (_logger.IsEnabled(LogLevel.Debug)) 237_logger.LogDebug("Invoking tool {Name} with arguments {Arguments}", toolName, JsonSerializer.Serialize(args, BackchannelJsonSerializerContext.Default.DictionaryStringJsonElement)); 250_logger.LogWarning("Unknown tool requested: {ToolName}", toolName); 271_logger.LogWarning("No Aspire AppHost is currently running"); 281_logger.LogWarning("Dashboard is not available in the running AppHost"); 289_logger.LogInformation( 315_logger.LogDebug("Calling tool {ToolName} on dashboard MCP server", toolName); 319_logger.LogDebug("Invoking CallToolAsync for tool {ToolName} with arguments: {Arguments}", toolName, arguments); 321_logger.LogDebug("Tool {ToolName} completed successfully", toolName); 326_logger.LogError(ex, "Error occurred while calling tool {ToolName}", toolName); 372_logger.LogDebug("Resources with MCP tools received: {Count}", resourcesWithTools.Count); 386_logger.LogDebug("{Tool}: {Description}", exposedName, tool.Description); 395_logger.LogDebug(ex, "Failed to refresh resource MCP tool routing map"); 438_logger.LogDebug("Using explicitly selected AppHost: {AppHostPath}", selectedPath); 442_logger.LogWarning("Selected AppHost at '{SelectedPath}' is no longer running, falling back to selection logic", selectedPath); 452_logger.LogDebug("Using single in-scope AppHost: {AppHostPath}", inScopeConnections[0].AppHostInfo?.AppHostPath ?? "N/A"); 476_logger.LogDebug(