TraceComErrorFile

TraceComErrorFile


Declaration

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

Parameters

LnId

Communication line ID.

FileName

File name.

MaxFileSize

Maximal size of log file.

Str

Array of character that is about to save into the log file.

Description

The procedure enables to save an error record into a 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".