README
logp
Persist log to mongodb in addition to console.
Sample code
var mongoose = require('mongoose')
, logger = require('./logger');
db = 'mongodb://localhost/careermunch'
mongoose.connect(db)
var logLevel = "INFO"; // options: "OFF", "ERROR", "WARN", "INFO", "DEBUG", "ALL"
var logTo = "both"; // options: both, console, db, none
logger.setup(logLevel, logTo, mongoose)
logger.error("Error message");
logger.warn("Warn message");
logger.info("Info message");
logger.debug("Debug message")