Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 856 Bytes

Readme.md

File metadata and controls

47 lines (30 loc) · 856 Bytes

winston-mattermost

A [mattermost][mattermost] transport for [winston][winston].

Index

Install

npm install -S winston winston-mattermost

Usage

var winston = require('winston');
var mattermost = require('winston-mattermost').Mattermost;

var options = {
  "webhook_url": "webhook url from Mattermost",
  "channel": "channel",
  "level": "level to log"
}

winston.add(mattermost, options)

Credits

License

[MIT][license-url] [license-url]: LICENSE [mattermost]: http://http://www.mattermost.org/ [winston]: https://github.com/flatiron/winston [npm-url]: https://npmjs.org/package/winston-mattermost