rename ccerr to ccerror

This commit is contained in:
陆柯 2022-05-03 14:20:43 +08:00
parent 037a7c5948
commit 49fa78f5a6

View File

@ -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