bunyan-sub-stream
bunyan-sub-stream
is a readable stream subscribes to bunyan-hub events.
install
npm i --save bunyan-sub-stream
usage
var SubStream = ;var subStream = level: 'trace' // trace, debug, info, warn, error, fatal as in bunyan, default trace history: true // read history, bunyan-hub will keep 1000 records for each level, default false time: timestamp // if history is true, set time when the records emitted from history read, default undefined raw: false // if set to true, subStream will be in objectMode and emit record object, defaults to false host: '127.0.0.1' // defaults to localhost port: 28692 // defaults to be bunyan-hub's default port;subStream;subStream;
license
MIT