Provides methods to enable/disable log upload and set output log level.
Outputs all logs.
Outputs logs of the ERROR level.
Outputs logs of the INFO, WARNING and ERROR levels.
Outputs no log.
Outputs logs of the WARNING and ERROR levels.
Disables Log Upload
This method disables log upload.
By default, the log-upload function is disabled. If you have used enableLogUpload, call this method when you need to stop uploading the log.
Enables 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 is not available on Agora’s server.
Sets 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 INFO, ERROR, and WARNING.