Android logcat logging only info level on real device. Cannot get debug messages, not even unhandled exceptions

旧巷老猫 提交于 2019-12-06 00:29:48

问题


I am developing for android for some time, and so far I didnt have any problem with logcat. Until now, i have new phone for development, Huawei Y300 (Y300-0100) and in logcat there is no messages from DEBUG level. This is problem, because I don't get Exceptions stack trace prints. I have to use emulator for that, you understand that it is annoying..

So far i figured out this:

from:

    Log.v("TEST VERBOSE", "verbose level");
    Log.d("TEST DEBUG", "debug level");
    Log.i("TEST INFO", "info level");
    Log.w("TEST WARN", "warn level");
    Log.e("TEST ERROR", "error level");
    Log.wtf("TEXT WTF", "?? level");

Only this was printed:

    INFO/TEST INFO(21224): info level
    WARN/TEST WARN(21224): warn level
    ERROR/TEST ERROR(21224): error level

On emulator, ofcourse all of them are printed.
And on previous phones there was no problem(Huawei G300 and ZTE Blade).

I have been searching for solution for sometime, and did not find any.


回答1:


Try to follow these instructions. I have the same phone and I was experiencing the same problems until I tryied that.



来源:https://stackoverflow.com/questions/18739428/android-logcat-logging-only-info-level-on-real-device-cannot-get-debug-messages

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!