Writes a text entry to a custom log file.
InkReturnCode INKTextLogObjectWrite
(INKTextLogObject
the_object
, char
*format
, ...)
is the
log object to write to. You must first create this log file with
the_object
INKTextLogObjectCreate
.
char *
is a
printf-style formatted statement to be printed.format
...
corresponds to the parameters in the formatted
statement. A new line is automatically added to the end.
Writes a text entry to a custom log file.
Suppose you call the following:
int my_value = 2001; INKTextLogObjectWrite (log, “my value: %d”, my_value);
If mode
is set to ADD_TIMESTAMP
, then the log
should look like:
<timestamp> my value: 2001
INK_SUCCESS
if the API is called
successfully.
INK_ERROR
if an error occurs while calling
the API or if an argument is invalid.