Portfolio/node_modules/redeyed/examples/sources/log.js
oitsjustjose 4e066bffc9 Init
2017-02-25 03:50:31 -05:00

8 lines
264 B
JavaScript

// First two lines will be needed when we replaced all console.xxx statements with log.xxx
var log = require('npmlog');
log.level = 'silly';
console.info('info ', 1);
console.log('log ', 2);
console.warn('warn ', 3);
console.error('error ', new Error('oh my!'));