Skip to content

Commit 0b8ad15

Browse files
runningcodeclaude
andauthored
feat(samples): Enable Sentry Logs in the Android sample app (#5766)
The Android sample already emits structured logs via Sentry.logger() in MainActivity.onCreate, but they were silently dropped because the Logs feature is disabled by default. Enable it through the manifest so the sample demonstrates the logging feature out of the box. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent a212e8f commit 0b8ad15

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎sentry-samples/sentry-samples-android/src/main/AndroidManifest.xml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@
130130
android:name="io.sentry.debug"
131131
android:value="${sentryDebug}" />
132132

133+
<!-- how to enable Sentry Logs (Sentry.logger() calls are dropped unless this is on)-->
134+
<meta-data
135+
android:name="io.sentry.logs.enabled"
136+
android:value="true" />
137+
133138
<!-- how to disable verbose logging of the session replay feature-->
134139
<meta-data
135140
android:name="io.sentry.session-replay.debug"

0 commit comments

Comments
 (0)