Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxcnunes/winston-slackihook
https://github.com/maxcnunes/winston-slackihook
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/maxcnunes/winston-slackihook
- Owner: maxcnunes
- Created: 2014-11-26T03:55:05.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-07-23T15:53:41.000Z (over 9 years ago)
- Last Synced: 2024-10-18T07:23:27.248Z (3 months ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
winston-slackihook
==================Winston Transport for Slack chat integration with incoming webhooks.
Uses the [Incoming WebHooks](https://.slack.com/services/new/incoming-webhook) to send log messages to [Slack](https://slack.com/) through [Wiston](https://github.com/flatiron/winston) library.
It was originally based on [winston-slack](https://github.com/TDASinternal/winston-slack). But different from that it uses [slackihook](https://github.com/keyvanfatehi/slackihook) to send notification messages. Which implements the new Slack's api for **Incoming WebHooks**.
## Install
```js
$ npm install winston-slackihook
```Also requires install of winston
```js
$ npm install winston
```## Usage
```js
var winston = require('winston');
var something = require('winston-slackihook').Slack;winston.add(something, {
// replace it with the url generated from: https://.slack.com/services/new/incoming-webhook
incomingWebhookURL: "https://hooks.slack.com/services/...",
channel: "#test-channel",
username: "ErrorBot",
level: 'error',
handleExceptions : true
});
```