EasyManua.ls Logo

STW TC1 - Page 259

STW TC1
374 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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
Parameter
Range
Description
opcn_LogString
includes the log string
Output Information
Return Value
Description
C_NO_ERR
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
Return Value
Description
C_NO_ERR
Function executed without error
C_UNKNOWN_ERR
No open log file found
Example
if (utils_open_log_file ("/var/run/log") == C_NO_ERR)
{
(void) utils_log_print ("Test");
(void) utils_log_close ();
}

Table of Contents