clevertap-web-sdk
Advanced tools
Comparing version 1.0.0-beta.4 to 1.0.0-beta.5
{ | ||
"name": "clevertap-web-sdk", | ||
"version": "1.0.0-beta.4", | ||
"version": "1.0.0-beta.5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "clevertap.js", |
@@ -118,2 +118,20 @@ # CleverTap Web SDK | ||
### Debugging | ||
This section is applicable for all browsers such as, Chrome, Firefox, and Safari. Error messages and warnings are logged to the JS console of the browser. | ||
For verbose logging, enable verbose logging of all communication with the CleverTap servers by setting the ```WZRK_D``` variable in sessionStorage. In the developer console of your browser type, ```sessionStorage['WZRK_D'] = '';``` | ||
Alternatively, you can also set the log levels after calling ```clevertap.init()``` in the following way: | ||
```javascript | ||
clevertap.setLogLevel(LOG_LEVEL) | ||
// Here Log Levels is an integer that can be any of the folowing: | ||
// 0: disable all logs | ||
// 1: display only errors | ||
// 2: display errors and info | ||
// 3: display all logs | ||
``` | ||
## 𝌡 Example Usage | ||
@@ -120,0 +138,0 @@ * A [react application](https://github.com/CleverTap/clevertap-web-sdk/tree/master/example-apps/react) showing the integration of our SDK in a create react app project. |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
265212
4643
149