• 此项目
    • 正在载入...
  • Sign in

胡斌 / srs

96x96
转到一个项目
Toggle navigation
  • 项目
  • 群组
  • 代码片段
  • 帮助
Toggle navigation pinning
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • srs
  • trunk
  • src
  • transcode
  • srs_tc_common.cpp
  • support build-in speex to aac,controled by the root config keyword: speex2aac on/off · 74e2be35
    74e2be35 浏览文件
    胡斌 authored 2017-06-07 08:08:37 +0800
srs_tc_common.cpp 419 字节
原文件 审查 历史 永久链接
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#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);
}