setLogFileSize method
Sets the log file size (KB).
By default, the SDK outputs five log files, arsdk.log
, arsdk_1.log
, arsdk_2.log
, arsdk_3.log
, arsdk_4.log
, each with a default size of 1024 KB.
These log files are encoded in UTF-8. The SDK writes the latest logs in arsdk.log
. When arsdk.log is full, the SDK deletes the log file with the earliest modification time among the other four, renames arsdk.log to the name of the deleted log file, and create a new arsdk.log
to record latest logs.
Parameter fileSizeInKBytes
The size (KB) of a log file. The default value is 1024 KB. If you set fileSizeInKBytes
to 1024 KB, the SDK outputs at most 5 MB log files; if you set it to less than 1024 KB, the maximum size of a log file is still 1024 KB.
Implementation
@override
@deprecated
Future<void> setLogFileSize(int fileSizeInKBytes) {
return _invokeMethod(
'setLogFileSize', {'fileSizeInKBytes': fileSizeInKBytes});
}