Closed karen-stepanyan closed 2 years ago
same issue with node 17
also mentioned here: https://bytemeta.vip/repo/pinojs/pino-pretty/issues/242
Read https://github.com/pinojs/pino-pretty#programmatic-integration in detail, it explains it very well.
Here is the example code.
customPrettifiers
was taken from readme example.Running the server will exit the app with following error
Without customPrettifiers it logs normally
[17:57:41.753] INFO (64181): Example app listening on port 3000
Node - v16.17.0 pino - 8.6.1 pino-pretty - 9.1.0