Simple console.log
replacement.
npm install --save https://github.com/aantthony/logger/archive/v1.0.0.tar.gz
var log = require('logger')('Login');
// 9720ms Login: Hello World!
log.info('Hello World!');
require('logger').setOutputStream(null);
require('logger').on('data', function (payload) {
// { component: 'Login',
// time: Thu Jun 18 2015 23:09:29 GMT+1000 (AEST),
// hostname: 'Anthony.local',
// level: 'info',
// message: 'Hello World!',
// pid: 46297,
// data: undefined }
console.log(payload);
});