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.
Call 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.
// Javascript
// Enable log upload
AgoraRTC.Logger.enableLogUpload();
// Set the log output level as INFO
AgoraRTC.Logger.setLogLevel(AgoraRTC.Logger.INFO);
// Javascript
// Enable log upload
AgoraRTC.enableLogUpload();
// Set the log output level as INFO
AgoraRTC.setLogLevel(1);