LogConfig

Used to configure the 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);
  }

Properties

filePath
Full path of the log file. Agora recommends using the default log directory. If you need to change the default directory, ensure that the specified directory exists and has write permissions. The default path is /storage/emulated/0/Android/data/<packagename>/files/agorasdk.log.
fileSizeInKB
Size of the agorasdk.log file in KB. The valid range is [128, 20480], and the default value is 2048.
  • If the set value is less than 128, the SDK automatically adjusts it to 128.
  • If the set value is greater than 20480, the SDK automatically adjusts it to 20480.
level
Log output level of the SDK log file. See LogLevel.
  • When set to WARN, the SDK outputs logs of levels FATAL, ERROR, and WARN.