{"id":4266,"date":"2021-11-12T20:50:06","date_gmt":"2021-11-12T12:50:06","guid":{"rendered":"https:\/\/www.enablex.io\/developer\/?page_id=4266"},"modified":"2025-02-23T13:54:43","modified_gmt":"2025-02-23T05:54:43","slug":"share-log","status":"publish","type":"page","link":"https:\/\/doc.smartflomeet.ttns.in\/developer\/video-api\/client-api\/android-toolkit\/share-log\/","title":{"rendered":"Share Log with the Portal : Android SDK &#8211; Video API"},"content":{"rendered":"\n<p>The <code>EnxRoom.postClientLogs()<\/code> method is used to share Console Log with Portal Tech Team for audit. The method sends 200KB of the most recent Console Log to the Portal.  To start posting Console Logs to the portal, you need to first enable Console logging using the <code>EnxUtilityManager.enableLogs()<\/code> method.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3>Enable Console Log<\/h3>\n\n\n\n<p><strong>Class<\/strong>: <code>EnxUtilityManager<\/code><\/p>\n\n\n\n<p><strong>Method<\/strong>: <code>public void enableLogs(boolean<\/code> isEnable) <\/p>\n\n\n\n<p><strong>Parameter:<\/strong><\/p>\n\n\n\n<p><code>isEnable<\/code> &#8211; Boolean. Set to <em>true <\/em>to enable logging and <em>false <\/em>to disable.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3>Share Console Log<\/h3>\n\n\n\n<p><strong>Class<\/strong>:  <code>EnxRoom <\/code><\/p>\n\n\n\n<p><strong>Method<\/strong>: <code>public void postClientLogs()<\/code> &#8211; No parameter required. <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">EnxUtilityManager  enxUtilityManager  = EnxUtilityManager.getInstance(current-class-instance);\nenxUtilityManager.enableLogs(true); \/\/ To enable logging\n\nroom.postClientLogs(); \/\/ To upload Log to the Portal\n\n\/\/ Notified after uploading log\npublic void onLogUploaded(JsonObject json) {\n \/\/ json { \"result\":0, \"msg\":\"Success\" }\n}<\/pre>\n\n\n\n<p><strong>Error Codes \/ Exceptions<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Code<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>5056<\/td><td>Log File upload already in process. <\/td><\/tr><tr><td>5083<\/td><td>Unable to upload an empty log file. <\/td><\/tr><\/tbody><\/table><\/figure>\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=\"..\/enable-proximity-sensor\/\"><\/a><a href=\"..\/enable-proximity-sensor\/\">Enable Proximity Sensor<\/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 Base Class<\/a> \u2192<a href=\"\/developer\/how-to-use\/\"><\/a><\/p>\n<\/div>\n<\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The EnxRoom.postClientLogs() method is used to share Console Log with Portal Tech Team for audit. The method sends 200KB of the most recent Console Log to the Portal. To start posting Console Logs to the portal, you need to first enable Console logging using the EnxUtilityManager.enableLogs() method. Enable Console Log Class: EnxUtilityManager Method: public void enableLogs(boolean isEnable) Parameter: isEnable &#8211; Boolean. Set to true to enable logging and false to&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"parent":3740,"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 EnxRoom.postClientLogs() method is used to share Console Log with Portal Tech Team for audit. The method sends 200KB of the most recent Console Log to the Portal. To start posting Console Logs to the portal, you need to first enable Console logging using the EnxUtilityManager.enableLogs() method. Enable Console Log Class: EnxUtilityManager Method: public void&hellip;","_links":{"self":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4266"}],"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=4266"}],"version-history":[{"count":0,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/4266\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/pages\/3740"}],"wp:attachment":[{"href":"https:\/\/doc.smartflomeet.ttns.in\/developer\/wp-json\/wp\/v2\/media?parent=4266"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}