恩。。wtf的意思是what a terrible failure 可怕的失败:报告一个永远不可能发生的情况。
然后这是官方原文:
What a Terrible Failure: Report a condition that should never happen. The error will always be logged at level ASSERT with the call stack. Depending on system configuration, a report may be added to the DropBoxManager and/or the process may be terminated immediately with an error dialog.
官方文档: wtf: What a Terrible Failure: Report a condition that should never happen. The error will always be logged at level ASSERT with the call stack. Depending on system configuration, a report may be added to the DropBoxManager and/or the process may be terminated immediately with an error dialog.
恩。。wtf的意思是what a terrible failure
可怕的失败:报告一个永远不可能发生的情况。
然后这是官方原文:
大概是用来打印正常情况下永远不会发生bug?
ps:不是what the fuck哈_(:з」∠)_
错误级别不同,
Log.e
代表错误级别的日志,Log.wtf
是中断(ASSERT)级别的错误,毕竟是What The Fuck
,一看就是严重BUG才骂街了。Log.e
就是单纯的错误。Log.wtf
会优先断言(ASSERT
),而且,如果你配置了的话,会生成一个错误报告,然后程序就结束啦。官方文档:
wtf:
What a Terrible Failure: Report a condition that should never happen. The error will always be logged at level ASSERT with the call stack. Depending on system configuration, a report may be added to the DropBoxManager and/or the process may be terminated immediately with an error dialog.
e:
Send an ERROR log message.