winston-mattermost
v0.0.1
Published
A Mattermost transport for winston
Maintainers
Readme
winston-mattermost
[![NPM version][npm-image]][npm-url] [![NPM downloads][npm-downloads]][npm-url] [![MIT License][license-image]][license-url]
A [mattermost][mattermost] transport for [winston][winston].
Index
Install
npm install -S winston winston-mattermostUsage
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
- Based on winston-loggly by Charlie Robbins
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
