ICLogger
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. |
void | setRetentionDuration(int days) |
void | startup(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:
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. |
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 12 months ago