compressLogs method
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 {
try {
ChatLog.v('compressLogs:');
Map result =
await platform_interface.Client.instance.callNativeMethod(ChatMethodKeys.compressLogs);
ChatError.hasErrorFromResult(result);
return result[ChatMethodKeys.compressLogs];
} catch (e) {
rethrow;
}
}