Docs Menu
Docs Home
/ /
Atlas Device SDKs
/ /

Set the Client Log Level - React Native SDK

Changed in version realm@12.0.0: Deprecated in favor of Realm Logger

Warning

This page shows how to set a Sync client log level in Realm React Native SDK versions 11.10.2 and earlier. Realm React Native SDK v12.0.0 supersedes this logging implementation with a Realm logger you can set and configure for your application. For information on how to set a Realm logger in a later version, refer to Logging - React Native SDK.

You can set the realm Sync client log level by calling Realm.App.Sync.setLogLevel() with your Realm.App.

Example

In the following example, an application developer sets the sync client log level to "debug".

Realm.App.Sync.setLogLevel(app, "debug");

Tip

To diagnose and troubleshoot errors while developing your application, set the log level to debug or trace. For production deployments, decrease the log level for improved performance.

Back

Partition-Based Sync

Next

Stream Data to Atlas