简体   繁体   English

Crashlytics未显示日志

[英]Crashlytics not showing the logs

In my android project I'm using Crashlytics to get the app crash reports.I have also added the logs to see it in my dashboard.For adding logs I've used 在我的android项目中,我正在使用Crashlytics来获取应用程序崩溃报告。我还添加了日志以在仪表板上查看它。

Crashlytics.log (Log.ERROR, TAG, message);

So when I run the app for testing,and open the activity where I've added the Crashlytics log statements ,the logs were generated for the first time .I can see them on the dashboard. 因此,当我运行该应用程序进行测试时,打开添加了Crashlytics日志语句的活动,该日志是第一次生成的。我可以在仪表板上看到它们。 But when I again open the same activity ,I'm not able to see the new logs generated . 但是,当我再次打开相同的活动时,我看不到生成的新日志。 I read here that if the logs are not seen on the dashboard then restart the app.I did that ,but still couldn't see the logs on the dashboard,my dashboard only shows the logs which were generated for the first time.I also tried testing my app on different device but it still doesn't show on the dashboard.Can somebody please help me in solving this issue .Why am I not able to see all non-fatal logs on my dashboard? 在这里读到,如果在仪表板上看不到日志,请重新启动应用程序。我这样做了,但仍然看不到仪表板上的日志,我的仪表板仅显示了第一次生成的日志。尝试在其他设备上测试我的应用程序,但仍然无法在仪表板上显示。有人可以帮助我解决此问题。为什么我无法在仪表板上看到所有非致命日志?

如果这不会产生错误,则必须等待免费帐户中仪表板上注册的日志

Mike from Firebase here. 来自Firebase的Mike。

Crashlytics.log (Log.ERROR, TAG, message); will only be displayed if there is also a non-fatal - Crashlytics.logException(e); 仅当还存在非致命Crashlytics.logException(e);时才显示Crashlytics.logException(e); or fatal exception. 或致命的例外。 We prioritize capturing exceptions (fatal or non-fatal) over logs so if you log the value immediately before the exception, depending on the size of the log, it may not be recorded. 我们将捕获异常(致命或非致命)的优先级高于日志,因此,如果您在异常之前立即记录该值,则根据日志的大小,可能不会记录该值。 This is because we think capturing the exception is more important than the log. 这是因为我们认为捕获异常比日志更重要。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM