Docs Menu

Docs HomeRealm

Log Realm Events - Java SDK

On this page

  • Set the Client Log Level

The SDK logs events to the Android system log automatically. You can view these events using Logcat.

Realm uses the log levels defined by Log4J. To configure the log level for Realm logs in your application, pass a LogLevel to RealmLog.setLevel():

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.

←  Bundle a Realm File - Java SDKConnect to an Atlas App Services backend - Java SDK →
Give Feedback
© 2022 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2022 MongoDB, Inc.