Browser Logs
The SDK records logs in the browser and sends session logs through the active SDK session. It does not create a log file on the client machine and does not require a local Dictation Service.
Browser storage
Before login, the SDK stores temporary records in browser Local Storage under INVOX_LOG-TEMP. After a successful login, it moves those records to INVOX_LOG-<USER_LOGIN> and associates subsequent session logs with that user.
How it works
Logging is available before and during a session. When the user logs in, the SDK initializes the session logger and sends any retained user logs. When the user logs out, it sends unsent session logs before returning to the temporary browser logger.
Logging targets
You can retain logs in Local Storage or send them through the active SDK session. At the same time you can show log messages in the browser console.
To modify the logging target, use INVOX.ChangeLogTarget().
Local Storage
In this mode, the Logger records all logs in the Browser Local Storage until reaching the maximum size set (1 MB). INVOX Logger sends the logs to the Server when:
- The user starts a session (Login).
- The user ends a session (Logout).
- The maximum size in Local Storage is reached.
Only Server
In this mode, the Logger sends each log through the active SDK session without storing it locally.
Browser Console
In this mode, the Logger only displays the information in the Browser Console.