LogConfig

Configuration of Agora SDK log files.

public static class LogConfig {
  public String filePath;
  public int fileSizeInKB;
  public int level = Constants.LogLevel.getValue(Constants.LogLevel.LOG_LEVEL_INFO);
}

Attributes

filePath

The complete path of the log files. Ensure that the path for the log file exists and is writable. You can use this parameter to rename the log files.

The default path is /storage/emulated/0/Android/data/<packagename>/files/agorasdk.log.

fileSizeInKB
The size (KB) of an agorasdk.log file. The value range is [128,20480]. The default value is 2,048 KB. If you set fileSizeInKByte smaller than 128 KB, the SDK automatically adjusts it to 128 KB; if you set fileSizeInKByte greater than 20,480 KB, the SDK automatically adjusts it to 20,480 KB.
Attention:

This method applies to the agorasdk.log file only and does not take effect for the agoraapi.log file.

level

The output level of the SDK log file. See LogLevel.

For example, if you set the log level to WARN, the SDK outputs the logs within levels FATAL, ERROR, and WARN.