Search code examples
androidandroid-studiologcatandroid-logcatandroid-studio-2.0

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?


Solution

  • 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.