{"id":4738,"date":"2021-12-06T19:21:02","date_gmt":"2021-12-06T11:21:02","guid":{"rendered":"https:\/\/www.enablex.io\/developer\/?page_id=4738"},"modified":"2025-04-11T16:54:23","modified_gmt":"2025-04-11T08:54:23","slug":"console-logging","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/flutter-toolkit\/console-logging\/","title":{"rendered":"Console Logging: Flutter SDK &#8211; Video API"},"content":{"rendered":"\n<p>The Web SDK writes different type of logs to the browser console to &nbsp;help in debugging at development phase. Portal provides two methods to access and control these log entries.<\/p>\n\n\n\n<h4>Table of Contents<\/h4>\n\n\n\n<ul><li><a href=\"#enable-log\">Enable Log<\/a><\/li><li><a href=\"#share-log\">Share Log<\/a><\/li><\/ul>\n\n\n\n<a name=\"enable-log\"><\/a>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3>Enable Log<\/h3>\n\n\n\n<p>The IO Operations to write log may be a considerably time consuming task. Therefore, you may like to have control to enable or disable logging.<\/p>\n\n\n\n<p><strong>Method: <\/strong><code>static Future&lt;void&gt; enableLogs(bool status)<\/code><\/p>\n\n\n\n<p><strong>Parameter<\/strong>: bool status &#8211; Set  <code>true <\/code>to enable  and <code>false <\/code>to disable logging<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">EnxRtc.enableLogs(true);\t\/\/ To enable logging\nEnxRtc.enableLogs(false);\t\/\/ To disable logging<\/pre>\n\n\n\n<a name=\"share-log\"><\/a>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3>Share Log with the Portal to audit<\/h3>\n\n\n\n<p>To share console logs with the portal Tech Team use the available method in SDK. The method sends latest 500 lines of console log to the portal using HTTP Post. You may need to build your own UI around it. Please request for&nbsp;user\u2019s consent before you post log to the Portal.<\/p>\n\n\n\n<p>You must enable logging before you can share it. <\/p>\n\n\n\n<p><strong>Method: <\/strong><code>static Future&lt;void&gt; postClientLogs()<\/code><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">EnxRtc.postClientLogs();\t\/\/ To post log to audit<\/pre>\n\n\n\n<div style=\"height:40px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<div class=\"wp-block-columns\">\n<div class=\"wp-block-column\">\n<p>\u2190 <a href=\"..\/take-image-snapshot\/\">Take Image Snapshot <\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<p class=\"has-text-align-center\"><a href=\"..\/\">Index<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-column\">\n<p class=\"has-text-align-right\"><a href=\"..\/enxrtc\/\">EnxRtc \u2013 Class<\/a> \u2192<\/p>\n<\/div>\n<\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Web SDK writes different type of logs to the browser console to &nbsp;help in debugging at development phase. Portal provides two methods to access and control these log entries. Table of Contents Enable Log Share Log Enable Log The IO Operations to write log may be a considerably time consuming task. Therefore, you may like to have control to enable or disable logging. Method: static Future&lt;void&gt; enableLogs(bool status) Parameter:&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3755,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ub_ctt_via":""},"featured_image_src":null,"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"featured":false,"featured-large":false},"uagb_author_info":{"display_name":"vcxdevwpadmin","author_link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/author\/vcxdevwpadmin\/"},"uagb_comment_info":0,"uagb_excerpt":"The Web SDK writes different type of logs to the browser console to &nbsp;help in debugging at development phase. Portal provides two methods to access and control these log entries. Table of Contents Enable Log Share Log Enable Log The IO Operations to write log may be a considerably time consuming task. Therefore, you may&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4738"}],"collection":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/comments?post=4738"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4738\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/3755"}],"wp:attachment":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/media?parent=4738"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}