如何发送Crashlytics日志 [英] How to send Crashlytics log

查看:68
本文介绍了如何发送Crashlytics日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am using Crashlytics (now known as Fabric) in my app.

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

It works well when the app crashes. I can find the issue on the dashboard.

我正在尝试使用日志记录。

I am trying to use the logging. Something like:

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

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

I am not able to send this log in the dashboard. I have just tried to add something like:

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

但它不会发送日志。

Crashlytics可以发送日志吗?

推荐答案

您正在正确发送日志。但是请参阅官方文档所说的记录捕获的异常

You are sending the Log properly. But see what Official doc says Logging Caught Exceptions


所有记录的异常将显示为非致命。

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

为减少用户的网络流量,Crashlytics会将记录的异常一起批处理,并在下次启动应用程序时发送它们。在您的Crashlytics Web仪表板中看不到记录的异常,请尝试重新启动您的应用!

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!

这篇关于如何发送Crashlytics日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆