Calls / React Native
Calls React Native v1
Calls React Native
Calls
React Native
Home
/
Calls
/
React Native

Logger

Sendbird Calls for React Native offers a logging system that allows you to keep track of a number of events and activities while running your app. You can closely monitor the operation of the Calls SDK and improve debug efficiency using our log system.


How to configure the log level

To display log output to the console, specify log level by using the setLogLevel() method as shown below:

SendbirdCalls.Logger.setLogLevel('info');

Log levels

Log levels can be used to control log outputs. If logging is enabled at the specified log level, it also enables logging at all higher levels. The priority level of logs are in the following order: none (0) < error (1) < warning (2) < info (3).

LevelDescription

none (default)

Not used for writing log outputs.

error

Logs that represent the failure of the Calls SDK execution.

warning

Logs that indicate potentially problematic situations.

info

Logs that track the general events of the Calls SDK.