Log Function (Mconwritemessage); Figure 6-4 Format Of Log Information - Hitachi HF-W7500 65 Feature Manual

Industrial computer
Hide thumbs Also See for HF-W7500 65:
Table of Contents

Advertisement

6. LIBRARY FUNCTIONS

6.1.6 Log function (MConWriteMessage)

<Name>
MConWriteMessage - Logging
<Syntax>
#include <w2kras.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. When the size of
the log recorded in the log file currently used exceeds 64 KB, the log file used for logging is
switched to another log file.
・%ProgramFiles%\HFWRAS\log\hfwrasa.log
・%ProgramFiles%\HFWRAS\log\hfwrasb.log
You can check log information by opening the files above using an application 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-4 Format of Log Information

6-14
YYYY: Year (in AD)
MM: Month
DD: Day
hh: Hour (24-hour clock)
mm: Minute
ss: Second

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hf-w7500 60

Table of Contents