Saving the API Log File
After configuring the API log, the StartApiLog function can be called to start collecting the API log data.
When this function is called, an API log file is created with the configured file name. The current date and time is appended to the file name of the API log file. For example, if the configured file name is apilog.dat, the API log file name will actually be apilog_yyyy-MM-dd_hh.mm.ss.ssss.dat. yyyy-MM-dd is the calendar year, month, and day when the API log file is created. hh.mm.ss.ssss is the hour (in 24-hour format), minute, and second (with four subdecimal digits) when the API log file is created.
Data of API function calls through every device and every module is stored to the same API log file.
Whenever the size of the API log file exceeds sizePerFile, a new API log file is created and subsequent API function call data will be saved to the new API log file. The file name of the new API log file will contain the date and time that it was created.There is no limit to the number of new API log files created this way.
To finish writing to the API log file, call the StopApiLog function. This function must be called to close the API log file before it can be opened to extract information.
Example Code for Saving the API Log File
//Start saving API function call data the API log file
wmxlib_Log->StartApiLog();
//Call API functions
//Finish saving API function call data to the API log file
wmxlib_Log->StopApiLog();