Noodles Practicing Medicine
Have ideas to improve npm?Join in the discussion! »

bunyan-usergrid

0.0.4 • Public • Published

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

Install

npm i bunyan-usergrid

DownloadsWeekly Downloads

6

Version

0.0.4

License

ISC

Last publish

Collaborators

  • avatar