SDKs
Web SDK
Installation
Install the JavaScript SDK via CDN or NPM.
API
The Web3 SDK implements the standard Events API.
Configuration
Batching
To support high-performance environments, the SDK sends events in batches. The SDK queues in memory every event the track method logs.
Customize this behavior with the flushAt
and flushInterval
configuration parameters.
Debugging
Control the level of logs the SDK prints to the console with the following logLevel settings:
Log Level | Description |
---|---|
trace | Shows the most detailed diagnostic information, useful for tracing program execution flow. |
debug | Shows all messages, including function context information for each public method the SDK invokes. |
info | Shows informative messages about normal application operation. |
warn | Default. Shows error and warning messages. |
error | Shows error messages only. |