change cclog's color to grey
This commit is contained in:
parent
6822930e78
commit
ec5058f5e4
@ -2,10 +2,10 @@ const colors = require('colors')
|
|||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
cclog(...args) {
|
cclog(...args) {
|
||||||
console.log(colors.green({time: new Date().toJSON()}), ...args)
|
console.log(colors.grey({time: new Date().toJSON()}), ...args)
|
||||||
},
|
},
|
||||||
ccinfo(...args) {
|
ccinfo(...args) {
|
||||||
console.info(colors.blue({time: new Date().toJSON()}), ...args)
|
console.info(colors.green({time: new Date().toJSON()}), ...args)
|
||||||
},
|
},
|
||||||
ccerr(...args) { // console.error will appear in pm2's error log
|
ccerr(...args) { // console.error will appear in pm2's error log
|
||||||
console.error(colors.red({time: new Date().toJSON()}), ...args)
|
console.error(colors.red({time: new Date().toJSON()}), ...args)
|
||||||
|
Loading…
Reference in New Issue
Block a user