Comparing version
@@ -171,3 +171,3 @@ 'use strict' | ||
function redirect(db, collection) { | ||
if (mongo !== undefined) { | ||
if (db !== undefined) { | ||
db = mongojs(db, [collection || 'chronicle']) | ||
@@ -174,0 +174,0 @@ module.exports.output = function (message, indent, callback) { |
{ | ||
"name": "chronicle", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Logging with support for MongoDB", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
@@ -47,2 +47,5 @@ var csl = require('../')(__filename) | ||
//if you redirect to undefined, it's a no-op | ||
chronicle.redirect(undefined) | ||
app.use(chronicle.requests(__filename)) | ||
@@ -49,0 +52,0 @@ app.get('/', function (req, res) { |
13412
0.57%347
0.58%