feat: add link for viewing raw build logs in workspace and template build jobs by johnstcn · Pull Request #21727 · coder/coder
johnstcn
changed the title
feat: add raw text format support for log API endpoints
feat: add link to view raw build logs for workspace and template build jobs
This adds a `format` query parameter to workspace build logs, workspace
agent logs, template version logs, and template version dry-run logs
endpoints. When `format=text` is specified, logs are returned as plain
text with RFC3339 timestamps instead of JSON.
Each log line is formatted as:
- Provisioner logs: `{timestamp} [{level}] [{source}] {stage}: {output}`
- Agent logs: `{timestamp} [{level}] {output}`
ANSI escape sequences in log output are preserved.
The UI now includes "View raw logs" links:
- Workspace build page (build logs and agent logs tabs)
- Template version editor (output tab)
- Template version page (stats bar)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
johnstcn
changed the title
feat: add link to view raw build logs for workspace and template build jobs
feat: add link for viewing raw build logs in workspace and template build jobs
johnstcn
marked this pull request as ready for review
Copilot AI review requested due to automatic review settings
February 3, 2026 09:22
johnstcn
deleted the
cj/task/raw-text-log-format
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters