Adding messages to the concurrent program log file
In this recipe, we are going to write to the log file to show the values of parameters that are passed into the executable. This is useful as we need a way of debugging and logging activity when a program is being executed. We can also write other messages to the log file of the concurrent program to report activity when the executable runs.
The tasks we are going to perform in this recipe are as follows:
- Create a profile option to turn logging on or off
- Set the profile option value
- Add a procedure to write to the log file
- Writing to the log file
- Running the concurrent program
- Viewing the log file
Create a profile option to turn logging on or off
Firstly we are going to create a profile option. This profile ...