Sendbird Chat SDK for JavaScript 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 Sendbird SDK and improve debug efficiency using our logging system.
Log levels can be used to categorize and control log outputs. Sendbird Chat SDK for JavaScript has six different log levels with predefined log functions and they can filtered by your browser's Developer Tools.
Level | Description |
---|---|
NONE | No logs recorded. |
VERBOSE |
|
DEBUG |
|
INFO |
|
WARN |
|
ERROR |
|
The default log level set for Sendbird Chat SDK for JavaScript is LogLevel.WARN
, which means that Sendbird SDK will keep logs of both errors and warning messages. You can change the settings through the setLogLevel()
method in the SendBird
class as follows:
Parameter name | Type | Description |
---|---|---|
| LogLevel | Specifies the severity level of log to retrieve. Each one takes precedence over the other in the order of VERBOSE, DEBUG, INFO, WARN, and ERROR. You can also use NONE in order to not record any logs regarding Sendbird Chat SDK on the client app. |
The following logs show how Sendbird Chat SDK logs will appear.