uploadLog method

Future<void> uploadLog()

Uploads logs to the ZEGO server.

Available since: 1.1.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: After createEngine. 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.If you want to call before createEngine, use the submitLog interface.

Implementation

Future<void> uploadLog() async {
  return await ZegoExpressImpl.instance.uploadLog();
}