How create Sage X3 engine in log mode?

By | May 9, 2018

In many of scenario in debugging, we need to trace the variable values or any working logic in the background.

This logs will help us to debug and work on the logic in the background.

This function sets the Sage X3 engine in log mode. When log mode is activated, a file located in the ‘TMP’ subfolder of the folder defined by the “ADXDIR” environment variable is opened and filled with log information.

Syntax:

I= openlog(“TRA”,1)

opening tag

Fig 1.1: Openlog

This will start writing the logs in the logger.

This log needs to be closed as well, or else it will keep on writing and occupying the space in disk.

This log writing can be stopped with the below syntax:

I= closelog()

close log tag

Fig1.2: Closelog

After closelog, it will available in the TRA folder in reading mode.

About Us
Greytrix is a one-stop solution provider for Sage ERP and Sage CRM needs. We provide complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third-party add-on development and implementation expertise.

Greytrix has some unique solutions of Sage X3 integration with Sage CRMSalesforce.com, and Magento eCommerce along with Sage X3 migration from Sage 50 US, Sage Pro, and QuickBooks.  We also offer best-in-class Sage X3 customization and development services to Sage business partners, end users, and Sage PSG worldwide.

For more information on Sage X3 Integration and Services, please contact us at x3@greytrix.com. We will be glad to assist you.