Summary
I’d like to request an API endpoint that provides programmatic access to application logs. This would enable external tools and automation to retrieve and analyze log data without manual access to the Anvil IDE.
Primary Use Case: LLM-Assisted Debugging
The main driver for this feature is enabling Large Language Models (LLMs) to investigate application issues. With API access to logs, an LLM could:
- Analyze error patterns and stack traces
- Correlate issues across time periods
- Help diagnose production problems without manual log review
- Provide automated insights and suggested fixes
Proposed Feature
An API endpoint (e.g., via HTTP Endpoints or the existing Anvil API) that allows authenticated access to:
- App logs for a specified time range
- Filtering by log level (error, warning, info)
- Session-based filtering
- JSON or structured output format
Background
This has been requested before in various forms, none quite asking for pure API access:
- “Can we download app logs to give analysis report?” (2019)
- “Access Logs and Data Tables on Mobile” (2021)
Thank you for considering this feature!