TraceComTextFile

TraceComTextFile


Declaration

void (_stdcall * TraceComTextFile)(HOBJ LnID, char *FileName, unsigned int MaxFileSize, char *Str);

Parameters

LnId

Communication line ID.

FileName

File name.

MaxFileSize

Maximal size of log file in MB.

Str

Array of characters that will be saved into log file.

Description

The procedure enables to save any record to the log file that is defined by FileName parameter. The files are saved into Trace directory of an application.
Note: FileName can also contain directory names, e.g. "subdir1/mylog.txt" or "../anotherdir/mylog.txt".