CAPL Script

WriteToLog

Syntax

void writeToLog(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 thewriteToLogExfunction, comment characters ("//") and a time stamp at the beginning of each line will be printed.

Parameters

Format string, variables or expressions Legal format expressions:

Return Values

void MarkLogFile(int marker) {// marks line of ASCII logging file with an integerwriteToLog("===> %d",marker);}

[snprintf](/en/syntax/general/strings/snprintf) | [write](/en/syntax/general/panel/write) | [writeToLogEx](/en/syntax/general/math/writetologex)