Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thalesfsp/bunyan-hipchat
HipChat plugin for Bunyan
https://github.com/thalesfsp/bunyan-hipchat
Last synced: 8 days ago
JSON representation
HipChat plugin for Bunyan
- Host: GitHub
- URL: https://github.com/thalesfsp/bunyan-hipchat
- Owner: thalesfsp
- License: mit
- Created: 2016-01-19T21:34:56.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-19T23:39:36.000Z (almost 9 years ago)
- Last Synced: 2023-03-30T11:02:46.583Z (over 1 year ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bunyan-hipchat
[![Bunyan](https://strongloop.com/wp-content/uploads/2014/05/paul_bunyan_by_brendancorris-d3are2a.jpg.pagespeed.ce.v-jNw7JZo3.jpg)](http://brendancorris.deviantart.com/art/Paul-Bunyan-199472626)
Illustration by [Brendan Corris](http://brendancorris.deviantart.com/art/Paul-Bunyan-199472626)Stream to write [bunyan](https://github.com/trentm/node-bunyan) logs to [HipChat](http://www.hipchat.com/).
## Usage
```js
var bunyan = require('bunyan');
var BunyanHipchat = require('bunyan-hipchat');var token = '1234512345123451234512345123451234512345'
var roomID = '12345';// Add HipChat plugin/stream to Bunyan
var logger = bunyan.createLogger({
name: 'API',
streams: [
{
level: 'trace',
stream: process.stdout
}, {
level: 'trace',
stream: new BunyanHipchat({
token: token,
roomId: roomId
}),
type: 'raw'
}
]
});// Log different levels
logger.trace('trace');
logger.debug('debug');
logger.info('info');
logger.warn('warn');
logger.error('error');
logger.fatal('fatal');
```## Example
_Note: Don't forget to fill with a valid token and roomId_
```bash
TOKEN="" ROOMID="" npm run example
```## Contributors
This project was created by Thales Pinheiro ([@thalesfsp](https://github.com/thalesfsp))
## Roadmap
- Next version: 2.0
- Features:
- Add tests
- Move to ES6
- Use [standard](https://www.npmjs.com/package/standard)
- Allow selection between api V1/V2