Skip to content

Add logging system with dashboard toggle#44

Merged
kosinal merged 1 commit into
masterfrom
feature/43-add-logging
Mar 5, 2026
Merged

Add logging system with dashboard toggle#44
kosinal merged 1 commit into
masterfrom
feature/43-add-logging

Conversation

@kosinal

@kosinal kosinal commented Mar 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds a logging module that writes all hook events as JSON lines to ~/.claude-code-dashboard/logs/ with daily log files
  • Adds GET/POST /api/logging endpoints to query and toggle logging on/off
  • Adds a logging toggle switch in the dashboard footer (default: off)
  • Adds Notification and SubagentStop hook events for complete hook coverage

Closes #43

Test plan

  • All 103 tests pass (npm test)
  • Lint passes (npm run lint)
  • Start dashboard, toggle logging on, verify log files appear in ~/.claude-code-dashboard/logs/
  • Verify logging toggle state persists across page refreshes (server-side state)
  • Verify log entries contain timestamp, status, hook_event_name, session_id, and full payload

🤖 Generated with Claude Code

- Add logging module that writes JSON log entries to ~/.claude-code-dashboard/logs/
- Log all hook events with timestamp, action type (status), session ID, and full payload
- Add GET/POST /api/logging endpoints to query and toggle logging state
- Add logging toggle switch to dashboard footer (default off)
- Add Notification and SubagentStop hook events for complete coverage
- Add comprehensive tests for logging module
@kosinal kosinal merged commit d37d381 into master Mar 5, 2026
6 checks passed
@kosinal kosinal deleted the feature/43-add-logging branch March 5, 2026 09:44
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.

Add logging

1 participant