srs_tc_common.cpp
419 字节
#include "srs_tc_common.hpp"
#include <stdarg.h>
#include <srs_kernel_log.hpp>
void tc_log(int log_level, const char *format, ...)
{
va_list args;
va_start(args, format);
if (log_level == LOG_LEVEL_INFO){
srs_info(format, args);
}
else if (log_level == LOG_LEVEL_WARN){
srs_warn(format, args);
}
else if (log_level == LOG_LEVEL_ERROR){
srs_error(format, args);
}
va_end(args);
}