Calls SDKs Android v1
Calls SDKs Android
Calls SDKs
Android
Version 1

Logger

Copy link

Calls SDK for Android offers a logging system that allows you to keep track of a number of events and activities while running your app. You can closely monitor the operation of the Calls SDK and improve debug efficiency using our log system.


How to enable logging in the SDK

Copy link

To display log output to the console, specify log level by using the setLoggerLevel() method as shown below:

SendBirdCall.setLoggerLevel(SendBirdCall.LOGGER_INFO);

Log levels

Copy link

Log levels can be used to control log outputs. If logging is enabled at the specified log level, it also enables logging at all lower levels. The priority level of logs are in the following order: LOGGER_NONE (0) < LOGGER_ERROR (1) < LOGGER_WARNING (2) < LOGGER_INFO (3).

List of logger levels

Copy link
Logger levelDescription

LOGGER_NONE (default)

Not used for writing log outputs.

LOGGER_ERROR

Logs that represent the failure of the Calls SDK execution.

LOGGER_WARNING

Logs that indicate potentially problematic situations.

LOGGER_INFO

Logs that track the general events of the Calls SDK.

Note: Calls SDK for Android's priority level of logs is different from that of Calls SDKs for iOS and JavaScript.


Log format

Copy link

The log output follows the general Android log format.