setLogFile abstract method

  1. @Deprecated('')
Future<void> setLogFile(
  1. String filePath
)

Sets the log files 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. Ensure that you call this method immediately after initializing RtcEngine , otherwise, the output log may not be complete.

Param filePath The absolute path of the log files. The default file path is C: \Users<user_name>\AppData\Local\Agora<process_name>\agorasdk.log. Ensure that the directory for the log files exists and is writable. You can use this parameter to rename the log files.

Implementation

@Deprecated('')
Future<void> setLogFile(String filePath);