@tusi-ai/logger 0.0.1-beta.2 → 0.0.1-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -0
- package/dist/index.js +2 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -97,6 +97,7 @@ var Logger = class {
|
|
|
97
97
|
* @param content - 日志正文。已配置 `contentPrefix` 时拼在前面
|
|
98
98
|
*/
|
|
99
99
|
info(content) {
|
|
100
|
+
console.log(this.formatContent(content));
|
|
100
101
|
this.report("info", content);
|
|
101
102
|
}
|
|
102
103
|
/**
|
|
@@ -105,6 +106,7 @@ var Logger = class {
|
|
|
105
106
|
* @param content - 日志正文。已配置 `contentPrefix` 时拼在前面
|
|
106
107
|
*/
|
|
107
108
|
error(content) {
|
|
109
|
+
console.error(this.formatContent(content));
|
|
108
110
|
this.report("error", content);
|
|
109
111
|
}
|
|
110
112
|
report(level, content) {
|
package/dist/index.js
CHANGED
|
@@ -91,6 +91,7 @@ var Logger = class {
|
|
|
91
91
|
* @param content - 日志正文。已配置 `contentPrefix` 时拼在前面
|
|
92
92
|
*/
|
|
93
93
|
info(content) {
|
|
94
|
+
console.log(this.formatContent(content));
|
|
94
95
|
this.report("info", content);
|
|
95
96
|
}
|
|
96
97
|
/**
|
|
@@ -99,6 +100,7 @@ var Logger = class {
|
|
|
99
100
|
* @param content - 日志正文。已配置 `contentPrefix` 时拼在前面
|
|
100
101
|
*/
|
|
101
102
|
error(content) {
|
|
103
|
+
console.error(this.formatContent(content));
|
|
102
104
|
this.report("error", content);
|
|
103
105
|
}
|
|
104
106
|
report(level, content) {
|