@zxhy-npm/send-sls-logger 1.0.0 → 1.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/package.json +1 -1
- package/readme.md +6 -2
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
## PC 使用方式
|
|
2
2
|
|
|
3
3
|
```javascript
|
|
4
|
-
import
|
|
4
|
+
import SLSLog from '@zxhy-npm/send-sls-logger';
|
|
5
|
+
|
|
6
|
+
const slsLog = SLSLog({});
|
|
5
7
|
slsLog.init({
|
|
6
8
|
defaultData: logDefaultData, // 默认带的数据
|
|
7
9
|
defaultExclude: ["模拟器", "ResizeObserver"], // 需要排除的数据
|
|
@@ -20,7 +22,9 @@ slsLog.info({ msg: "这是一条默认日志" });
|
|
|
20
22
|
## 小程序 使用方式
|
|
21
23
|
|
|
22
24
|
```javascript
|
|
23
|
-
import
|
|
25
|
+
import MiniLog from "@zxhy-npm/send-sls-logger/lib/mini";
|
|
26
|
+
|
|
27
|
+
const miniLog = MiniLog({});
|
|
24
28
|
miniLog.init({
|
|
25
29
|
defaultData: logDefaultData, // 默认带的数据
|
|
26
30
|
defaultExclude: ["模拟器", "ResizeObserver"], // 需要排除的数据
|