Skip to content

Commit 8b0aac7

Browse files
authored
feat(android): Change onboarding snippet to show xml first (#14502)
This aligns with other other android onboarding docs.
1 parent ecdd0ed commit 8b0aac7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

platform-includes/logs/setup/android.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
To enable logging, you need to initialize the SDK with the `logs.enabled` option set to `true`.
22

3+
```XML {filename:AndroidManifest.xml}
4+
<meta-data android:name="io.sentry.logs.enabled" android:value="true" />
5+
```
6+
37
```java {tabTitle: Java} {10}
48
import io.sentry.SentryLevel;
59
import io.sentry.android.core.SentryAndroid;
@@ -32,7 +36,3 @@ class MyApplication : Application() {
3236
}
3337
}
3438
```
35-
36-
```XML {filename:AndroidManifest.xml}
37-
<meta-data android:name="io.sentry.logs.enabled" android:value="true" />
38-
```

0 commit comments

Comments
 (0)