1.1.0 • Published 9 years ago

bunyan-sub-stream v1.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

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 = require('bunyan-sub-stream');
var subStream = new 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.on('data', console.log.bind(console, 'data'));
subStream.pipe(process.stdout);

license

MIT

1.1.0

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago