browser: implement `log` function for the `formatters` option
Closed this issue · 1 comments
KatelynKim commented
The non-browser version of pino takes in a formatters option, an object that may include a log
function for formatting log objects. We want to replicate this behavior in the browser pino.
Usage:
const logger = pino({
browser: {
formatters: {
log (obj) {
return {...obj, newField: 'awesome!'}
}
}
}
})
github-actions commented
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.