We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sync
const pino = require('pino') const logger = pino({ transport: { target: 'pino-pretty', options: { colorize: true, sync: true } } }, pino.destination({sync:true})) console.log('yyy'); logger.info('hi'); console.log('xxx');
Expected:
yyy [15:02:27.684] INFO (8368): hi xxx
Actual:
yyy xxx [15:02:27.684] INFO (8368): hi
It works fine without pretty-print:
pretty-print
const pino = require('pino') const logger = pino({}, pino.destination({sync:true})) console.log('yyy'); logger.info('hi'); console.log('xxx');
Output:
yyy {"level":30,"time":1712668061532,"pid":6376,"hostname":"LAPTOP-GOU7DNK8","msg":"hi"} xxx
package.json { "name": "test11", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "", "license": "ISC", "dependencies": { "pino": "^8.20.0", "pino-pretty": "^11.0.0" } }
The text was updated successfully, but these errors were encountered:
A few notes:
Adding some docs on all the above would be good, as it seems it's a source of confusion.
Sorry, something went wrong.
thank you for the answer, that explains it
No branches or pull requests
Expected:
Actual:
It works fine without
pretty-print
:Output:
The text was updated successfully, but these errors were encountered: