{"id":12703,"date":"2018-05-09T08:14:14","date_gmt":"2018-05-09T13:14:14","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagex3\/?p=12703"},"modified":"2018-05-09T08:14:14","modified_gmt":"2018-05-09T13:14:14","slug":"how-create-sage-x3-engine-in-log-mode","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2018\/05\/09\/how-create-sage-x3-engine-in-log-mode\/","title":{"rendered":"How create Sage X3 engine in log mode?"},"content":{"rendered":"<p>In many of scenario in debugging, we need to trace the variable values or any working logic in the background.<\/p>\n<p>This logs will help us to debug and work on the logic in the background.<\/p>\n<p>This function sets the Sage X3 engine in log mode. When log mode is activated, a file located in the &#8216;TMP&#8217; subfolder of the folder defined by the &#8220;ADXDIR&#8221; environment variable is opened and filled with log information.<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<p>I= openlog(\u201cTRA\u201d,1)<\/p>\n<div id=\"attachment_12704\" style=\"width: 263px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2018\/05\/opening-tag.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" aria-describedby=\"caption-attachment-12704\" class=\"wp-image-12704 size-full\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2018\/05\/opening-tag.png\" alt=\"opening tag\" width=\"253\" height=\"33\" \/><\/a><p id=\"caption-attachment-12704\" class=\"wp-caption-text\">Fig 1.1: Openlog<\/p><\/div>\n<p>This will start writing the logs in the logger.<\/p>\n<p>This log needs to be closed as well, or else it will keep on writing and occupying the space in disk.<\/p>\n<p>This log writing can be stopped with the below syntax:<\/p>\n<p>I= closelog()<\/p>\n<div id=\"attachment_12705\" style=\"width: 116px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2018\/05\/close-log-tag.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" aria-describedby=\"caption-attachment-12705\" class=\"wp-image-12705 size-full\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2018\/05\/close-log-tag.png\" alt=\"close log tag\" width=\"106\" height=\"30\" \/><\/a><p id=\"caption-attachment-12705\" class=\"wp-caption-text\">Fig1.2: Closelog<\/p><\/div>\n<p>After closelog, it will available in the TRA folder in reading mode.<\/p>\n<p><span style=\"font-size: Medium;\"><strong>About Us<\/strong><\/span><br \/>\nGreytrix 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.<\/p>\n<p><a href=\"http:\/\/www.greytrix.com\/\">Greytrix<\/a>\u00a0has some unique solutions of\u00a0<a href=\"http:\/\/www.greytrix.com\/product\/sage-crm\/gumu-sage-x3-integration\">Sage X3 integration with Sage CRM<\/a>,\u00a0<a href=\"http:\/\/www.greytrix.com\/product\/sage-x3\/gumu-x3-salesforce-integration\">Salesforce.com<\/a>, and\u00a0<a href=\"http:\/\/www.greytrix.com\/product\/magento-sage-integrations\/sage-x3-magento\">Magento eCommerce<\/a>\u00a0along with Sage X3 migration from Sage 50 US, Sage Pro, and QuickBooks. \u00a0We also offer best-in-class\u00a0<a href=\"http:\/\/www.greytrix.com\/product\/erp-development\/sage-x3\">Sage X3 customization and development services<\/a>\u00a0to Sage business partners, end users, and Sage PSG worldwide.<\/p>\n<p>For more information on Sage X3 Integration and Services, please contact us at\u00a0<a href=\"mailto:x3@greytrix.com\">x3@greytrix.com<\/a>. We will be glad to assist you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2018\/05\/09\/how-create-sage-x3-engine-in-log-mode\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[90,346,1386,1863,1942,1945],"class_list":["post-12703","post","type-post","status-publish","format-standard","hentry","category-installation","tag-adxdir-variable","tag-closelog-function","tag-openlog-function","tag-sage-x3-engine","tag-sage-x3-technical-assistance","tag-sage-x3-technical-blogs"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/12703","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/comments?post=12703"}],"version-history":[{"count":0,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/12703\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=12703"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=12703"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=12703"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}