Closed PabloSzx closed 3 years ago
const pino = require('pino')
const logger = pino({
transport: {
target: 'pino-pretty'
}
})
logger.info('hello world')
PTAL: https://github.com/pinojs/pino/blob/master/docs/transports.md#pino-pretty
Would you like to send a PR?
@types/pino doesn't have the "transport" field :disappointed: I had to add a @ts-expect-error
, there I created the pr @mcollina
We have embedded types in pino@7, drop those types.
nice, those types still don't have the "transport" option tho :cry:
PRs always welcomed.
@PabloSzx https://github.com/pinojs/pino/pull/1156 takes care of that, stay tuned.
Fix released in 7.0.2
What is the new expected programmatic usage for pino v7? the docs are showing deprecated usage https://github.com/pinojs/pino-pretty#programmatic-integration