An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# bunyan-usergrid

[![Build Status](https://travis-ci.org/confuser/node-bunyan-usergrid.png?branch=master)](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) } ]
})
```