setLogFile method Null safety

Future<void> setLogFile(
  1. String filePath
)

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.

Deprecated

This method is deprecated from v3.3.1.

Note

  • Ensure that you call this method immediately after calling the RtcEngine.create method, otherwise the output log may not be complete.

Parameter filePath File path of the log file. The string of the log file is in UTF-8. The default file path is /storage/emulated/0/Android/data/<package name>="">/files/agorasdk.log for Android and App Sandbox/Library/caches/agorasdk.log for iOS.

Implementation

@override
@deprecated
Future<void> setLogFile(String filePath) {
  return _invokeMethod('setLogFile', {
    'filePath': filePath,
  });
}