mco_fh_log
向源处理应用程序日志写入一条消息。
void mco_fh_log(
/*IN*/ MCO_FH_LOG_LEVEL level,
/*INH*/ const char *file,
/*IN*/ int line,
/*IN*/ const char *msg
);
参数
level
MCO_FH_LOG_LEVEL
消息的日志级别。
file
const char
发出消息的源文件的名称。
line
int
源文件中的行数。
msg
const char
日志消息文本
返回
没有返回值。
示例
{
// 记录启动时间戳。
started_ = mco_system_get_current_time();
mco_fh_log(MCO_FH_LOG_INFO, __FILE__, __LINE__, "Test handler module started.");
...
}