feat(logging): unify CCS runtime logs and dashboard viewer#927
feat(logging): unify CCS runtime logs and dashboard viewer#927kaitranntt merged 8 commits intodevfrom
Conversation
📋 SummaryThis PR adds a structured logging layer, log storage with rotation and redaction, /api/logs dashboard endpoints, and a /logs dashboard page. The backend is solid but the UI page imports six components from ui/src/components/logs/ that do not exist in the PR. The UI build will fail at module resolution and the UI test will also fail. This is a blocking omission. 🔍 Findings🔴 High
🟡 Medium
🟢 Low
🔒 Security Checklist
📊 CCS Compliance
💡 Informational
✅ What's Done Well
🎯 Overall Assessment❌ CHANGES REQUESTED — The six UI component files imported by logs.tsx are missing from the PR. The UI build cannot succeed without them. This must be resolved before merge.
|
📋 SummaryAdds a structured logging subsystem: src/services/logging/ backend with JSONL persistence, rotation/retention, redaction, and in-memory buffer; /api/logs dashboard endpoints with localhost fallback; and a dedicated System -> Logs dashboard route. Legacy CLIProxy error diagnostics preserved as a secondary tab. Two findings: stale root help catalog summary for ccs cleanup, and missing tests for the security-sensitive redaction module. 🔍 Findings🟡 Medium
🟢 Low
🔒 Security Checklist
📊 CCS Compliance
💡 Informational
✅ What's Done Well
🎯 Overall Assessment
|
- add roadmap note for the new CCS logging surface - record logging architecture and codebase ownership - add logging standards for bounded, redacted runtime logs Refs #926
- add a shared structured logging service with bounded retention - expose native /api/logs endpoints and the dashboard /logs route - wire focused runtime emitters, cleanup support, and feature tests Refs #926
- unignore the new ui logs component directory - add the missing logs viewer components required by ui build Refs #926
- reshape the page into a management-center style control surface - add activity and CLIProxy error tabs with denser list/detail ergonomics - switch filters to practical chip groups and update the page tests Refs #926
a912d2c to
6e39f33
Compare
📋 SummaryThis PR adds a CCS-owned structured logging layer with JSONL persistence, bounded retention, and redaction; exposes /api/logs endpoints; and adds a System - Logs dashboard route. All CCS path access correctly uses 🔍 Findings🟡 Medium
🟢 Low
🔒 Security Checklist
📊 CCS Compliance
💡 Informational
✅ What's Done Well
🎯 Overall Assessment
|
📋 SummaryThis PR adds a CCS-owned structured logging layer with bounded retention, redaction, JSONL storage under ~/.ccs/logs/, /api/logs dashboard endpoints, and a System -> Logs workspace. Paths use 🔍 Findings🟡 Medium
🔒 Security Checklist
📊 CCS Compliance
💡 Informational
✅ What's Done Well
🎯 Overall Assessment
|
📋 SummaryThis PR adds a structured logging layer backed by JSONL files under 🔍 Findings🟡 Medium
🔒 Security Checklist
📊 CCS Compliance
💡 Informational
✅ What's Done Well
🎯 Overall Assessment
|
Summary
/api/logsendpoints plus a dedicatedSystem -> Logsdashboard routeValidation
bun run validatebun run buildcd ui && bun run validatecd ui && bun run buildNotes
origin/devinto this branch before committing and pushingCloses #926