Skip to main content

Logger.writeLogForiOS

The logs are disabled by default. In order to use ZohoSalesIQ.Logger.write() function. Ensure the bool value of ZohoSalesIQ.Logger.setEnabled(boolean value); is set as true.

 

Syntax

CopiedZohoSalesIQ.Logger.writeLogForiOS(log: string, level: string, callback: (success: boolean) => void);

Example

Copied ZohoSalesIQ.Logger.writeLogForiOS(“Debug log”,ZohoSalesIQ.Logger.INFO, (success) => {
            if success == true {
	
            }
  });

Log Level

CopiedZohoSalesIQ.Logger.INFO 
ZohoSalesIQ.Logger.WARNING
ZohoSalesIQ.Logger.ERROR