@livedigital/client 3.57.0-release-preferred-dc.1 → 3.57.0
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 +6 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -77,7 +77,9 @@ Typical flow when the public API changes:
|
|
|
77
77
|
5. Commit the code changes together with `api/public-contract.api.md`.
|
|
78
78
|
|
|
79
79
|
## Debugging
|
|
80
|
+
|
|
80
81
|
### Log Levels
|
|
82
|
+
|
|
81
83
|
LiveDigital client uses the [debug](https://www.npmjs.com/package/debug) module to log to the browser console.
|
|
82
84
|
|
|
83
85
|
There are three log severities:
|
|
@@ -91,11 +93,13 @@ plus colon, followed by the log severity in upper case plus colon (just if “wa
|
|
|
91
93
|
and followed by the internal component name (if any) and the log message.
|
|
92
94
|
|
|
93
95
|
### Enable Logging
|
|
96
|
+
|
|
94
97
|
By default, logging is turned off. In order to enable it, the debug key in the browser's
|
|
95
98
|
localStorage must be set.
|
|
96
99
|
>Check the [debug](https://www.npmjs.com/package/debug) module documentation for further information regarding how to filter specific log messages based on namespace matching rules.
|
|
97
100
|
|
|
98
101
|
### Example
|
|
102
|
+
|
|
99
103
|
Within the <head> section of your HTML app:
|
|
100
104
|
```
|
|
101
105
|
<script>
|
|
@@ -106,7 +110,9 @@ Within the <head> section of your HTML app:
|
|
|
106
110
|
```
|
|
107
111
|
|
|
108
112
|
## Contributing
|
|
113
|
+
|
|
109
114
|
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
|
|
110
115
|
|
|
111
116
|
## License
|
|
117
|
+
|
|
112
118
|
[MIT](https://choosealicense.com/licenses/mit/)
|
package/package.json
CHANGED