winston-pusher

July 25, 2017 ยท View on GitHub

A Pusher transport for winston logging library.

npm version npm Maintenance

NPM

Installation

npm install winston
npm install winston-pusher

Usage

var winston = require('winston');
var PusherLogger = require('winston-pusher');

var log = new (winston.Logger)({
    transports: [
        new (PusherLoger)({
            level: 'info',
            pusher: {
                "appId": "your-app-id",
                "key": "your-app-key",
                "secret": "your-app-secret",
                "cluster": "eu",
                "encrypted": true
            }
        })
    ]
});


License

Distributed under the MIT license.