Provides methods to enable/disable log upload and set output log level.
Outputs all API logs.
Outputs logs of the ERROR level.
Outputs logs of the WARNING and ERROR levels, together with other useful information.
Outputs no log.
Outputs logs of the WARNING and ERROR levels.
Disable Log Upload
This method disables log upload.
By default, the log-uplaod function is disabled. If you have used enableLogUpload, call this method when you need to stop uploading the log.
Enable Log Upload
Call this method to enable log upload to Agora’s server.
The log-upload function is disabled by default, if you need to enable this function, please call this method before all the other methods.
If the user fails to join the channel, the log information will not be available on Agora’s server.
Set the Log Level
This method sets the output log level.
The log level follows the sequence of NONE, ERROR, WARNING, INFO, and DEBUG. For example, if you set the log level as
AgoraRTC.Logger.setLogLevel(AgoraRTC.Logger.INFO);, then you can see logs in levels ERROR and WARNING.