0.0.4 • Published 7 years ago

bunyan-usergrid v0.0.4

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

bunyan-usergrid

Build Status

Send bunyan logs into Usergrid

Installation

npm install bunyan-usergrid

Usage

Ensure stream type is set to raw

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) } ]
  })
0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

8 years ago

0.0.1

8 years ago