setLogFile abstract method

Future<void> setLogFile(
  1. String filePath
)

Sets the log file.

Deprecated: Use the mLogConfig parameter in initialize method instead. Specifies an SDK output log file. The log file records all log data for the SDK’s operation. Ensure that the directory for the log file exists and is writable. Ensure that you call initialize immediately after calling the RtcEngine method, or the output log may not be complete.

  • filePath The complete path of the log files. These log files are encoded in UTF-8.

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.

Implementation

Future<void> setLogFile(String filePath);