DEV Community

Divyesh Parmar
Divyesh Parmar

Posted on

4

How to stop all those info: logs in terminal

Our project at work is using Node.js/Express.js Next.js with React-Redux app over it for admin dashboard side of the product.

Now this codebase is huge and it has confused me a lot over how Express router already defines a route and then redux action creator makes an api call to that and fetch, put, post, delete data.
so my query to make this post is about how do I stop nextJS to keep giving me info upon each page build. It keep logging a message as follows

info: GET /json 302 0ms statusCode=302, url=/json, host=[::1]:4002, method=GET, httpVersion=1.1, originalUrl=/json, , responseTime=0
  morgan log request +6ms
GET /json 302 1.093 ms - 46
Enter fullscreen mode Exit fullscreen mode

for each second or millisecond I guess. I want to remove all that because I am not able to figure the console logs that I have put while hitting each API endpoint, this makes my terminal really clutter and harder to find the console logs as needed.

Postgres on Neon - Get the Free Plan

No credit card required. The database you love, on a serverless platform designed to help you build faster.

Get Postgres on Neon

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay