Quantcast
Channel: Sage X3 – Tips, Tricks and Components
Viewing all articles
Browse latest Browse all 1519

How to generate a Log File

$
0
0

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.

LogFile1

Below is the explanation of the commands used to handle the log file:

  1. OUVRE_TRACE: Opens log file for writing
  2. ECR_TRACE: Write to log file
  3. FERME_TRACE: Closing log file
  4. LEC_TRACE: Displaying log file

Just check the screen shot of the Log File which is generated via code written above.

LogFile2

Hope this helps.


Viewing all articles
Browse latest Browse all 1519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>