https://github.com/seigneur/winston-mattermost
A Mattermost transport for winston
https://github.com/seigneur/winston-mattermost
Last synced: 12 months ago
JSON representation
A Mattermost transport for winston
- Host: GitHub
- URL: https://github.com/seigneur/winston-mattermost
- Owner: seigneur
- License: mit
- Created: 2016-02-25T05:28:23.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-26T03:14:12.000Z (over 10 years ago)
- Last Synced: 2025-06-05T07:06:38.180Z (about 1 year ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
- awesome-github-projects - winston-mattermost - A Mattermost transport for winston ⭐1 `JavaScript` (📦 Legacy & Inactive Projects)
README
# winston-mattermost
> A [mattermost][mattermost] transport for [winston][winston].
## Index
* [Install](#install)
* [Usage](#usage)
* [Credits](#credits)
* [License](#license)
## Install
```bash
npm install -S winston winston-mattermost
```
## Usage
```js
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](https://github.com/indexzero/winston-loggly) by [Charlie Robbins](http://blog.nodejitsu.com)
## 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