npm install smellThe smelly place where logs are emitted. Subscribe and get strings from info, warn and err events. (Not using error since this bubbles up to an uncaughtError)
``js
// in some-module
var log = require('smell')();
log.info('some module is doing work');
log.warn('this ok?')
log.error('this is not ok:', failObject);
exports.log = log;
// in app.js
var em = require('some-module');
em.on('info', console.log);
em.on('warn', console.warn);
em.on('err', console.error);
``