Closed rhyek closed 6 months ago
this is a question about pino-pretty, which is a 3rd party library, the question should be addressed there
right, i guess my thinking is it might be an interaction issue between nestjs-pino and pino-pretty. does that make sense?
nestjs-pino is just a handy wrapper for pino instance, and config provided here is just passed to the pino instance as is. So, yeah, maybe try to find the answer there. Also, in pino-pretty docs the first example is piping app stdout to pino-pretty https://github.com/pinojs/pino-pretty?tab=readme-ov-file#usage , maybe this could fix your issue?
Question I'm setting up my project for local development and I've noticed that when using the
pino-pretty
transport target, logs during request handling are frequently delayed for up to a second or so. Very few times they are instant. If I remove the transport target, they are instant.My config:
Please mention other relevant information such as Node.js version and Operating System. bun 1.1.3 macos m1