6. LIBRARY FUNCTIONS
6-5
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.
Figure 6-1 Format of Log Information
Initially, each of the above files is filled with EOF (ASCII code: 0x1a).
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
:
YYYY: Year (in AD)
MM: Month
DD: Day
hh: Hour (24-hour clock)
mm: Minute
ss: Second
Содержание HF-BT1000
Страница 1: ...BT 63 0004 01 ...
Страница 2: ...BT 63 0004 01 ...
Страница 15: ...This Page Intentionally Left Blank ...
Страница 79: ...This Page Intentionally Left Blank ...
Страница 103: ...This Page Intentionally Left Blank ...
Страница 111: ...This Page Intentionally Left Blank ...
Страница 127: ...This Page Intentionally Left Blank ...
Страница 129: ...This Page Intentionally Left Blank ...