submitLog static method

Future<void> submitLog()

Uploads logs to the ZEGO server.

Available since: 3.7.0 Description: By default, SDK creates and prints log files in the App's default directory. Each log file defaults to a maximum of 5MB. Three log files are written over and over in a circular fashion. When calling this function, SDK will auto package and upload the log files to the ZEGO server. Use cases: Developers can provide a business “feedback” channel in the App. When users feedback problems, they can call this function to upload the local log information of SDK to help locate user problems. When to call: None. Restrictions: The frequency limit is once per minute. Caution: 1.After calling this interface to upload logs, if you call destroyEngine or exit the App too quickly, there may be a failure.It is recommended to wait a few seconds, and then call destroyEngine or exit the App after receiving the upload success callback. 2.It is supported to call before createEngine. If it had called createEngine before, the last appid will be used to upload the log, otherwise the log will not be uploaded until the next createEngine.

Implementation

static Future<void> submitLog() async {
  return await ZegoExpressImpl.submitLog();
}