Next.js Discord

Discord Forum

Cloudwatch logs splitted into multilines

Unanswered
European imported fire ant posted this in #help-forum
Open in Discord
Avatar
European imported fire antOP
Hey folks 👋, got a bit of a head-scratcher here with Next.js and AWS CloudWatch logs. My server-side logs are getting a bit wild – I've got my console.logs tamed into neat single-line JSONs, but there's an invasion of multi-line errors and stack traces that aren't from my console.logs. They're doing a number on my logs by splitting into several lines in CloudWatch, which is a real pain to follow.

Maybe I'm missing a trick or there's some kind of established method to get these SSR logs to behave in CloudWatch? All about that proper formatting life. Appreciate any pointers or magic incantations you've got! 🧙‍♂️📜

2 Replies

Avatar
European imported fire antOP
Image
Avatar
European imported fire antOP
any ideas? 😄