node-error-reporter
v1.0.5
Published
Real time error notifications. Sends push notification to your mobile phone upon a server error (or for any reason you choose). Supports aws sqs queue or pushover notifications.
Downloads
3
Readme
#ErrorReporter
Publishes errors (or anything) to sns queues/ pushover clients for instant notifcation of server errors
##Getting Started / API
####Require package var ErrorReporter = require(“node-error-reporter”);
####Instantiate with dependancies var reporter = new ErrorReporter(SNS, pushoverKey);
SNS = instance of aws sns pushoverKey = USER (app) key of pushover
#####(or) manually set Pushover User (App) Key reporter.setPushoverUserKey(key)
#####Add sns reporter.addSns(SNS_TOPIC)
####Add pushover app reporter.addPushoverApp(APPLICATION_KEY);
#####Publish to all queues reporter.publishAll(msg,title);
####Publish to all pushover apps publishToPushover(message,title)
####Other API reporter.publishToSns(msg);