Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 1.23 KB

README.md

File metadata and controls

39 lines (25 loc) · 1.23 KB

winston-pushbullet

A Winston transport that outputs data using Pushbullet.

Usage

  var winston = require('winston');
  require('winston-pushbullet').Pushbullet;

  var logger = new (winston.Logger)({
    transports: [
      new winston.transports.Pushbullet(options)
    ],
    exitOnError: true
  });

  module.exports = logger;

Options can include the following. apikey is required.

  • apikey: apikey for the Pushbullet account that will recieve the notification.
  • level: Level of warning required for a notification to be sent off. Defaults to warn.
  • title Title of the notification. Defaults to 'Winston Notification'.
  • devices Devices to send the notifications too. As per the node-pushbullet-api module both device IDENs and device IDs can be used. If the deviceIden parameter is passed as a number it is treated as a device ID. It defaults to '' which means the notification will be sent to all devices on the account.

Dependencies

Winston

Pushbullet

Async

Author: Callum Loh

License: MIT