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

StackOverflow https://stackoverflow.com/questions/18739428

Frage

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.

War es hilfreich?

Lösung

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top