Replies: 9 comments 2 replies
-
👍🏼 Would be a great idea, I spent my evening trying to figure out how to turn these off... |
Beta Was this translation helpful? Give feedback.
-
I definitely agree we need a config option to turn off these development server logs. This is a real pain point for my application. The new logs create so much noise that it makes it very difficult to see important log information when I need it. |
Beta Was this translation helpful? Give feedback.
-
Completely agree. Spent all evening trying to disable this logging. It is surprising that someone decided that everyone needs it. Many people install their own loggers using |
Beta Was this translation helpful? Give feedback.
-
Same here, it's absolutely horrendous when a background service is pinging frequently! Would be great to see route-level logging config (i.e. disabling certain |
Beta Was this translation helpful? Give feedback.
-
I would love to see this implemented. These logs make it impossible to see actual logs, especially when using tRPC. |
Beta Was this translation helpful? Give feedback.
-
I was looking for it too, hope it gets implemented soon. |
Beta Was this translation helpful? Give feedback.
-
Looks like this is supported in canary. So when Next v15 comes out we'll be able to use the new option. 🎉
Thank you @huozhi ❤️ |
Beta Was this translation helpful? Give feedback.
-
Same here. I use custom server (even in development) and I do my own request/response logging when needed. So it gets duplicated with NextJS outputting the log after the response. |
Beta Was this translation helpful? Give feedback.
-
I took a stab at this. Let me know if the configuration options makes sense to you #74349 |
Beta Was this translation helpful? Give feedback.
-
Goals
The NextJS dev server automatically prints out every request's method and time. This prints a lot of spam if there are background processes polling the NextJS server.
We should add an option to turn off this default-on logging.
Non-Goals
No response
Background
The change to add this default logging was added recently, in #62946.
Proposal
Gate the logging by a nextConfig flag within the
logging
subgroup.Code to gate: https://github.com/vercel/next.js/blob/canary/packages/next/src/server/next-server.ts#L1153
Bonus points if the option is a "log the request if it takes longer than N milliseconds", instead of a boolean log or don't log.
Beta Was this translation helpful? Give feedback.
All reactions