setLogFileSize abstract method
Sets the size of the SDK log file output.
Deprecated Deprecated: This method is deprecated. Use the logConfig parameter in initialize instead to set the log file size. By default, the SDK generates 5 SDK log files and 5 API call log files with the following rules: SDK log file names: agorasdk.log, agorasdk.1.log, agorasdk.2.log, agorasdk.3.log, agorasdk.4.log. API call log file names: agoraapi.log, agoraapi.1.log, agoraapi.2.log, agoraapi.3.log, agoraapi.4.log. Each SDK log file has a default size of 2,048 KB; API call log files also have a default size of 2,048 KB. All log files are UTF-8 encoded. The latest logs are always written to agorasdk.log and agoraapi.log. When agorasdk.log is full, the SDK performs the following operations: Deletes agorasdk.4.log (if exists). Renames agorasdk.3.log to agorasdk.4.log. Renames agorasdk.2.log to agorasdk.3.log. Renames agorasdk.1.log to agorasdk.2.log. Creates a new agorasdk.log file. The overwrite rule for agoraapi.log is the same as that of agorasdk.log. This method only sets the size of the agorasdk.log file and does not affect agoraapi.log.
fileSizeInKBytesThe size of a single agorasdk.log file in KB. The valid range is128, 20480, and the default value is 2,048 KB. If you set fileSizeInKByte to less than 128 KB, the SDK automatically adjusts it to 128 KB; if you set it to more than 20,480 KB, the SDK automatically adjusts it to 20,480 KB.
Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly. See Error Codes for details and resolution suggestions.
Implementation
Future<void> setLogFileSize(int fileSizeInKBytes);