compressLogs method

Future<String> compressLogs()

Compresses the debug log into a gzip archive.

Best practice is to delete this debug archive as soon as it is no longer used.

Return The path of the compressed gzip file.

Throws A description of the exception. See ChatError.

Implementation

Future<String> compressLogs() async {
  EMLog.v('compressLogs:');
  Map result = await ClientChannel.invokeMethod(ChatMethodKeys.compressLogs);
  try {
    ChatError.hasErrorFromResult(result);
    return result[ChatMethodKeys.compressLogs];
  } on ChatError catch (e) {
    throw e;
  }
}