Every process needs to be traced as this helps in finding out the success/failure and even the reason of the failure of the process. All this is done with a log file, but now it becomes important to know how we are going to handle these log files for own customization in X3.
Whenever we code in X3 we would like to the system to print log same as the default X3 system works, below is the snippet of few lines of code which will make your life easy.
Below is the explanation of the commands used to handle the log file:
- OUVRE_TRACE: Opens log file for writing
- ECR_TRACE: Write to log file
- FERME_TRACE: Closing log file
- LEC_TRACE: Displaying log file
Just check the screen shot of the Log File which is generated via code written above.
Hope this helps.