Log Level – React Native
Log levels control how much diagnostic information the SDK emits. They allow you to adjust logging verbosity based on your debugging needs without affecting SDK behavior.
The SDK employs an event-driven logging model, where logs are generated only in response to SDK activity such as lifecycle events, state transitions, warnings, and errors. This ensures that logging remains lightweight and does not introduce unnecessary runtime overhead.
Log levels are hierarchical — higher verbosity levels automatically include logs from lower levels.
Log Level Comparison
| Level | Description | Includes | Recommended Use | Color |
|---|---|---|---|---|
| NONE | Disables all logging output. | – | When logging is not needed. | – |
| ERROR | Error logs only. | ERROR | When you only need failure notifications. | 🔴 |
| WARN | Warning and error logs. | WARN, ERROR | When you want visibility into potential issues alongside failures. | 🟡 |
| INFO (Default) | High-level SDK activity and state transitions. | INFO, WARN, ERROR | General monitoring of SDK activity, events, operations, and state changes. | Standard |
| DEBUG | INFO logs plus detailed diagnostic information. | DEBUG, INFO, WARN, ERROR | Investigating issues or when deeper diagnostic details are required. | 🔵 |
| ALL | All logs, including high-frequency real-time events. | ALL | Detailed analysis, troubleshooting complex scenarios, or low-level debugging. | Per event |
Setting the Log Level
The log level can be configured at any time:
- Before joining a meeting
- After joining a meeting
- During runtime
Enable Logs
import { setLogLevel, Constants } from "@videosdk.live/react-native-sdk";
setLogLevel(Constants.LogLevel.DEBUG);
Disable Logs
import { setLogLevel, Constants } from "@videosdk.live/react-native-sdk";
setLogLevel(Constants.LogLevel.NONE);
Got a Question? Ask us on discord

