@tusi-ai/logger 0.0.1-beta.3 → 0.0.1

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 CHANGED
@@ -97,7 +97,7 @@ var Logger = class {
97
97
  * @param content - 日志正文。已配置 `contentPrefix` 时拼在前面
98
98
  */
99
99
  info(content) {
100
- console.log(content);
100
+ console.log(this.formatContent(content));
101
101
  this.report("info", content);
102
102
  }
103
103
  /**
@@ -106,7 +106,7 @@ var Logger = class {
106
106
  * @param content - 日志正文。已配置 `contentPrefix` 时拼在前面
107
107
  */
108
108
  error(content) {
109
- console.error(content);
109
+ console.error(this.formatContent(content));
110
110
  this.report("error", content);
111
111
  }
112
112
  report(level, content) {
package/dist/index.js CHANGED
@@ -91,7 +91,7 @@ var Logger = class {
91
91
  * @param content - 日志正文。已配置 `contentPrefix` 时拼在前面
92
92
  */
93
93
  info(content) {
94
- console.log(content);
94
+ console.log(this.formatContent(content));
95
95
  this.report("info", content);
96
96
  }
97
97
  /**
@@ -100,7 +100,7 @@ var Logger = class {
100
100
  * @param content - 日志正文。已配置 `contentPrefix` 时拼在前面
101
101
  */
102
102
  error(content) {
103
- console.error(content);
103
+ console.error(this.formatContent(content));
104
104
  this.report("error", content);
105
105
  }
106
106
  report(level, content) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tusi-ai/logger",
3
- "version": "0.0.1-beta.3",
3
+ "version": "0.0.1",
4
4
  "description": "吐司日志上报工具",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",