{"id":742,"date":"2022-01-10T20:06:12","date_gmt":"2022-01-10T20:06:12","guid":{"rendered":"https:\/\/logicbuilder.integroscrm.com\/help\/?page_id=742"},"modified":"2022-06-10T10:03:53","modified_gmt":"2022-06-10T10:03:53","slug":"log","status":"publish","type":"page","link":"https:\/\/logicbuilder.integroscrm.com\/help\/log\/","title":{"rendered":"Log"},"content":{"rendered":"\n<p><a name=\"abstract\"><\/a>Outputs the given in inputs data to sugarcrm.log on the specified Log level. Often uses for debugging purposes, to find out results of a comparison, output API response, check previous entity attributes values, etc. The logging occurs whenever flow reaches LOG operator.<\/p>\n\n\n\n<p><strong>inputs:&nbsp;<\/strong><\/p>\n\n\n\n<p><span style=\"color:#9ed267;\">log level<\/span> &#8211; select from the list&nbsp;the severity of error or the importance of information, which you want to log. You can pick a value from the list. It&#8217;s common to use&nbsp;<em>Fatal<\/em>&nbsp;or&nbsp;<em>Error<\/em>&nbsp;levels to ensure that the logged info is available in&nbsp;sugarcrm.log.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Required: yes<\/li><\/ul>\n\n\n<div style=\"background-color: #ddeaff; border-left: 6px solid #0072b3; padding: 12px;\">\n<p>Follow SugarCRM documentation&nbsp;<a href=\"https:\/\/support.sugarcrm.com\/Knowledge_Base\/Troubleshooting\/Introduction_to_Sugar_Logging\/#Viewing_the_Log\" rel=\"noreferrer noopener\" target=\"_blank\">here<\/a>&nbsp;to access sugarcrm.log&nbsp;<\/p>\n<\/div>\n\n\n<p><span style=\"color:#6888c9;\">data to log<\/span> &#8211; provide any value for logging. Keep in mind, that normally you should avoid logging an entire entity via this operator, since those tend to be quite huge.&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Required: no<\/li><\/ul>\n\n\n\n<p><strong>outputs:&nbsp;<\/strong><\/p>\n\n\n<p><a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2021\/12\/img-68-d66fde80a26e4ab9a20dd2de5fe8b9fd.png\" rel=\"prettyPhoto\"><img decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2021\/12\/img-68-d66fde80a26e4ab9a20dd2de5fe8b9fd-1024x485.png\" alt=\"\" class=\"wp-image-378\"><\/a><\/p>\n\n\n<p>sugarcrm.log after execution of the flowchart above looks like this:<\/p>\n\n\n<p><a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2021\/12\/img-68-90b34b8e1552417ca47670aa08763e40.png\" rel=\"prettyPhoto\"><img decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2021\/12\/img-68-90b34b8e1552417ca47670aa08763e40.png\" alt=\"\" class=\"wp-image-378\"><\/a><\/p>\n\n\n<p>If a boolean result of comparison in sugarcem.log looks empty (like on the screenshot below) it means that result of the comparison is&nbsp;<em>false<\/em>.<\/p>\n\n\n<p><a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2021\/12\/img-68-d1f8f64e60964fb3b29a3e9681582318.png\" rel=\"prettyPhoto\"><img decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2021\/12\/img-68-d1f8f64e60964fb3b29a3e9681582318.png\" alt=\" \" =\"\"=\"\" class=\"wp-image-378\"><\/a><\/p><div style=\"text-align:left\" class=\"yasr-auto-insert-visitor\"><!--Yasr Visitor Votes Shortcode--><div id='yasr_visitor_votes_742' class='yasr-visitor-votes'><div class=\"yasr-custom-text-vv-before yasr-custom-text-vv-before-742\">Click to rate this post!<\/div><div id='yasr-vv-second-row-container-d9eb796628116' \n                                        class='yasr-vv-second-row-container'><div id='yasr-visitor-votes-rater-d9eb796628116'\n                                      class='yasr-rater-stars-vv'\n                                      data-rater-postid='742' \n                                      data-rating='0'\n                                      data-rater-starsize='24'\n                                      data-rater-readonly='false'\n                                      data-rater-nonce='60508256f2' \n                                      data-issingular='false'\n                                    ><\/div><div class=\"yasr-vv-stats-text-container\" id=\"yasr-vv-stats-text-container-d9eb796628116\"><svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" width=\"20\" height=\"20\" \n                               class=\"yasr-dashicons-visitor-stats\"\n                               data-postid=\"742\" \n                               id=\"yasr-stats-dashicon-d9eb796628116\">\n                            <path d=\"M18 18v-16h-4v16h4zM12 18v-11h-4v11h4zM6 18v-8h-4v8h4z\"><\/path>\n                          <\/svg><span id=\"yasr-vv-text-container-d9eb796628116\" class=\"yasr-vv-text-container\">[Total: <span id=\"yasr-vv-votes-number-container-d9eb796628116\">0<\/span>  Average: <span id=\"yasr-vv-average-container-d9eb796628116\">0<\/span>]<\/span><\/div><div id='yasr-vv-loader-d9eb796628116' class='yasr-vv-container-loader'><\/div><\/div><div id='yasr-vv-bottom-container-d9eb796628116' class='yasr-vv-bottom-container'><\/div><\/div><!--End Yasr Visitor Votes Shortcode--><\/div>","protected":false},"excerpt":{"rendered":"<p>Outputs the given in inputs data to sugarcrm.log on the specified Log level. Often uses for debugging purposes, to find out results of a comparison, output API response, check previous entity attributes values, etc. The logging occurs whenever flow reaches LOG operator. inputs:&nbsp; log level &#8211; select from the list&nbsp;the severity of error or the &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/logicbuilder.integroscrm.com\/help\/log\/\"> <span class=\"screen-reader-text\">Log<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"yasr_overall_rating":0,"yasr_post_is_review":"","yasr_auto_insert_disabled":"","yasr_review_type":"","footnotes":""},"tags":[],"class_list":["post-742","page","type-page","status-publish","hentry"],"yasr_visitor_votes":{"number_of_votes":0,"sum_votes":0,"stars_attributes":{"read_only":false,"span_bottom":false}},"_links":{"self":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/742","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/comments?post=742"}],"version-history":[{"count":5,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/742\/revisions"}],"predecessor-version":[{"id":1724,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/742\/revisions\/1724"}],"wp:attachment":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/media?parent=742"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/tags?post=742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}