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

1

7

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.

Colbert answered 11/9, 2013 at 11:3 Comment(4)
Is there a Developer Options on that phone? Any particular settings you have to enable besides the common on in stock Android build?Shuping
@Shuping In developer options is nothing more then usual, and I tried some of them turn off/on. Nothing helped.Colbert
if from command line (platform-tools dir for example), you try adb kill-server, adb devices (so you check you device is the only one connected) and then adb logcat? Of course launch your application :)Shuping
I am facing the same problem on Samsung tab 2...how to enable this on samsung tab 2?Squish
M
7

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

Margaretemargaretha answered 10/11, 2013 at 10:18 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.