diff --git a/tool4log.js b/tool4log.js index 1dcea73..d378029 100644 --- a/tool4log.js +++ b/tool4log.js @@ -9,7 +9,7 @@ module.exports = typeof uniCloud === 'undefined' ? { ccinfo(...args) { console.info({timeiso: new Date().toJSON()}, ...args) }, - ccerr(...args) { // console.error will appear in pm2's error log + ccerror(...args) { // console.error will appear in pm2's error log console.error({timeiso: new Date().toJSON()}, ...args) }, ccwarn(...args) { // console.warn will appear in pm2's error log @@ -27,7 +27,7 @@ module.exports = typeof uniCloud === 'undefined' ? { ccinfo(...args) { console.info(colors.green({timeiso: new Date().toJSON()}), ...args) }, - ccerr(...args) { // console.error will appear in pm2's error log + ccerror(...args) { // console.error will appear in pm2's error log console.error(colors.red({timeiso: new Date().toJSON()}), ...args) }, ccwarn(...args) { // console.warn will appear in pm2's error log