Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CHORE] Silence Logs in Console #367

Open
metalboyrick opened this issue Dec 8, 2024 · 11 comments
Open

[CHORE] Silence Logs in Console #367

metalboyrick opened this issue Dec 8, 2024 · 11 comments

Comments

@metalboyrick
Copy link
Collaborator

Issue Overview

Console can be quite cluttered with logs currently, need to suppress logs that are not very relevant to the application.

image

Proposed Solutions or Ideas

Next.js or other framework should have some relevant methods that can help suppress the unneccesary logs.

@petersdt
Copy link

Is it okay if I tackle this?

@abdegenius
Copy link
Contributor

Can I work on this, please?

@ShantelPeters
Copy link
Contributor

Can I tackle this one?

@Jake1698
Copy link
Contributor

can I try this one pls?

@vestor-dev
Copy link

hey sir i would love to work on this issue
i'm a blockchain dev and i would love to handle this issue
assign me and i'll get to work

@NueloSE
Copy link
Contributor

NueloSE commented Dec 12, 2024

hi am software developer with some years of experience:

psuedo steps to solving it:

I'll start by modifying our next.config.js to handle production-level log suppression using TerserPlugin for client-side console statements.
I'll create a custom logger utility that I can use across the application, allowing me to control which logs appear in different environments.
I'll implement environment-specific logging controls, ensuring errors are always logged but development-only logs are suppressed in production.
I'll configure Next.js framework-specific settings to reduce build-time warnings and server-side logs that aren't critical.
Finally, I'll update our existing console.log calls to use the new logging utility and test the changes in both development and production environments to ensure everything works as expected.

@metalboyrick
Copy link
Collaborator Author

hey @petersdt , any updates on the issue?

@petersdt
Copy link

@metalboyrick will ma a pr soon working on it

@Nadai2010
Copy link
Collaborator

Hi @petersdt looking forward to your PR, remember that the ODHack will finish on Sunday.

@metalboyrick
Copy link
Collaborator Author

@petersdt do let us know if you have any problems!

@Nadai2010
Copy link
Collaborator

Last day to upload your PR @petersdt

@Nadai2010 Nadai2010 assigned Nadai2010 and unassigned petersdt Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants