pinojs/pino

[question] How to setup level for pipeline?

Opened this issue · 0 comments

I need to write any logs to stdout and other to stderr but formatted using my formatter

for example

const config = {
  transport: {
    pipelines: [{
      levels: ['error', 'fatal'],
      pipeline: [
        {target: './my-formatter.mjs'},
        {target: 'pino/file', destination: '2'},
      ]
    } ,{
      pipeline: [
        {target: './my-formatter.mjs'},
        {target: 'pino/file', destination: '1'},
      ]
    }]
  }
}

how i can do something like this?