Next.js Discord

Discord Forum

Next 14.2 Logging Config

Unanswered
Cuban Crocodile posted this in #help-forum
Open in Discord
Cuban CrocodileOP
There seems to be new logs in the development server on 14.2 on all requests made. They show the method, status and time it took to respond. Is there any way to configure or disable this?

13 Replies

Cuban CrocodileOP
Thanks! It doesn't look like it did anything for those logs though.
@Arinji
"Currently, logging only applies to data fetching using the fetch API. It does not yet apply to other logs inside of Next.js."
It doesn't seem like that can be configured
Bump. I also want to disable these.
It's not the compile messages though, but the GET, POST messages.
 const method = req.method || 'GET'
          writeStdoutLine(
            `${color(method)} ${color(req.url ?? '')} ${
              res.statusCode
            } in ${reqDuration}ms`
          )



It is this part
@MaKTaiL
Yes
basically:
1. yes, it is currently not configurable
2. if you want it to be configurable, open an issue requesting that on github
Stony gall
Has anyone already opened an issue for this?