setLogConfig static method

FutureOr<int> setLogConfig(
  1. ByteRTCLogConfig logConfig
)

@detail api @author caofanglu @brief Configures the local log parameters of RTC SDK, including the logging level, directory, the limits for total log file size, and the prefix of log file name. @param logConfig Local log parameters. See ByteRTCLogConfig{@link #ByteRTCLogConfig}. @return - 0: Success. - –1: Failure. This API must be called before creating engine. - –2: Failure. Invalid parameters. @note This API must be called before createRTCEngine:delegate:{@link #ByteRTCEngine#createRTCEngine:delegate}.

Implementation

static FutureOr<int> setLogConfig(ByteRTCLogConfig logConfig) async {
  return await NativeClassUtils.nativeStaticCall(
    _$namespace,
    'setLogConfig:',
    [logConfig],
    'com.volcengine.rtc.hybrid_runtime',
  );
}