Skip to content

confuser/node-bunyan-usergrid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Bunyan stream for sending logs to Usergrid

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published