Nerds Publishing Monstrosities
Have ideas to improve npm?Join in the discussion! »

book-pagerduty

0.2.0 • Public • Published

book-pagerduty

Pagerduty notifier for panic logs from book

var log = require('book').default();
var pagerduty = require('book-pagerduty');
 
// configure with your service_key URL style
log.use(pagerduty('https://events.pagerduty.com/e93facc04764012d7bfb002500d5d1a6'));
 
// will send to pagerduty
log.panic('test error');
 
// will not send to pagerduty
log.error('no pagerduty');

Tips

I recommend using bookrc for your apps and setting up your logging configration there.

License

MIT

Install

npm i book-pagerduty

DownloadsWeekly Downloads

5

Version

0.2.0

License

MIT

Last publish

Collaborators

  • avatar