Winston Transport for Slack chat integration with incoming webhooks.
Uses the Incoming WebHooks to send log messages to Slack through Wiston library.
It was originally based on winston-slack. But different from that it uses slackihook to send notification messages. Which implements the new Slack's api for Incoming WebHooks.
$ npm install winston-slackihook
Also requires install of winston
$ npm install winston
var winston = require('winston');
var something = require('winston-slackihook').Slack;
winston.add(something, {
// replace it with the url generated from: https://<domain>.slack.com/services/new/incoming-webhook
incomingWebhookURL: "https://hooks.slack.com/services/...",
channel: "#test-channel",
username: "ErrorBot",
level: 'error',
handleExceptions : true
});