本文介绍了使用Crashlytics记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用多个Crashlytics.log()
命令,例如:
I am using multiple Crashlytics.log()
commands, for example:
Crashlytics.log("This is message 1");
Crashlytics.log("This is message 2");
但是当仪表板崩溃时,我只能看到"This is message 1",而看不到"This is message 2". Crashlytics日志仅显示第一个日志,而不显示之后的任何后续日志,还是我做错了什么?如何使用多个Crashlytics.log()
命令.
But when there is a crash in the dashboard I can only see "This is message 1" but not "This is message 2". Does Crashlytics log only show the first log not any subsequent log after that or am I doing anything wrong? How can I use multiple Crashlytics.log()
commands.
推荐答案
日志消息将被保存,但有异常.因此Crashlytics.log("1");
毫无例外不会做任何事情.
The log message will be saved with the exception. So the Crashlytics.log("1");
wont do anything without an exception.
您应该这样射击:
Crashlytics.log(Log.ERROR, "YourTAG", "YourMessage");
Crashlytics.logException(new Throwable("YourERROR"));
这篇关于使用Crashlytics记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!