log4js
var log4js = require('log4js');
log4js.configure({
appenders: [
{ type: 'console' },
{ type: 'file', filename: 'logs/node_out.log', category: 'logger' }
],
replaceConsole:true
});
var logger = log4js.getLogger();
logger.info('hello');