android - 如何发送 Crashlytics 日志

标签 android crashlytics

我在我的应用中使用 Crashlytics(现在称为 Fabric)。

它在应用程序崩溃时运行良好。我可以在仪表板上找到问题。

我正在尝试使用日志记录。像这样的东西:

Crashlytics.log(Log.WARN,MYTAG,"Error message");

我无法在仪表板中发送此日志。我刚刚尝试添加如下内容:

Crashlytics.logException(new RuntimeException("Fake exception"));

但它不发送日志。

Crashlytics 可以发送日志吗?

最佳答案

您正在正确发送日志。但是看看官方文档怎么说Logging Caught Exceptions

All logged exceptions will appear as "non-fatal" issues in the Crashlytics dashboard.

To reduce your users' network traffic, Crashlytics batches logged exceptions together and sends them the next time the app launches. If you don't see logged exceptions in your Crashlytics web dashboard, try restarting your app!

关于android - 如何发送 Crashlytics 日志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29693411/

相关文章:

ios - 结构崩溃仅出现在 "Launch status"上

ios - 如何在crashlytics中更改发行版本?

ios - Firebase Crashlytics for Swift 上未显示的实际原因

java - Android应用程序不同布局尺寸的问题

java - Android 读取文件时出现 ArrayIndexOutOfBounds

android - 如何以编程方式在Android中将PNG图像转换为GIF

android - 如何使用自定义属性拆分/取消分组 Crashlytics 非致命异常报告?

android - 如何测量 Android 应用程序数据大小并识别存储泄漏?

android - 在 android 3.2 中播放 m3u8 文件的问题

android-studio - Crashlytics Android Studio插件无法初始化