pinojs / pino-pretty

🌲Basic prettifier for Pino log lines
MIT License
1.27k stars 150 forks source link

pino-pretty ignores stderr output #546

Open jburghardt opened 3 days ago

jburghardt commented 3 days ago

pino-pretty ignores stderr output.

node -e "process.stdout.write(JSON.stringify(`{'level':50,'time':'2024-11-21T12:42:09.256Z','msg':'test'}`))" | npx pino-pretty

-> [13:42:09.256] ERROR: test

node -e "process.stderr.write(JSON.stringify(`{'level':50,'time':'2024-11-21T12:42:09.256Z','msg':'test'}`))" | npx pino-pretty

-> {'level':50,'time':'2024-11-21T12:42:09.256Z','msg':'test'}

is this a desired behavior ?