sdk.log
Home > @matterway/sdk > Log
Log namespace
Enumerations
Enumeration | Description |
---|---|
LogType |
Functions
Function | Description |
---|---|
downloadReport(ctx) | Downloads the logs as a JSON file through the browser. |
saveSnapshot(ctx) | Takes the snapshot of the current page and saves it to the logger instance. If the logger is not initialized, it will throw an error. |
sendLogs(apiURL) | Sends the collected logs to the logger API. Returns a promise that resolves to true if the logs were sent successfully, false otherwise. You can optionally pass the API URL to send the logs to. If no URL is passed, the logs will be sent to the default logger API. |
useLogger(init) |
Interfaces
Interface | Description |
---|---|
BrowserInfo | |
Log | |
SkillInfo |