1.1.1 • Published 7 years ago

winston-pusher v1.1.1

Weekly downloads
7
License
MIT
Repository
github
Last release
7 years ago

winston-pusher

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.