Skip to content
This repository has been archived by the owner on Dec 15, 2019. It is now read-only.
/ winston-slack Public archive
forked from yyolk/winston-slack

Winston Transport for Slack chat integration

License

Notifications You must be signed in to change notification settings

manuga93/winston-slack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

winston-slack

Winston Transport for Slack chat integration

$ npm install winston-slack

Also requires install of winston

$ npm install winston

Basic transport that works just like all other winston transports. Sends logged messages to a specified slack chat channel

additonal options:

webhookUri: a Slack incoming webhook uri (see. https://api.slack.com/)

username: name displayed in the chat channel. default "winston-slack"

var winston = require('winston');
var something = require('winston-slack').Slack;

winston.add(something, {
    webhookUri: "https://hooks.slack.com/services/T621Y9D62/B65DNT20H/HHHHHHHHHHHHHHHHHHHHH",
    channel: "#test-channel",
    username: "ErrorBot",
    level: 'error',
    handleExceptions : true
});

About

Winston Transport for Slack chat integration

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%