Allows control of the internal logging system.

The SDK logging system can output information that can help identify operational issues, there are two levels of information, a minimal set for production builds and a more verbose set intended for development builds.

Public Methods

Return TypeMethod
FilegetOutputLocation()
This method returns the default output location.
voidsetLogOptions(ICLogType logType, ICLogTarget logTarget)
This method sets the log options for the logger.
voidsetRetentionDuration(int days)
voidstartup(Context context)

getOutputLocation


This method returns the default output location.

  Return value: Returns absolute directory.

setLogOptions


This method sets the log options for the logger.

  Syntax: void setLogOptions(ICLogType logType, ICLogTarget target)

  Parameters:

ParameterTypeDescription
logTypeICLogTypeThe type of logs that will be logged.
targetICLogTargetThe target on which the logs will be displayed/recorded.

setRetentionDuration


This method sets the retention duration of the logs. The logs will be kept during that duration and will be automatically purged after.

  Syntax: void setRetentionDuration(int days)

  Parameters:

ParameterTypeDescription
daysIntegerNumber of days after which the logs will be purged.

startup


This method is used to Initialize the logging system.

  Syntax: void startup(Context context)

  Parameters:

ParameterTypeDescription
contextContextSpecifies the Android context.