setTrtcLogLevel method

dynamic setTrtcLogLevel(
  1. TRTCLogLevel level
)

Implementation

setTrtcLogLevel(TRTCLogLevel level) {
  TRTC.setLogLevel(level);
  if (TCICConst.logFilePath != null) {
    if (TCICConst.logFilePath!.isNotEmpty) {
      if (!Directory(TCICConst.logFilePath!).existsSync()) {
        Directory(TCICConst.logFilePath!).createSync(recursive: true);
      }
      TRTC.setLogdir(TCICConst.logFilePath!);
      clearLogFilePath();
    }
  }
}