don't use console.log - use the logger module:
var logger = require('../../lib/logger');
...
logger.log('warning', msg, data);