winston-transport-slack
v1.0.2
Published
winston transport for slack based on slack-notify
Downloads
4
Readme
winston-transport-slack
The winston transport for Slack notifications.
Installation
$ npm install winston-transport-slack
Usage
var winston = require('winston');
var SlackTransport = require('winston-transport-slack');
winston.add('slack', new SlackTransport({
level: 'error',
token: 'required'
}));
// log
winston.log('error', 'something', metadata);
winston.log('slack', 'something', metadata);
Test
$ npm test
License
MIT