winston-for-slackers
v0.1.7
Published
A slack transport for winston
Downloads
31
Maintainers
Readme
winston-for-slackers
A slack transport for winston
Installation
Installing winston-for-slackers
$ npm install winston
$ npm install winston-for-slackers
Usage
winston = require('winston');
require('winston-for-slackers').Slack;
winston.add(winston.transports.Slack, options);
Options
team your team.slack.com
channel The channel you want these alerts to be posted to.
token Your token (https://hooks.slack.com/services/something/something/token)
emoji: The emoji you want to use, defaults to ':page_with_curl:'
username The username that you want the bot to use, defaults to 'Winston'
Example Options
options = {
team: "testing",
channel: "#general",
token: "safhahfslshafu",
emoji: ":smile:",
username: "MCBrandenburg"
}