|
|
@@ -137,6 +137,7 @@ function MagicJS(scriptName = "MagicJS", logLevel = "INFO") {
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
+ this.log(`${scriptName}, 开始执行!`);
|
|
|
}
|
|
|
/**
|
|
|
* @param {string} url
|
|
|
@@ -413,7 +414,7 @@ function MagicJS(scriptName = "MagicJS", logLevel = "INFO") {
|
|
|
this.post(options, err => {});
|
|
|
}
|
|
|
log(msg, level = "INFO") {
|
|
|
- if (!(this.logLevels[this._logLevel] < this.logLevels[level.toUpperCase()])) console.log(`[${level}] [${this.scriptName}]`+'\n'+`${msg}`+'\n');
|
|
|
+ if (!(this.logLevels[this._logLevel] < this.logLevels[level.toUpperCase()])) console.log(`██[${level}] [${this.scriptName}]`+'\n'+`${msg}`+'\n');
|
|
|
}
|
|
|
logDebug(msg) {
|
|
|
this.log(msg, "DEBUG");
|