ccsync icon indicating copy to clipboard operation
ccsync copied to clipboard

Colored Logging & Improved Backend Logs

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

Is your feature request related to a problem? Please describe. Currently, backend logs are plain text and can be hard to read when debugging multiple types of events (errors, warnings, info, sync progress). This makes tracing issues or monitoring sync activity less efficient.

Describe the solution you'd like

  • Integrate charmbracelet/log for structured and colored logging.
  • Use colors to differentiate log levels:
    • Green = Info / Success
    • Yellow = Warning
    • Red = Error
  • Include structured metadata (timestamp, component, task/file name) for better traceability.
  • Optionally, add log levels (debug, info, warn, error) configurable via environment variables.

Describe alternatives you've considered

  • Keep plain text logging (current approach) – harder to scan visually.
  • Use other logging libraries – charmbracelet/log is lightweight, Go-native, and supports colors well.

Additional context Better logging will make debugging faster, improve observability in production, and help developers quickly identify sync failures or anomalies.

Impact

  • Easier backend debugging.
  • Faster identification of failed syncs or errors.
  • Cleaner and more professional log output for development and production environments.

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

could please assign this to me? I also want to start with backend.

ShivaGupta-14 avatar Nov 01 '25 21:11 ShivaGupta-14

@its-me-abhishek Can you assign me. Thank you!

Eshaan-byte avatar Nov 02 '25 03:11 Eshaan-byte

Are there any updates on this @Eshaan-byte ?

its-me-abhishek avatar Nov 15 '25 15:11 its-me-abhishek

@its-me-abhishek Can I jump into it ??

Rustix69 avatar Nov 15 '25 15:11 Rustix69

@its-me-abhishek Yes working on it will commit in a few hours. Sorry about the delay!

Eshaan-byte avatar Nov 15 '25 15:11 Eshaan-byte

@its-me-abhishek , Done, please check whenever you are free. Thank you!

Eshaan-byte avatar Nov 15 '25 16:11 Eshaan-byte

Hi @its-me-abhishek, I'd like to work on this issue. I've completed my previous tasks, so please assign me a couple of new issues :)

ShivaGupta-14 avatar Nov 26 '25 00:11 ShivaGupta-14

Hi @its-me-abhishek ,

I noticed that the previous PR for this issue was closed without merging and there hasn't been recent activity.

Since this feature (structured/colored logging) is still open, I’d love to pick it up. I can review the feedback from the previous attempt to ensure the new implementation aligns with what the project needs.

Please let me know if I can proceed!

ShivaGupta-14 avatar Dec 08 '25 12:12 ShivaGupta-14

@its-me-abhishek If this issue has not been resolved yet, I would like to work on it. Please assign it to me if possible!

ParasKhandelwal1616 avatar Dec 08 '25 13:12 ParasKhandelwal1616