IMIconnect Developer Hub

Welcome to the IMIconnect Developer Hub. You'll find all the resources to help you get started with IMIconnect quickly. We are here to support you if you get stuck. Let's jump right in!

Get Started    API Reference

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 Type
Method

File

getOutputLocation()
This method returns the default output location.


void

setLogOptions(ICLogType logType, ICLogTarget logTarget)
This method sets the log options for the logger.


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:

Parameter
Type
Description

logType

ICLogType

The type of logs that will be logged.

target

ICLogTarget

The 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:

Parameter
Type
Description

days

Integer

Number 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:

Parameter
Type
Description

context

Context

Specifies the Android context.

Updated about a month ago

ICLogger


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.