mirror of
https://github.com/MCSManager/MCSManager.git
synced 2024-11-21 03:12:10 +08:00
parent
14c47ca5a4
commit
e7f943679a
@ -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 报告器
|
||||
|
Loading…
Reference in New Issue
Block a user