Skip to content

cdloh/winston-pushbullet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Pushbullet transport for the Winston Logging module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published