Transmita os log de tempo de execução do agente.
Synopsis
Visualize os log de execução de agentes e ferramentas de um workspace.
As query interativas cobrem no máximo 6 horas; faça query de faixas mais longas em múltiplas janelas de no máximo 6 horas. --since aceita uma duração (1h por padrão) ou um timestamp RFC3339. --tail retorna as entradas mais recentes, limitadas a 5000; use --all para a janela completa.
Os logs só existem depois que o workspace tiver sido implantado. Para o diagnóstico da própria CLI, use agentengine debug logs.
Exemplos:
agentengine logs --followagentengine logs --source agent --level error --grep "connection refused"agentengine logs [flags]Opções
--all Fetch all logs in the time range (auto-paginates through all pages within the 6-hour interactive window) --base-url string Platform base URL --context string Named context to target (see 'agentengine context list') --execution-id string Filter by execution ID-f, --follow Continuously poll for new logs --grep string Search log messages (case-insensitive substring match)-h, --help help for logs --json Output logs as JSON --level string Log level(s) to match exactly (debug, info, warn, error), comma- or space-separated --org-id string Organization ID --project-id string Project ID --session-id string Filter by session ID --since string Start time as duration (e.g. 30m, 2h) or RFC3339 timestamp (default "1h", maximum "6h") --source string Filter by source sandbox(s) (agent, tool), comma- or space-separated --tail int Number of most-recent entries to return (capped at 5000; use --all for the full window) (default 500) --until string End time as duration (e.g. 5m) or RFC3339 timestamp (default: now) --workspace string Monorepo: select a specific workspace by name (from root agent.yaml) --workspace-id string Workspace IDOpções herdadas dos comandos pai
--log-file string override log file path --log-level string file log verbosity (error|warn|info|debug) (default "info") --no-log disable file logging-q, --quiet silence stderr below error-v, --verbose count raise stderr verbosity (-v info, -vv debug)Veja também
agentemecanismo - CLI de desenvolvimento local do Mecanismo de Agente.
exportação de logs do agentengine - Exporte até 24 horas de logs de tempo de execução.