bunyan-couchdb-stream

0.1.1 • Public • Published

bunyan-couchdb-stream

Build Status Coverage Status Dependency Status devDependency Status

A writable stream that writes log JSON objects (as generated by bunyan) to CouchDB / PouchDB

var bunyan = require('bunyan');
var LogStream = require('bunyan-couchdb-stream');

var log = bunyan.createLogger({
  name: 'test',
  streams: [{
    stream: new LogStream('http://127.0.0.1:5895/mydb'),
    type: 'raw' // this is required
  }],
});

log.info({foo: 'bar'}, 'hello world');

If the database does not exists, bunyan-couchdb-stream will try to create it.

install

npm i bunyan-couchdb-stream

Downloadsweekly downloads

2

version

0.1.1

license

Apache-2.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability