A Winston transport that outputs data using Pushbullet.
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 thedeviceIden
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.
License: MIT