Implementation
static int convertLogLevelEnum(LogLevelEnum loglevel) {
if (loglevel == LogLevelEnum.V2TIM_LOG_DEBUG) {
return LogLevel.V2TIM_LOG_DEBUG;
}
if (loglevel == LogLevelEnum.V2TIM_LOG_ERROR) {
return LogLevel.V2TIM_LOG_ERROR;
}
if (loglevel == LogLevelEnum.V2TIM_LOG_INFO) {
return LogLevel.V2TIM_LOG_INFO;
}
if (loglevel == LogLevelEnum.V2TIM_LOG_NONE) {
return LogLevel.V2TIM_LOG_NONE;
}
if (loglevel == LogLevelEnum.V2TIM_LOG_WARN) {
return LogLevel.V2TIM_LOG_WARN;
}
return LogLevel.V2TIM_LOG_NONE;
}