Projektstart
This commit is contained in:
13
backend/node_modules/pino/test/fixtures/console-transport.js
generated
vendored
Normal file
13
backend/node_modules/pino/test/fixtures/console-transport.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
const { Writable } = require('node:stream')
|
||||
|
||||
module.exports = (options) => {
|
||||
const myTransportStream = new Writable({
|
||||
autoDestroy: true,
|
||||
write (chunk, enc, cb) {
|
||||
// apply a transform and send to stdout
|
||||
console.log(chunk.toString().toUpperCase())
|
||||
cb()
|
||||
}
|
||||
})
|
||||
return myTransportStream
|
||||
}
|
||||
Reference in New Issue
Block a user