winston-slackihook

1.1.0 • Public • Published

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
});

Readme

Keywords

Package Sidebar

Install

npm i winston-slackihook

Weekly Downloads

0

Version

1.1.0

License

MIT

Last publish

Collaborators

  • maxcnunes