Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bunyan-cloudant

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bunyan-cloudant

This is a [bunyan](https://github.com/trentm/node-bunyan) plugin for [Cloudant](https://cloudant.com/). It allows you to 'stream' your bunyan logs to Cloudant.

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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 = require('bunyan');
const CloudantStream = require('bunyan-cloudant');

const cloudantStream = new CloudantStream({
  cloudant: {
    url: process.env.COUCHDB_URL
  },
  dbName: 'server-logs'
});

export const L = bunyan.createLogger({
  name: 'my-app',
  streams: [{
    stream: process.stdout // stream to stdout
  }, {
    stream: cloudantStream // and stream to cloudant
  }]
});

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

LICENSE

Apache 2.0

Keywords

FAQs

Package last updated on 22 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc