Download Print this page

Hitachi HF-BT1000 User Manual page 92

Advertisement

6.1.4 Log function (MConWriteMessage)
<Name>
MConWriteMessage - Logging
<Syntax>
#include <hfbras.h>
VOID WINAPI MConWriteMessage(LPSTR lpBuffer);
<Description>
The MConWriteMessage function writes the specified message (characters) to a log file (file
name: hfwrasa.log or hfwrasb.log).
The message is written along with the time stamp.
Two log files are available and the size of each file is 64 KB. When the size of the log recorded in
the currently used log file exceeds 64 KB, the log file used for logging is switched to another log
file.
The parameters of this function are explained below.
lpBuffer:
This parameter specifies a pointer to a string that contains the message (characters) to be
written.
In order to easily identify the application that records each log entry, specify a message that
starts with the name of the application, for example.
<Checking log information>
This function records log information in the text format in the following files.
• %ProgramFiles%\HFWRAS\log\hfwrasa.log
• %ProgramFiles%\HFWRAS\log\hfwrasb.log
You can check log information by opening the files above using an text editor such as Notepad.
The format of log information is as follows.
YYYY/MM/DD hh:mm:ss - Specified log information
YYYY/MM/DD hh:mm:ss - Specified log information
YYYY/MM/DD hh:mm:ss - Specified log information
Initially, each of the above files is filled with EOF (ASCII code: 0x1a).
:
Figure 6-1 Format of Log Information
6-5
6. LIBRARY FUNCTIONS
YYYY: Year (in AD)
MM: Month
DD: Day
hh: Hour (24-hour clock)
mm: Minute
ss: Second

Advertisement

loading