@icreate/core
Advanced tools
Comparing version 0.0.21 to 0.0.22
@@ -170,3 +170,3 @@ /* | ||
* @LastEditors: 文贝 | ||
* @LastEditTime: 2022-03-11 09:55:07 | ||
* @LastEditTime: 2022-03-11 10:03:58 | ||
* @Descripttion: | ||
@@ -195,3 +195,3 @@ * @FilePath: \src\core\logger.ts | ||
if (color) { | ||
console.log(logObject, "color: " + color + ";font-size: 14px;font-weight: normal;line-height: 19px;font-family: Consolas, \"Courier New\", monospace;"); | ||
console.log(logObject, "color: " + color + ";font-size: 14px;font-weight: bold;line-height: 19px;font-family: Consolas, \"Courier New\", monospace;"); | ||
} | ||
@@ -201,3 +201,2 @@ else { | ||
} | ||
console.log(''); | ||
}; | ||
@@ -210,4 +209,5 @@ /** | ||
if (message === void 0) { message = ''; } | ||
this.log("%cDEBUG: " + message, LogLevels.DEBUG, this.color.debug); | ||
this.log("%c" + new Date().toLocaleString() + " [DEBUG] (" + message + ")", LogLevels.DEBUG, this.color.debug); | ||
this.log(logObject, LogLevels.DEBUG); | ||
this.log('', LogLevels.DEBUG); | ||
}; | ||
@@ -220,4 +220,5 @@ /** | ||
if (message === void 0) { message = ''; } | ||
this.log("%cINFO: " + message, LogLevels.INFO, this.color.info); | ||
this.log("%c" + new Date().toLocaleString() + " [INFO] (" + message + ")", LogLevels.INFO, this.color.info); | ||
this.log(logObject, LogLevels.INFO); | ||
this.log('', LogLevels.INFO); | ||
}; | ||
@@ -230,4 +231,5 @@ /** | ||
if (message === void 0) { message = ''; } | ||
this.log("%cWARN: " + message, LogLevels.WARN, this.color.warn); | ||
this.log("%c" + new Date().toLocaleString() + " [WARN] (" + message + ")", LogLevels.WARN, this.color.warn); | ||
this.log(logObject, LogLevels.WARN); | ||
this.log('', LogLevels.WARN); | ||
}; | ||
@@ -240,4 +242,5 @@ /** | ||
if (message === void 0) { message = ''; } | ||
this.log("%cERROR: " + message, LogLevels.ERROR, this.color.error); | ||
this.log("%c" + new Date().toLocaleString() + " [ERROR] (" + message + ")", LogLevels.ERROR, this.color.error); | ||
this.log(logObject, LogLevels.ERROR); | ||
this.log('', LogLevels.ERROR); | ||
}; | ||
@@ -250,4 +253,5 @@ /** | ||
if (message === void 0) { message = ''; } | ||
this.log("%cFATAL: " + message, LogLevels.FATAL, this.color.fatal); | ||
this.log("%c" + new Date().toLocaleString() + " [FATAL] (" + message + ")", LogLevels.FATAL, this.color.fatal); | ||
this.log(logObject, LogLevels.FATAL); | ||
this.log('', LogLevels.FATAL); | ||
}; | ||
@@ -254,0 +258,0 @@ return Logger; |
@@ -175,3 +175,3 @@ (function (global, factory) { | ||
* @LastEditors: 文贝 | ||
* @LastEditTime: 2022-03-11 09:55:07 | ||
* @LastEditTime: 2022-03-11 10:03:58 | ||
* @Descripttion: | ||
@@ -200,3 +200,3 @@ * @FilePath: \src\core\logger.ts | ||
if (color) { | ||
console.log(logObject, "color: " + color + ";font-size: 14px;font-weight: normal;line-height: 19px;font-family: Consolas, \"Courier New\", monospace;"); | ||
console.log(logObject, "color: " + color + ";font-size: 14px;font-weight: bold;line-height: 19px;font-family: Consolas, \"Courier New\", monospace;"); | ||
} | ||
@@ -206,3 +206,2 @@ else { | ||
} | ||
console.log(''); | ||
}; | ||
@@ -215,4 +214,5 @@ /** | ||
if (message === void 0) { message = ''; } | ||
this.log("%cDEBUG: " + message, exports.LogLevels.DEBUG, this.color.debug); | ||
this.log("%c" + new Date().toLocaleString() + " [DEBUG] (" + message + ")", exports.LogLevels.DEBUG, this.color.debug); | ||
this.log(logObject, exports.LogLevels.DEBUG); | ||
this.log('', exports.LogLevels.DEBUG); | ||
}; | ||
@@ -225,4 +225,5 @@ /** | ||
if (message === void 0) { message = ''; } | ||
this.log("%cINFO: " + message, exports.LogLevels.INFO, this.color.info); | ||
this.log("%c" + new Date().toLocaleString() + " [INFO] (" + message + ")", exports.LogLevels.INFO, this.color.info); | ||
this.log(logObject, exports.LogLevels.INFO); | ||
this.log('', exports.LogLevels.INFO); | ||
}; | ||
@@ -235,4 +236,5 @@ /** | ||
if (message === void 0) { message = ''; } | ||
this.log("%cWARN: " + message, exports.LogLevels.WARN, this.color.warn); | ||
this.log("%c" + new Date().toLocaleString() + " [WARN] (" + message + ")", exports.LogLevels.WARN, this.color.warn); | ||
this.log(logObject, exports.LogLevels.WARN); | ||
this.log('', exports.LogLevels.WARN); | ||
}; | ||
@@ -245,4 +247,5 @@ /** | ||
if (message === void 0) { message = ''; } | ||
this.log("%cERROR: " + message, exports.LogLevels.ERROR, this.color.error); | ||
this.log("%c" + new Date().toLocaleString() + " [ERROR] (" + message + ")", exports.LogLevels.ERROR, this.color.error); | ||
this.log(logObject, exports.LogLevels.ERROR); | ||
this.log('', exports.LogLevels.ERROR); | ||
}; | ||
@@ -255,4 +258,5 @@ /** | ||
if (message === void 0) { message = ''; } | ||
this.log("%cFATAL: " + message, exports.LogLevels.FATAL, this.color.fatal); | ||
this.log("%c" + new Date().toLocaleString() + " [FATAL] (" + message + ")", exports.LogLevels.FATAL, this.color.fatal); | ||
this.log(logObject, exports.LogLevels.FATAL); | ||
this.log('', exports.LogLevels.FATAL); | ||
}; | ||
@@ -259,0 +263,0 @@ return Logger; |
@@ -7,3 +7,3 @@ "use strict"; | ||
* @LastEditors: 文贝 | ||
* @LastEditTime: 2022-03-11 09:55:07 | ||
* @LastEditTime: 2022-03-11 10:03:58 | ||
* @Descripttion: | ||
@@ -33,3 +33,3 @@ * @FilePath: \src\core\logger.ts | ||
if (color) { | ||
console.log(logObject, "color: " + color + ";font-size: 14px;font-weight: normal;line-height: 19px;font-family: Consolas, \"Courier New\", monospace;"); | ||
console.log(logObject, "color: " + color + ";font-size: 14px;font-weight: bold;line-height: 19px;font-family: Consolas, \"Courier New\", monospace;"); | ||
} | ||
@@ -39,3 +39,2 @@ else { | ||
} | ||
console.log(''); | ||
}; | ||
@@ -48,4 +47,5 @@ /** | ||
if (message === void 0) { message = ''; } | ||
this.log("%cDEBUG: " + message, interfaces_1.LogLevels.DEBUG, this.color.debug); | ||
this.log("%c" + new Date().toLocaleString() + " [DEBUG] (" + message + ")", interfaces_1.LogLevels.DEBUG, this.color.debug); | ||
this.log(logObject, interfaces_1.LogLevels.DEBUG); | ||
this.log('', interfaces_1.LogLevels.DEBUG); | ||
}; | ||
@@ -58,4 +58,5 @@ /** | ||
if (message === void 0) { message = ''; } | ||
this.log("%cINFO: " + message, interfaces_1.LogLevels.INFO, this.color.info); | ||
this.log("%c" + new Date().toLocaleString() + " [INFO] (" + message + ")", interfaces_1.LogLevels.INFO, this.color.info); | ||
this.log(logObject, interfaces_1.LogLevels.INFO); | ||
this.log('', interfaces_1.LogLevels.INFO); | ||
}; | ||
@@ -68,4 +69,5 @@ /** | ||
if (message === void 0) { message = ''; } | ||
this.log("%cWARN: " + message, interfaces_1.LogLevels.WARN, this.color.warn); | ||
this.log("%c" + new Date().toLocaleString() + " [WARN] (" + message + ")", interfaces_1.LogLevels.WARN, this.color.warn); | ||
this.log(logObject, interfaces_1.LogLevels.WARN); | ||
this.log('', interfaces_1.LogLevels.WARN); | ||
}; | ||
@@ -78,4 +80,5 @@ /** | ||
if (message === void 0) { message = ''; } | ||
this.log("%cERROR: " + message, interfaces_1.LogLevels.ERROR, this.color.error); | ||
this.log("%c" + new Date().toLocaleString() + " [ERROR] (" + message + ")", interfaces_1.LogLevels.ERROR, this.color.error); | ||
this.log(logObject, interfaces_1.LogLevels.ERROR); | ||
this.log('', interfaces_1.LogLevels.ERROR); | ||
}; | ||
@@ -88,4 +91,5 @@ /** | ||
if (message === void 0) { message = ''; } | ||
this.log("%cFATAL: " + message, interfaces_1.LogLevels.FATAL, this.color.fatal); | ||
this.log("%c" + new Date().toLocaleString() + " [FATAL] (" + message + ")", interfaces_1.LogLevels.FATAL, this.color.fatal); | ||
this.log(logObject, interfaces_1.LogLevels.FATAL); | ||
this.log('', interfaces_1.LogLevels.FATAL); | ||
}; | ||
@@ -92,0 +96,0 @@ return Logger; |
{ | ||
"name": "@icreate/core", | ||
"version": "0.0.21", | ||
"version": "0.0.22", | ||
"description": "Ics核心包封装", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
157165
1936