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.
To display log output to the console, specify log level by using the
setLoggerLevel() method in the
SendBirdUIkit class as shown below:
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.
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
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.
Logs all detailed information of the events and activities, as well as the log messages in INFO, WARNING, 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.