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.
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.
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.
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.
Try to follow these instructions. I have the same phone and I was experiencing the same problems until I tryied that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With