7 Teleservice Application Framework
User Manual 259/374
7.3.12.13 utils_log_print
Function Description
sint32 utils_log_print (charn * opcn_LogString)
The function prints the string opcn_LogString in the log file that was already opened. The function adds a time
stamp to the string opcn_LogString.
If the string could not be added to the log file, it is printed to stdout.
Information Flow
Input Information
Output Information
Function executed without error.
Example
if (utils_open_log_file ("/var/run/log") == C_NO_ERR)
{
(void) utils_log_print ("Test");
(void) utils_log_close ();
}
7.3.12.14 utils_log_close
Function Description
sint32 utils_log_close (void)
The function closes the log file.
Information Flow
Output Information
Function executed without error
Example
if (utils_open_log_file ("/var/run/log") == C_NO_ERR)
{
(void) utils_log_print ("Test");
(void) utils_log_close ();
}