log.js 264 字节 原文件 审查 历史 永久链接 1 2 3 4 5 6 7 8 // 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!'));