prg_log_text_export()

Abstract

Dumps the contents of a log to a text file.

Syntax

prg_log_to_text_export (log_store_hndl, path, options)
Argument Type Description
log_store_hndl PrgT_Log_Store_Handle Log store of interest.
path const char * Complete path and file name, including extension, for the text file.
options int PRGC_TRUE for a comma-separated file; PRGC_FALSE for a tab-separated file.

Return Type

PrgT_Compcode

PrgC_Compcode_Success if the export is successful; PrgC_Compcode_Failure otherwise.

prg_log.h

Details

The text file created by this function will contain a line of column titles followed one line of column values for each record in the log. Comma-separated files enclose each title or value in double quotes and separate them with commas. Tab-separated files put tabs between the titles or values in each line.

For example, a comma-separated file would have the following format:

"<title_1>","<title_2>", … ,"<title_n>"
"<value_1>","<value_2>", … ,"<value_n>"
	…
"<value_1>","<value_2>", … ,"<value_n>"

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