log static method

void log(
  1. CkTransportConfig config,
  2. String message, {
  3. String? tag,
  4. bool isError = false,
})

Implementation

static void log(
  CkTransportConfig config,
  String message, {
  String? tag,
  bool isError = false,
}) {
  if (!config.enableDebugLogs) return;

  if (isError) {
    CkLogger.apiError(message, tag: tag);
  } else {
    CkLogger.apiDebug(message, tag: tag);
  }
}