log method
Implementation
log(
String api,
Map<dynamic, dynamic> param,
String resp,
) {
if (MethodChannelTencentCloudChatSdk.needLog) {
Future.delayed(const Duration(seconds: 1), () {
try {
var logs = "【$api】${json.encode(param)}|$resp";
uikitTrace(trace: logs);
} catch (_) {}
});
}
}