H4ad / nodejs-logging-proposal

3 stars 0 forks source link

What transports & pipelines we should include? #1

Open H4ad opened 5 months ago

H4ad commented 5 months ago

By default pino will output to stdout using SonicBoom at https://github.com/pinojs/pino/blob/main/lib/tools.js#L330-L336

Should we include more transports, like:

Should we include pipelines like:

Also, the way to expose those built-in transports can be something like:

setOptions({
  transport: {
    target: 'node:logging/transports/pretty',
  },
})

Basically we can group/expose the transports via node:logging/transports/<name> and the pipelines via node:logging/pipelines/<name>.