getsentry / getsentry/sentry-java

Capture logcat output as attachment

オープン
#3,075 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
Android Attachments Improvement
主要言語
Kotlin
スター
1.4k
フォーク
478
平均マージ
2日 23時間
マージ済み PR(30日)
67

説明

### Problem Statement

Through this issue, we started capturing logcat logs as breadcrumb:

* https://github.com/getsentry/sentry-java/issues/1620

We used the gradle plugin and bytecode manipulation to capture the logcat API done by libraries in the app itself. But that means we're not capturing system logs, for example.

@romtsn said:

> this works for the app and libraries logcat calls, but not the system ones. Also it supports all Android versions, while this approach is from API 23 and above.

We received a PR in the .NET SDK
* https://github.com/getsentry/sentry-dotnet/pull/2926

That adds logcat logs as attachments (**opt-in**) with mime type `text/logcat`. And a ticket was created to have a custom preview in Sentry:

* https://github.com/getsentry/sentry/issues/61005

Ideally this is available for all cross platform SDKs like React Native and Flutter. If it can't be made available through the native bridget, we can duplicate this ticket in the other repos.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。