Chat UIKit Android View v3
Chat UIKit Android View
Chat UIKit
Android View
Version 3

Logger

Copy link

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.


Log levels

Copy link

The logger of Sendbird UIKit for Android is based on the log levels provided by Android. Log levels can be used to categorize and control log outputs. There are four different log levels with predefined values and each 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, WARN, 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.


How to configure the log level

Copy link

The default log level for Android is LogLevel.WARN, which means that UIKit will keep logs of both errors and warning messages. You can change the settings through the setLogLevel() method in the SendbirdUIkit class as shown below:

KotlinJava
SendbirdUIKit.setLogLevel(SendbirdUIKit.LogLevel.ALL)

List of parameters

Copy link
Parameter nameTypeDescription

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.


Log filtering

Copy link

Because all UIKit log messages are tagged with SBUIKIT, you can search for the messages from Sendbird UIKit using a keyword SBUIKIT.