Next.js Discord

Discord Forum

Logging SSR errors

Unanswered
Cape lion posted this in #help-forum
Open in Discord
Avatar
Cape lionOP
Hello I am using nextjs 14 with app router and a custom express server. I have a problem with logging as I see that some logs for example errors from components that are server side rendered do not log through my custom pino logger but rather just plain stderr console. How can I catch those errors so they're not logged directrly to stderr. but my logger instance if server side rendered??

1 Reply

Avatar
Erythrina gall wasp
I also have similar problem...