{"id":4851,"date":"2021-12-10T15:37:39","date_gmt":"2021-12-10T07:37:39","guid":{"rendered":"https:\/\/www.enablex.io\/developer\/?page_id=4851"},"modified":"2025-04-10T20:14:07","modified_gmt":"2025-04-10T12:14:07","slug":"manage-log","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/cordova-toolkit\/manage-log\/","title":{"rendered":"Manage Log: Cordova\/Ionic SDK \u2013 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. The 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>enableLogs(enable)<\/code><\/p>\n\n\n\n<p><strong>Parameters:<\/strong> <code>@param {boolean} enable<\/code> &#8211; Set  <code>true <\/code>to enable  and <code>false <\/code>to disable logging<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">window.EnxRtc.enableLogs(true);\t        \/\/ To enable logging\nwindow.EnxRtc.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 Portal Tech Team use the available method in SDK. The method sends the 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 the user\u2019s consent before you post logs 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>postClientLogs()<\/code><\/p>\n\n\n\n<p><strong>Event Listeners:<\/strong> <code>onLogUploaded<\/code><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/ To post logs\nwindow.EnxRtc.postClientLogs();\n\/\/ Add Listener to listen success\nwindow.EnxRtc.addEventListner(\"onLogUploaded\",\nconsole.log(JSON.stringify(data.data));<\/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\/\"><\/a><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. The 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: enableLogs(enable) Parameters: @param {boolean} enable&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3719,"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. The 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\/4851"}],"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=4851"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4851\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/3719"}],"wp:attachment":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/media?parent=4851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}