log method

dynamic log(
  1. String api,
  2. Map param,
  3. String resp
)

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 (_) {}
    });
  }
}