Agora Java API Reference for Android
io.agora.rtc.RtcEngineConfig.LogConfig Class Reference

Public Attributes

String filePath
 
int fileSize
 
int level
 

Detailed Description

Log file configurations.

Member Data Documentation

◆ filePath

String io.agora.rtc.RtcEngineConfig.LogConfig.filePath

The absolute path of log files. The default file path is /storage/emulated/0/Android/data/<package name>/files/agorasdk.log. Ensure that the directory for the log files exists and is writable. You can use this parameter to rename the log files.

◆ fileSize

int io.agora.rtc.RtcEngineConfig.LogConfig.fileSize

The size (KB) of a log file. The default value is 1024 KB. If you set fileSize to 1024 KB, the SDK outputs at most 5 MB log files; if you set it to less than 1024 KB, the setting is invalid, and the maximum size of a log file is still 1024 KB.

◆ level

int io.agora.rtc.RtcEngineConfig.LogConfig.level

The output log level of the SDK.

  • LOG_LEVEL_INFO(0x0001): (Default) Output logs of the FATAL, ERROR, WARN and INFO level. We recommend setting your log filter as this level.
  • LOG_LEVEL_WARN(0x0002): Output logs of the FATAL, ERROR and WARN level.
  • LOG_LEVEL_ERROR(0x0004): Output logs of the FATAL and ERROR level.
  • LOG_LEVEL_FATAL(0x0008): Output logs of the FATAL level.
  • LOG_LEVEL_NONE(0x0000): Do not output any log.

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