Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 291
everis Avatar asked Sep 11 '13 11:09

everis


People also ask

Why is my Logcat not showing anything in Android?

Solution 1: Restarting your Android Studio In your IDE Go to File > Invalidate Caches and Restart > Invalidate and Restart. This Solution will clear all the caches of Android studio IDE and restart it automatically, By the method, there are 80% change that Logcat will start work as before.

How do I get adb logs from my Android?

Navigate to device settings and enable Developer Options (see section for ADB logs) Navigate to Developer Options and tap on Take/Submit Bug Report. Select Full Report when prompted to get the full device info along with the logs. The bug report takes up to 2 minutes to be generated.

How do I view Android logs?

Log messages can be viewed in a Logcat window in Android Studio, or you can use the command line tool to pull them. Several Android apps are also available in the Google Play store that allow easy access to these tools.


1 Answers

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

like image 79
Seitam Avatar answered Sep 28 '22 01:09

Seitam