@webex/plugin-logger 1.144.2 → 1.146.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/README.md +11 -14
- package/dist/logger.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -4,13 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
> Logging plugin for the Cisco Webex JS SDK.
|
|
6
6
|
|
|
7
|
-
- [
|
|
8
|
-
- [
|
|
9
|
-
- [
|
|
10
|
-
|
|
11
|
-
- [
|
|
12
|
-
- [
|
|
13
|
-
- [
|
|
7
|
+
- [@webex/plugin-logger](#webexplugin-logger)
|
|
8
|
+
- [Install](#install)
|
|
9
|
+
- [Usage](#usage)
|
|
10
|
+
- [Log Levels](#log-levels)
|
|
11
|
+
- [Level Control](#level-control)
|
|
12
|
+
- [Maintainers](#maintainers)
|
|
13
|
+
- [Contribute](#contribute)
|
|
14
|
+
- [License](#license)
|
|
14
15
|
|
|
15
16
|
## Install
|
|
16
17
|
|
|
@@ -24,13 +25,9 @@ This is a plugin for the Cisco Webex JS SDK . Please see our [developer portal](
|
|
|
24
25
|
|
|
25
26
|
```js
|
|
26
27
|
const Webex = require('webex');
|
|
27
|
-
|
|
28
28
|
const webex = Webex.init();
|
|
29
|
-
webex.logger.get(id)
|
|
30
|
-
.then((logger) => {
|
|
31
|
-
console.log(logger);
|
|
32
|
-
})
|
|
33
29
|
|
|
30
|
+
webex.logger.info('Hello World'); // => wx-js-sdk Hello World
|
|
34
31
|
```
|
|
35
32
|
|
|
36
33
|
### Log Levels
|
|
@@ -50,7 +47,7 @@ This logger plugin supports different logging levels to control what gets output
|
|
|
50
47
|
- Example: `Websocket connected on port 4343`
|
|
51
48
|
- **info**
|
|
52
49
|
- More detailed logging of SDK information.
|
|
53
|
-
- Example: `Network status changed from DISCONNECTED to ONLINE`
|
|
50
|
+
- Example: `Network status changed from DISCONNECTED to ONLINE`
|
|
54
51
|
- **debug**
|
|
55
52
|
- Developer specific information, helpful with debugging issues.
|
|
56
53
|
- Example: `Network packet received, contents: {data}`
|
|
@@ -70,7 +67,7 @@ WEBEX_LOG_LEVEL="debug" npm start
|
|
|
70
67
|
```env
|
|
71
68
|
# .env file
|
|
72
69
|
WEBEX_LOG_LEVEL=debug
|
|
73
|
-
|
|
70
|
+
```
|
|
74
71
|
|
|
75
72
|
## Maintainers
|
|
76
73
|
|
package/dist/logger.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webex/plugin-logger",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.146.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Ian W. Remmel <iremmel@cisco.com>",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@babel/runtime-corejs2": "^7.14.8",
|
|
20
|
-
"@webex/webex-core": "1.
|
|
20
|
+
"@webex/webex-core": "1.146.1",
|
|
21
21
|
"lodash": "^4.17.21",
|
|
22
|
-
"@webex/common": "1.
|
|
22
|
+
"@webex/common": "1.146.1",
|
|
23
23
|
"envify": "^4.1.0"
|
|
24
24
|
}
|
|
25
25
|
}
|