ccsync icon indicating copy to clipboard operation
ccsync copied to clipboard

Developer Logs / Debugging option on Frontend

Open its-me-abhishek opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe. Currently, developers must dig through console logs to debug sync failures. This makes tracing issues difficult, especially when running CCSync inside containers or in automated environments.

Describe the solution you'd like

  1. Implement structured logging and an accessible sync log dashboard:
  • Store logs in a persistent directory (e.g., /data/logs/ccsync.json).
  • Add a REST endpoint: GET /sync/logs?last=100
  • Returns the latest 100 log entries in JSON format.
  • Should also store max 100 latest entries only, so as to not to make it slow and space consuming
  1. Build a small UI dashboard within the frontend to display sync history, status, and recent errors in real time.
  2. Include filters for type (INFO, ERROR, WARN), timestamps, and sync ID.

Additional context Logs could later integrate with the ccsync debugger (TBA) for combined diagnostics.

Impact Makes debugging transparent and efficient, allowing devs to trace exactly which files failed and why without needing to manually inspect backend terminals or container logs.

its-me-abhishek avatar Nov 01 '25 17:11 its-me-abhishek

Hi @its-me-abhishek , can you assign this to me ?

TudorGR avatar Nov 01 '25 17:11 TudorGR

Sure! Please make sure the logs can be copyable and appear as a Dialog Box in the frontend (same as clicking on a Task). Also, do add it as an option inside- Hamburger icon on Mobile Profile picture icon on Desktop!

its-me-abhishek avatar Nov 01 '25 17:11 its-me-abhishek