JavaScript
UIKit Logger

Log level

By default, log levels for Sendbird UIKit for React are turned off. You can set them through the config.logLevel prop in the SendBirdProvider or App components.

Light Color Skin
Copy
// Output all logs
<SendbirdProvider appId={appId} userId={userId} config={{ logLevel: 'info' }} >
    ...
</SendbirdProvider>

// Output only specific logs
<SendbirdProvider appId={appId} userId={userId} config={{ logLevel: ['info', 'warning'] }} >
    ...
</SendbirdProvider>
ParameterTypeDescription

config.logLevel

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 levels

LevelDescription

info (gray)

Logs general events of UIKit.

warning (oranage)

Logs unexpected events which wouldn’t affect the operation of UIKit, but might cause problems.

error (red)

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.


Log format

Log messages as output are displayed on the console in the order as follows:

Light Color Skin
Copy
{tag} | {level} | {date time} | {message}