UNPKG

pino

Version:

super fast, all natural json logger

14 lines (12 loc) 267 B
'use strict' const { Writable } = require('stream') module.exports = (options) => { const myTransportStream = new Writable({ autoDestroy: true, write (chunk, enc, cb) { console.log(chunk.toString()) cb() } }) return myTransportStream }