DEV Community

Divyesh Parmar
Divyesh Parmar

Posted on

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.

Top comments (0)