Switchover of log files
When a certain number of records are accumulated in a log file, the log file can be switched over to a new log file. As a result, it is possible to ensure that the following log files do not exceed a certain size:
-
Send Log
-
Receive Log
-
Observe Log
The files of the Post-Send Job Execution Log and Post-Receive Job Execution Log are switched over when the files of Send Log and Receive Log are switched over, accordingly.
Each process checks the number of log records in the corresponding log file before outputting log records, and if the number reaches the criterion for switchover, the log file is renamed as a log switchover file and a new log file is created.
By using the HULFT Management Console and utilities, you can refer to the logs without ever noticing the existence of such log files and log switchover files.
Specify this criterion for switchover for Log Rotation Record Count (logdelcount) in the System Environment Settings. For details on the System Environment Settings, refer to System Environment Settings.
The flow of switchover of log files is illustrated in Figure 2.36 .
1) Count check
Each process checks the number of log records in the corresponding log file before outputting log records. If the number has not reached the specified value, the process outputs the log records to the log file and ends.
2) Switchover
Each process renames the corresponding log file as the log switchover file when the number of log records in the log file reaches the criterion for switchover.
If at that time the log switchover file already exists, the file is deleted and then the log file is renamed.
3) Log output
Each process creates a new log file and outputs log records to the file.
Each process continues to output log records to the corresponding log file until the number of records in the log file reaches the criterion for switchover.
4) Log confirmation from HULFT Management Console
You can check the contents of log records in log files and log switchover files on the HULFT Management Console.