Open JaneJeon opened 2 years ago
@davidmarkclements bump? https://github.com/pinojs/pino/issues/1376
You can make this non-breaking by doing:
function build(opts) { ... }
const formatter = build(theDefaultOpts)
module.exports = formatter
module.exports.build = build
hey thanks for this
standard
linting or else originally formatted before we can merge
See https://github.com/pinojs/pino/issues/1376
Changes:
format
function, export a builder for the format function instead (this is the breaking bit, and is needed to make this library configurable; I was not able to get it to work using the trick mentioned in the other thread)formatters
opt and run interpolation with it (the actual feature bit)