我在我的应用中使用 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/