setDebug()

From Engineering Client Portal

Revision as of 07:34, 21 May 2017 by Admin (talk | contribs) (Created page with "{{Breadcrumb|}} {{Breadcrumb|Digital}} {{Breadcrumb|Android SDK API Reference}} {{CurrentBreadcrumb}} Category:Digital Category:Android SDK API Reference Newly introdu...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Engineering Portal / Digital / Android SDK API Reference / setDebug()
Newly introduced in SDK version 5.0.0 for International (Germany), this method enables developers to control the debugging feature that generates the additional SDK logs from the device. Debugging feature can be used for SDK integration purposes only and NOT in production environment.

The developer debug level will be set based on the value passed into this method. This is equivalent to passing the nol_devDebug parameter during App SDK Initialization.

Syntax

public static void setDebug(char debugState)

Input Parameters

Parameter Description
debugState Dev / Test environment: Pass a debug log level value (‘I’, ‘W’, ‘E’, or ‘D’) to enable debug logs and set the level of logging needed.
  • ‘I‘ (INFO): Displays the API calls and the input data from the application (validate player name, app ID, etc.). It can be used as certification Aid.
  • ‘W‘ (WARNING): Indicates potential integration / configuration errors or SDK issues.
  • ‘E‘ (ERROR): Indicates important integration errors or non-recoverable SDK issues.
  • ‘D‘ (DEBUG): Debug logs, used by the developers to debug more complex issues.

Production environment: Pass ‘A’ (LEVEL_DISABLE) to disable the debug log.

Output Parameters

Output Parameters (Return value) Description
void