winston-slackihook
v1.1.0
Published
Winston Transport for Slack chat integration with incoming webHooks.
Downloads
11
Readme
winston-slackihook
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.
Install
$ npm install winston-slackihook
Also requires install of winston
$ npm install winston
Usage
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
});