Imex_Default_Log_Proc_Get()

摘要

获取用于记录文本导入文件错误的默认过程。

语法

Imex_Default_Log_Proc_Get ()
参数 类型 说明
无参数

返回类型

ImexT_Log_Proc

默认日志记录过程。

头文件

imex.h

详情

此函数返回一个默认的错误日志记录过程,可作为调用 Imex_Topo_Import_Logged() 或 Imex_Traf_Import_Logged() 时的 log_proc 参数。

默认过程如下:

extern "C" {
static int
Imex_Default_Log_Write (const char *package, const char *severity_str,
	int line, const char *message)
	{
	int retval = 0;
	FIN (Imex_Default_Log_Write (package, severity, line, message));

	if (strcmp (severity_str,
		ImexI_Error_Level_String[ImexC_Error_Level_Critical]) == 0)
		{
		Ets_Msg_Confirm (NULL, "Error in import file",
			package, severity_str, message);
		}
	else if (strcmp (severity_str,
		ImexI_Error_Level_String[ImexC_Error_Level_Non_Critical]) == 0)
		{
		Ets_Msg_Info_Logged (NULL, package, severity_str, message);
		}
	else if (strcmp (severity_str,
		ImexI_Error_Level_String[ImexC_Error_Level_Warning]) == 0)
		{
		Ets_Msg_Info_Logged (NULL, package, severity_str, message);
		}
	else
		{
		Ets_Msg_Info_Logged (NULL, package, NULL, message);
		}
	FRET (retval);
	}
}

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com