https://github.com/confuser/node-bunyan-usergrid
Bunyan stream for sending logs to Usergrid
https://github.com/confuser/node-bunyan-usergrid
Last synced: 9 months ago
JSON representation
Bunyan stream for sending logs to Usergrid
- Host: GitHub
- URL: https://github.com/confuser/node-bunyan-usergrid
- Owner: confuser
- License: isc
- Created: 2016-11-01T14:22:45.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-07T13:48:16.000Z (over 8 years ago)
- Last Synced: 2025-09-14T03:54:00.908Z (9 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bunyan-usergrid
[](https://travis-ci.org/confuser/node-bunyan-usergrid)
Send bunyan logs into [Usergrid](https://usergrid.apache.org)
## Installation
```
npm install bunyan-usergrid
```
## Usage
Ensure stream `type` is set to `raw`
```js
var bunyan = require('bunyan')
, bunyanUsergrid = require('bunyan-usergrid')
, opts =
{ collection: 'test'
, auth:
{ host: 'https://localhost'
, org: 'org'
, app: 'app'
, grantType: 'client_credentials'
, clientId: 'client'
, clientSecret: 'such secret, much wow'
}
}
var logger = bunyan.createLogger(
{ name: 'test'
, streams: [ { type: 'raw', stream: bunyanUsergrid(opts) } ]
})
```