1.1.0 • Published 9 years ago

loglog-server-mongodb v1.1.0

Weekly downloads
1
License
ISC
Repository
github
Last release
9 years ago

Loglog Server MongoDB Data Source

MongoDB data source for a loglog server. This package is bundled with the loglog server module.

Install:

npm install loglog-server-mongodb

Usage:

var server = require('loglog-server');

server.set( 'source', require('loglog-server-mongodb')({
  connection: 'mongodb://host:port/db'
, collection: 'collection_that_stores_logs'
  // See all options for db.createCollection()
  // http://mongodb.github.io/node-mongodb-native/2.0/api-docs
, collectionOptions: {
    capped: true // (default)
  , size:   1000 * 1000 * 1000 * 4 // (default) 4gigs
  }
}));

server.listen();
1.1.0

9 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago