Skip to content

feat: Live Log Tail tab with level filtering and search#170

Merged
vivekchand merged 1 commit intomainfrom
fix/gh-clawmetry-27-live-log-tab
Apr 2, 2026
Merged

feat: Live Log Tail tab with level filtering and search#170
vivekchand merged 1 commit intomainfrom
fix/gh-clawmetry-27-live-log-tab

Conversation

@vivekchand
Copy link
Copy Markdown
Owner

Closes #27

What

Adds a dedicated Logs tab to the ClawMetry dashboard with real-time log streaming, level-based filtering, full-text search, and auto-scroll control.

How

  • Added page-logs HTML section in both dark and light themes with:
    • Level filter buttons (All / Error / Warn / Info / Debug) with color-coded chips
    • Full-text search input that filters log lines in real-time
    • Auto-scroll toggle checkbox
    • Line count selector (100 / 250 / 500 / 1000)
    • Stats bar showing total lines, error count, warning count, and stream status
  • Updated renderLogs() to emit data-level and data-text attributes on each log line for client-side filtering
  • Updated appendLogLine() to:
    • Apply current level/search filters to new streamed lines
    • Respect auto-scroll preference
    • Update stream status indicator
  • Added setLogLevelFilter() and filterLogsView() functions for interactive filtering
  • Enhanced .log-line CSS with hover state and border-radius in both themes
  • Reuses existing /api/logs and /api/logs-stream SSE endpoints

Tests

53 tests pass (1 e2e test skipped, requires running instance)

+170 lines in dashboard.py

@vivekchand vivekchand force-pushed the fix/gh-clawmetry-27-live-log-tab branch from 7eb8c7d to d6f66bb Compare March 22, 2026 17:14
@vivekchand vivekchand force-pushed the fix/gh-clawmetry-27-live-log-tab branch from d6f66bb to 930d058 Compare April 2, 2026 11:56
@vivekchand vivekchand merged commit 2860660 into main Apr 2, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(v0.11): Live Log Tail Tab — real-time /tmp/openclaw/*.log viewer with filtering

1 participant