iamolegga / nestjs-pino

Platform agnostic logger for NestJS based on Pino with REQUEST CONTEXT IN EVERY LOG
MIT License
1.26k stars 98 forks source link

[QUESTION] (node:23332) [PINODEP008] PinoWarning: prettyPrint is deprecated #745

Closed Gambitier closed 2 years ago

Gambitier commented 2 years ago

[x] I've read the docs of nestjs-pino

[x] I've read the docs of pino

[x] I couldn't find the same question about nestjs-pino

Question

I configured nestjs-pino with following options

image

and I got the warning saying (node:23332) [PINODEP008] PinoWarning: prettyPrint is deprecated, look at https://github.com/pinojs/pino-pretty for alternatives.

image

I have following versions installed

"nestjs-pino": "^2.4.0",
"pino-http": "^6.5.0",
"pino-pretty": "^7.3.0",

Please mention other relevant information such as Node.js version and Operating System.

micalevisk commented 2 years ago

what's wrong on using the new transports API of Pino v7?

https://github.com/iamolegga/nestjs-pino#synchronous-configuration

otherwise you'll need to downgrade nestjs-pino to 2.3.1 as it uses Pino v6, I guess