Skip to content

cloud-agent logs

The logs command provides access to deployment logs and application output.

Terminal window
cloud-agent logs [options]

Agent Cloud writes detailed logs to .agent-cloud/logs/ in your project directory. The logging system supports five levels:

LevelDescription
debugDetailed diagnostic information
infoGeneral operational messages
warnWarning conditions that do not prevent operation
errorError conditions that caused a failure
fatalSevere errors that halt execution

Log files are created per session and include timestamps, log levels, and structured messages.

your-project/
.agent-cloud/
logs/
agent-cloud-2026-03-15.log
agent-cloud-2026-03-14.log

Logs capture:

  • CLI command invocations and arguments
  • AI agent prompts and responses
  • Tool executions and results
  • Cloud CLI commands executed and their output
  • Error details with stack traces
  • Deployment workflow state transitions

For logs from your running application after deployment, use the cloud provider’s native log commands:

Terminal window
# View ECS task logs
aws logs tail /ecs/your-app --follow
# View Lambda function logs
aws logs tail /aws/lambda/your-function --follow
Terminal window
# View Cloud Run logs
gcloud run services logs read your-service --limit=50
# View Cloud Function logs
gcloud functions logs read your-function --limit=50
Terminal window
# View Container Apps logs
az containerapp logs show -n your-app -g your-resource-group
# View Function App logs
az webapp log tail -n your-function-app -g your-resource-group

Set the log level in .agent-cloud/config.json:

{
"preferences": {
"logLevel": "debug"
}
}

Or during cloud-agent init when setting preferences.

  • Local logs are useful for debugging deployment failures
  • Cloud provider logs show runtime application output
  • Log files are not automatically rotated; you may want to periodically clean old log files