BadCash BadCash - 3 months ago 17
Android Question

Log.wtf() displays as Log.e() in Android Studio 2.0?

I have styled my LogCat levels using Preferences -> Editor -> Colors & fonts -> Android Logcat, but all of a sudden when I do

Log.wtf()
it displays with the style set for the
Error
level, not
Assert
like it used to be?

Answer

On API 23, Log.wtf() no longer creates a log of ASSERT level, but rather ERROR level.

However, one can still get the style for the ASSERT level by using

Log.println(Log.ASSERT, "TAG", "Message");

on API 23.