setLogFileSize abstract method

  1. @Deprecated('')
Future<void> setLogFileSize(
  1. int fileSizeInKBytes
)

Sets the size of a log file that the SDK outputs. By default, the SDK outputs five log files: agorasdk.log, agorasdk_1.log, agorasdk_2.log, agorasdk_3.log, and agorasdk_4.log. Each log file has a default size of 512 KB. These log files are encoded in UTF-8. The SDK writes the latest log in agorasdk.log. When agorasdk.log is full, the SDK deletes the log file with the earliest modification time among the other four, renames agorasdk.log to the name of the deleted log file, and create a new agorasdk.log to record the latest logs. If you want to set the size of the log file, you need to call this method before setLogFile , otherwise, the log will be cleared.

Param fileSizeInKBytes The size (KB) of a log file. The default value is 1024 KB. If you set fileSizeInKByte to 1024 KB, the maximum aggregate size of the log files output by the SDK is 5 MB. if you set fileSizeInKByte to less than 1024 KB, the setting is invalid, and the maximum size of a log file is still 1024 KB.

Implementation

@Deprecated('')
Future<void> setLogFileSize(int fileSizeInKBytes);