PrepEdge-AI icon indicating copy to clipboard operation
PrepEdge-AI copied to clipboard

[FEAT] Replace console.log statements with production-ready logging system

Open deepanshusingla076 opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe. Yes, I've noticed the codebase has a lot of console.log statements everywhere (I found 50+ instances). This is a problem because:

  • Console logs in production can leak sensitive data
  • There's no way to control what gets logged in different environments
  • Makes debugging harder since everything just dumps to console
  • I'm frustrated when trying to find actual errors among all the debug logs

Describe the solution you'd like I want to create a simple logging utility that:

  • Has different levels (debug, info, warn, error)
  • Automatically turns off debug logs in production
  • Keeps the same simple API so it's easy to replace console.log

Something like:

// Instead of console.log
logger.debug('User data:', data);
logger.error('Failed to save', error);

deepanshusingla076 avatar Oct 28 '25 14:10 deepanshusingla076

Thank you for raising this issue!

We'll review it as soon as possible. We truly appreciate your contributions! ✨

Meanwhile make sure you've visited the README.md, CONTRIBUTING.md, and CODE_OF_CONDUCT.md before creating a PR for this. Also, please do NOT create a PR until this issue has been assigned to you. 😊

github-actions[bot] avatar Oct 28 '25 14:10 github-actions[bot]

Hi @deepanshusingla076,

I am a GSSoC 2026 contributor and would like to work on this issue.

I reviewed the issue description and understand the need for a centralized logging system with different log levels and production-safe behavior. I would like to investigate the current logging usage across the codebase, implement a reusable logging utility, and replace existing console.log statements while maintaining compatibility with the current codebase.

Could you please assign this issue to me?

Thank you!

arunkumar-201 avatar May 29 '26 04:05 arunkumar-201