prg_log_tfile_assoc()

摘要

将日志与一个类型文件(tfile)关联。

语法

prg_log_tfile_assoc (log_store_hndl, assoc_type, assoc_name)
参数 类型 说明
log_store_hndl PrgT_Log_Store_Handle 所关注的日志存储。
assoc_type int 要与日志关联的文件的 tfile 类型。
assoc_name const char * 要与日志关联的 tfile 的文件名(不含路径或扩展名)。

返回类型

PrgT_Compcode

若日志目录已经设置,或日志与 tfile 位于同一目录,则返回 PrgC_Compcode_Failure;否则返回 PrgC_Compcode_Success。

头文件

prg_log.h

详情

本函数将 <log name>.olf.dir 目录移动到包含 assoc_name 的目录中。

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · 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