The EnxRoom.postClientLogs() method is used to share Console Log with EnableX Tech Team for audit. The method sends 200KB of the most recent Console Log to EnableX. To start posting Console Logs to EnableX, you need to first enable Console logging using the EnxUtilityManager.enableLogs() method.

Enable Console Log

Class: EnxUtilityManager

Method: public void enableLogs(boolean isEnable)


isEnable – Boolean. Set to true to enable logging and false to disable.

Share Console Log

Class: EnxRoom

Method: public void postClientLogs() – No parameter required.

EnxUtilityManager  enxUtilityManager  = EnxUtilityManager.getInstance(current-class-instance);
enxUtilityManager.enableLogs(true); // To enable logging

room.postClientLogs(); // To upload Log to Enablex

// Notified after uploading log
public void onLogUploaded(JsonObject json) {
 // json { "result":0, "msg":"Success" }

Error Codes / Exceptions

5056Log File upload already in process.
5083Unable to upload an empty log file.