sainsburys-tech / next-logger

JSON logging patcher for Next.js
MIT License
144 stars 14 forks source link

Additional fields not showing in the log object #26

Closed hanieljazzar closed 5 months ago

hanieljazzar commented 5 months ago

I'm trying to add some fields to the global log, tried in both base and mixin, but the fields only get added locally, but when we deploy to a docker container, they don't show (the default json logs show though). And if I try to make a child, the fields get added under message instead of the higher level log object. Any ideas what can be done to add the fields after deployment to the higher level object?

image

hanieljazzar commented 5 months ago

false alarm, was a docker file issue, apologies about that

davecowart commented 1 month ago

@hanieljazzar what was your dockerfile issue? I'm running into something very similar.

davecowart commented 1 month ago

Ended up figuring out my issue. I'm making a standalone build using next.js 14.2 in a multi-stage Dockerfile, so I needed to: