sainsburys-tech

sainsburys-tech/next-logger

JSON logging patcher for Next.js

JavaScript
242
16
MIT License

The **next‑logger** library patches Next.js’s internal logging to emit newline‑delimited JSON (using pino or Winston) so that applications can stream structured logs compatible with log‑aggregation tools without writing a custom server. It’s aimed at Next.js developers who want to enrich server output with timestamps, hostname, and other metadata while keeping the original log messages intact. Optional presets let you limit the scope of the patch, and a simple config file lets you replace the default logger with a custom pino/Winston setup.

Total donated
Undistributed
Share with your subscribers: