如何Log.wtf()从Log.e差异()? [英] How does Log.wtf() differ from Log.e()?

查看:1287
本文介绍了如何Log.wtf()从Log.e差异()?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看过为android.util.Log 的文件,我不确保Log.e之间的的差异() Log.wtf()是什么。是preferred比其他?有没有功能差异?当然,他们不是多余的。

I have looked at the documentation for android.util.Log and I'm not sure exactly what the difference between Log.e() and Log.wtf() is. Is one preferred over the other? Is there a functionality difference? Surely they aren't redundant.

注意未来的读者的:当时这个问题被问,这个文件是不太清楚。如果你按照上面的链接,他们已经解决了这一问题。

Note to future readers: At the time this question was asked, the documentation for this was much less clear. If you follow the link above, they have fixed the problem.

推荐答案

有严重程度的差异;

Log.e()将只需登录一个错误日志与优先级错误。

Log.e() will simply log an error to the log with priority ERROR.

Log.wtf()将记录优先级ASSERT错误,并可以(根据系统配置)发送错误报告,并立即终止程序。

Log.wtf() will log an error with priority level ASSERT, and may (depending on the system configuration) send an error report and terminate the program immediately.

这篇关于如何Log.wtf()从Log.e差异()?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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