Android
Ui Kit Key Logger

Logger

Sendbird UIKit for Android offers a logging system that allows you to keep track of a number of events and activities including data flow, error, and information while running your application. You can closely monitor the operation of the UIKit SDK and improve debug efficiency using our logging system.


How to enable logging in the SDK

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

Light Color Skin
Copy
SendBirdUIKit.setLogLevel(SendBirdUIKit.LogLevel.ALL);
Parameter nameTypeDescirption

level

LogLevel

Specifies the severity level of log to retrieve. One takes precedence over the other in the order of ALL, INFO, WARN, and ERROR.

Note: The default log level for Andriod is LogLevel.WARN, which means that UIKit will keep logs of both erros and warning messages.


Log filtering

All UIKit log messages are tagged with SBUIKIT. If you want to see the log messages from UIKit, you can search for the messages with a keyword SBUIKIT.


Log levels

Log levels can be used to control log outputs. Android offers 4 different log levels with predefined values and one takes precedence over the other in the following order: ALL (VERBOSE) > INFO > WARN > ERROR.

Level (value)Description

ALL (2)

Logs all detailed information of the events and activities, as well as the log messages in INFO, WARNING, and ERROR.

INFO (4)

Logs the general events that take place in the UIKit, as well as the log messages in WARN and ERROR.

WARN (5)

Logs unexpected events which wouldn’t affect the operation of UIKit but might cause problems. This log level also shows the log messages in ERROR.

ERROR (6)

Logs what have caused failures in the specific events, but not an UIKit-wide failure.

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