krishnaacharyaa / wanderlust

WanderLust is a MERN travel blog website 🚀 This project is aimed to help people to contribute in open source, upskill in react and master git.
https://wanderlust-beta.vercel.app/
MIT License
184 stars 901 forks source link

[ENHANCEMENT] Implement Heap Logging #157

Open jjinendra3 opened 3 months ago

jjinendra3 commented 3 months ago

Description

I propose adding heap logging functionality to the application. Heap logging can help us monitor memory usage and identify potential memory leaks, it can also help us quickly identify any issue if it arises.

Current Behavior

Currently there are some console.logs in the client part which is a security risk and generally not considered a good practice for in-production apps.

Proposed Enhancement

I propose integrating heap logging functionality into our application. Heap logging is instrumental in monitoring memory usage, detecting memory leaks, and swiftly pinpointing any arising issues. It should be implemented at both major and minor points of the application, categorizing logs into information, warning, error, and other relevant levels. Please note that heap logging differs from console logging, as heap logging is intended for developer visibility only. Therefore, we need a solution that ensures logs are accessible only to developers, while ensuring the heap logging functionality works seamlessly in production environments.

Use Case

It would be helpful in fast debugging when the project is in production and will also help developers get an insight on the behaviour of the application.

Blockers

No response

Additional Information/ Attachments

No response

iamrudhresh commented 1 month ago

I hope you're doing great! As a GSSoC contributor, I'm keen on ramping up my involvement for GSSoC'24. Could you please assign this issue to me? I'm excited to continue contributing to the project. Thanks a bunch!