You can call
enableLogUpload to upload the logs of the Agora Web SDK to the Agora servers, and call
disaleLogUpload to stop the upload.
To ensure that the output log is complete, we recommend calling
enableLogUpload to upload logs before creating the Client object.
If you fail to join the channel, the logs are unavailable on the Agora servers.
setLogLevel to set the log output level. Select a level, and you can see the logs in the preceding levels.
See the sample code based on your SDK version.