Sendbird UIKit for React 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 can be used to categorize and control log outputs. The logger in UIKit for React has four different log levels with predefined values and uses three different colors to distinguish each of them.
Logs general events of UIKit.
Logs unexpected events which wouldn’t affect the operation of UIKit, but might cause problems.
Logs what have caused failures in the specific events, but not an UIKit-wide failure.
all (respective to level)
Logs all detailed information of the events and activities, including info, warning, and error. The values of all and debug work the same way.
By default, log levels for Sendbird UIKit for React are turned off. You can change the settings through the
config.logLevel prop in the
App components as follows:
string or array
Specifies one or more severity levels of log to retrieve. You can select either a single or multiple log level types. Acceptable values are none, error, warning, info, all, and debug.
Log messages as output are displayed on the console in the order as follows: