Skip to content

feat(samples): Enable Sentry Logs in the Android sample app#5766

Open
runningcode wants to merge 1 commit into
mainfrom
no/enable-logs-sample-app
Open

feat(samples): Enable Sentry Logs in the Android sample app#5766
runningcode wants to merge 1 commit into
mainfrom
no/enable-logs-sample-app

Conversation

@runningcode

Copy link
Copy Markdown
Contributor

The Android sample (sentry-samples-android) already emits structured logs via Sentry.logger().log(...) in MainActivity.onCreate, but they were silently dropped because Sentry Logs is disabled by default. This enables the feature via the manifest so the sample demonstrates logging out of the box.

<meta-data
  android:name="io.sentry.logs.enabled"
  android:value="true" />

Verified on a Pixel 10 (Android 17): the SDK reads io.sentry.logs.enabled as true at init and the logger() calls are no longer short-circuited as a no-op.

#skip-changelog (sample-only change, not user-facing)

🤖 Generated with Claude Code

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>
@github-actions

Copy link
Copy Markdown
Contributor
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 70bdbd7

@sentry

sentry Bot commented Jul 15, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
SDK Size io.sentry.tests.size 8.48.0 (1) release

⚙️ sentry-android Build Distribution Settings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant