[question] How to setup level for pipeline?
Opened this issue · 0 comments
d-shorkin commented
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?