setLogConfig static method
@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 to the log file. @param logConfig Local log parameters. See RTCLogConfig{@link #RTCLogConfig}. @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{@link #RTCEngine#createRTCEngine}.
Implementation
static FutureOr<int> setLogConfig(RTCLogConfig logConfig) async {
return await NativeClassUtils.nativeStaticCall(
_$namespace,
'setLogConfig',
[logConfig],
'com.volcengine.rtc.hybrid_runtime',
);
}