1.0.3 • Published 10 years ago
winston-slacker v1.0.3
winston-slacker 
Slack integration for Winston
Installing
$ npm install winston-slackerThis transport can be used like most standard Winston transports to send messages to a Slack channel.
Options
Standard options are support as well as the following additions:
webhook: Your Slack channel's webhook URLchannel: The channel to send messages to (with the#like#general)username: The username to use for the message in SlackiconUrl: URL for Slackbot avatariconImoji: Emoji for Slackbot iconcustomFormatter: Function used to format the message for Slack
var winston = require('winston');
var winstonSlacker = require('winston-slacker');
var options = {
// Set options up
};
winston.add(winstonSlacker, options);Tests
To run tests run npm install and then npm test from the root directory in your shell.