1.0.2 • Published 7 years ago

bunyan-blip v1.0.2

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

bunyan-blip

CircleCI Codacy Badge

Blip stuff from bunyan

Installation

npm i -S bunyan-blip

Use

const bunyan     = require('bunyan');
const BunyanBlip = require('bunyan-blip');
const BlipClient = require('blip-client');

const blipClient = BlipClient.createClient('mybliphost.com', 8080, 'some service', 'prod');

const logger = bunyan.createLogger({
    name:    'my app',
    streams: {
       type: 'raw',
       stream: new BunyanBlip(blipClient, 'error')
     }
  });


logger.info('Not sent to blip server');
logger.error('Sent to blip server because its above the threshold');
1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago