A transport for Winston that uses the Pushover notifications service.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitattributes
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json

README.md

winston-pushover

Build Status Dependency Status npm Version

A Winston transport that outputs using the Pushover service.

Usage

  var winston = require('winston');

  // Requiring `winston-pushover` will expose `winston.transports.Pushover`
  require('winston-pushover').Pushover;

  winston.add(winston.transports.Pushover, options);

The Pushover transport takes the following options. Both 'userKey' and 'token' are required:

  • level: Level of messages that this transport should log, defaults to 'info'.
  • silent: Boolean flag indicating whether to suppress output, defaults to false.
  • userKey: The user key for the Pushover user who will receive the notifications.
  • token: The Pushover API token for your application.
  • sound: Which custom notification sound to use (optional).

Dependencies

Installation

Installing npm (node package manager)

  $ curl http://npmjs.org/install.sh | sh

Installing winston-pushover

  $ npm install winston
  $ npm install winston-pushover

Author: Matthew Tole