CAPL Script

WriteToLogEx

Syntax

void writeToLogEx(char format[], ...);

Function

Writes an output string to an ASCII logging file. Write is based on the C functionprintf. The compiler cannot check the format string. Illegal format entries will lead to undefined results. Different to thewriteToLogfunction, neither comment characters ("//") nor time stamps will be printed at the beginning of a line.

Parameters

Format string, variables or expressions Legal format expressions:

Return Values

// write marker with current date and time to logging filevoid MarkLogFileWithTimeString(void){char timeBuffer[64];getLocalTimeString(timeBuffer);writeToLogEx("===> %s",timeBuffer);}

[snprintf](/en/syntax/general/strings/snprintf) | [write](/en/syntax/general/panel/write) | [writeToLog](/en/syntax/general/math/writetolog)