Download Print this page

Hitachi HF-BT1000 User Manual page 93

Advertisement

6. LIBRARY FUNCTIONS
<Sample program>
We provide a sample program that uses this function in C. For information about the name of the
sample program and where you can find it, see "6.2 Sample Programs".
Log function exits (asynchronously) without waiting for the data to be actually
written to a log file. That means this function does not return an error even when
writing to a log file fails for some reason. We recommend important information
be recorded in the OS event log.
NOTE
• In order to reduce the amount of resources used, this function, for example,
opens and closes a pipe every time the function is called. That means this
function has relatively large overhead. Even when you record multiple lines of
message, use one function call to output the message.
• This function does not support a Unicode string. Always use an ANSI string.
The log entry for the message is stored in a text file. In a text file, the
combination of two characters "\r\n" is recognized as a newline.
If you want to include a newline in a string specified by lpbuffer, insert "\r\n" in
the string.
NOTICE
6-6

Advertisement

loading