bunyan-cloudant
This is a bunyan plugin for Cloudant. It allows you to 'stream' your bunyan logs to Cloudant.
A "stream" is Bunyan's name for where it outputs log messages
Install
npm install bunyan-cloudant
Usage
const bunyan = ;const CloudantStream = ; const cloudantStream = cloudant: url: processenvCOUCHDB_URL dbName: 'server-logs'; const L = bunyan;
Options
CloudantStream
takes the following options
{
cloudant: { // required
uri: 'http://user:pass@www.cloudant.com'
},
dbName: 'logs', // required
log: myParentBunyanLogger // optional
}
Required Props
The cloudant
property (required) must conform to cloudant
's Initialization object. See the
Initialize section.
The dbName
property (required) is the name Cloudant datbase that to 'stream' logs
The log
property (optional) specifies a parent Bunyan logger