diff --git a/core/log.js b/core/log.js index bb8f5145..d14f6ebe 100644 --- a/core/log.js +++ b/core/log.js @@ -11,7 +11,7 @@ MCSERVER.log = function () { MCSERVER.infoLog = (info, value, colors = false) => { var date = new Date(); let infoStr = colors ? info : info.green; - console.log('[ '+date.getFullYear()+'-'+date.getMonth()+1+'-'+date.getDate()+' '+date.getHours()+':'+date.getMinutes()+':'+date.getSeconds()+' ] [ ' + infoStr + ' ] ' + (value + '').white); + console.log('[ '+(date.getFullYear()+'-'+date.getMonth()+1+'-'+date.getDate()).green+' '+(date.getHours()+':'+date.getMinutes()+':'+date.getSeconds()).blue+' ] [ ' + infoStr + ' ] ' + (value + '').white); } //error 报告器