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.
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.
Logs all detailed information of the events and activities, as well as the log messages in INFO, WARN, and ERROR.
Logs the general events that take place in the UIKit, as well as the log messages in WARN and ERROR.
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.
Logs what have caused failures in the specific events, but not an UIKit-wide failure.
How to configure the log level
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:
List of parameters
Specifies the severity level of log to retrieve. One takes precedence over the other in the order of ALL, INFO, WARN, and ERROR.
Because all UIKit log messages are tagged with
SBUIKIT, you can search for the messages from Sendbird UIKit using a keyword