HPlogo User Logging Programmer's Guide: HP 3000 MPE/iX Computer Systems > Chapter 5 User Logging in an Application

Using the WRITELOG Intrinsic

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

After the logfile is opened, the data can be written to the logfile with the WRITELOG intrinsic. Data will be passed in the WRITELOG intrinsic call and User Logging will add 9 words of information to the beginning of each record. The 9 words of information describe which process recorded the data, when it was recorded, which User Logging intrinsic was used to record it, and a checksum for validity checking. The data supplied by the user should include information about the action being recorded, such as:

  • What was the purpose of the transaction

  • What operation was done

  • Which file was modified

  • Which record in the file was modified

  • What did the data in the record look like after the action

Enough information must be included to allow the user to recreate the action from the log record if recovery is necessary.

Feedback to webmaster