How does Log.wtf() differ from Log.e()?

前端 未结 7 607
臣服心动
臣服心动 2020-12-13 12:18

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 pref

7条回答
  •  天命终不由人
    2020-12-13 12:26

    There is a difference in severity;

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

    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.

提交回复
热议问题