Skip to content

Commit cc50829

Browse files
committed
Adjust other loggers tab set
1 parent 80d3246 commit cc50829

File tree

1 file changed

+36
-37
lines changed

1 file changed

+36
-37
lines changed

source/sdk/test-and-debug/log.txt

Lines changed: 36 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -160,40 +160,39 @@ Other Loggers
160160

161161
.. tabs-drivers::
162162

163-
tabs:
164-
- id: cpp
165-
content: |
166-
167-
The C++ SDK uses a sync logger that behaves differently than the rest of
168-
the examples on this page. You can set or change your sync client's log
169-
level to develop or debug your application. You might want to change the
170-
log level to log different amounts of data depending on the app's
171-
environment.
172-
173-
You can set the level of detail reported by the sync client logger to
174-
specify the level of output you want from the sync client. Get
175-
:cpp-sdk:`an instance of an App's sync manager
176-
<structrealm_1_1internal_1_1bridge_1_1sync__manager.html>`,
177-
and pass a :cpp-sdk:`realm::logger::level <structrealm_1_1logger.html>`
178-
to the ``set_log_level()`` member function:
179-
180-
.. literalinclude:: /examples/generated/cpp/quick-start.snippet.set-sync-log-level.cpp
181-
:language: cpp
182-
183-
- id: java
184-
content: |
185-
186-
The Java SDK uses an older Logger that may not behave like the other SDKs.
187-
The SDK logs events to the Android system log automatically. You can
188-
view these events using :android:`Logcat </studio/debug/am-logcat>`.
189-
190-
To access newer logging features, use the Kotlin SDK.
191-
192-
The Java SDK uses the log levels defined by `Log4J
193-
<https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Level.html>`_.
194-
To configure the log level for database logs in your application, pass a
195-
:java-sdk:`LogLevel <io/realm/log/LogLevel.html>` to
196-
:java-sdk:`RealmLog.setLevel() <io/realm/log/RealmLog.html#setLevel-int->`:
197-
198-
.. literalinclude:: /examples/generated/java/sync/SyncDataTest.snippet.set-client-log-level.java
199-
:language: java
163+
.. tab::
164+
:tabid: cpp
165+
166+
The C++ SDK uses a sync logger that behaves differently than the rest of
167+
the examples on this page. You can set or change your sync client's log
168+
level to develop or debug your application. You might want to change the
169+
log level to log different amounts of data depending on the app's
170+
environment.
171+
172+
You can set the level of detail reported by the sync client logger to
173+
specify the level of output you want from the sync client. Get
174+
:cpp-sdk:`an instance of an App's sync manager
175+
<structrealm_1_1internal_1_1bridge_1_1sync__manager.html>`,
176+
and pass a :cpp-sdk:`realm::logger::level <structrealm_1_1logger.html>`
177+
to the ``set_log_level()`` member function:
178+
179+
.. literalinclude:: /examples/generated/cpp/quick-start.snippet.set-sync-log-level.cpp
180+
:language: cpp
181+
182+
.. tab::
183+
:tabid: csharp
184+
185+
The Java SDK uses an older Logger that may not behave like the other SDKs.
186+
The SDK logs events to the Android system log automatically. You can
187+
view these events using :android:`Logcat </studio/debug/am-logcat>`.
188+
189+
To access newer logging features, use the Kotlin SDK.
190+
191+
The Java SDK uses the log levels defined by `Log4J
192+
<https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Level.html>`_.
193+
To configure the log level for database logs in your application, pass a
194+
:java-sdk:`LogLevel <io/realm/log/LogLevel.html>` to
195+
:java-sdk:`RealmLog.setLevel() <io/realm/log/RealmLog.html#setLevel-int->`:
196+
197+
.. literalinclude:: /examples/generated/java/sync/SyncDataTest.snippet.set-client-log-level.java
198+
:language: java

0 commit comments

Comments
 (0)