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 的目录中。