Hitachi

JP1 Version 12 JP1/Base User's Guide


2.4.5 Types of log files that cannot be monitored

The following types of log files cannot be monitored by the log file trapping function:

When monitoring sequential files (SEQ3):

A log file trap might be unable to monitor log entries correctly if the program that outputs the log information does not meet the following criteria:

  • After outputting log data, the program does not delete the log file for a certain period of time (at least one second longer than the monitoring interval).

    As shown in Figure 2-22, if the program deletes the log file immediately, the log file trap might not have time to read the logs that were output before the file was deleted.

  • If an error occurs when the program switches the output log file (by deleting or re-creating the file), the program tries again.

    In Windows, an attempt by a program to switch log files might fail while a log file trap is reading the current log file (that is, while the file is open).

    During the monitoring interval, the log file trap leaves the log file closed. This gives the outputting program time to retry the operation if log file switching fails. Thus, log output might fail if the application program does not have the ability to retry log switching.

    Figure 2‒21: Scenarios in which log output to sequential files (SEQ3) cannot be monitored

    [Figure]