Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Logcat not showing debug level messages

Tags:

android

For some reason I'm able to see messages of all levels Log.i() and above, but not the Log.d() or Log.v() levels. Haven't had much luck finding a reason for this. Anyone have any idea how to fix this?

Some further details: This is not an issue with me forgetting to select the appropriate level in the logcat dropdown in Eclipse. The log messages in question don't show up on an app I have for logcat tracking on my phone either. (debug log messages are showing up from other apps though). I am running OSX.

like image 214
Catherine Avatar asked Oct 25 '12 06:10

Catherine


People also ask

Why is my Logcat not showing anything in Android?

Solution 1: Restarting your Android StudioIn 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 restart Logcat?

Solution 1: Restarting Logcat You need to press Alt + 6 twice to restart the Logcat. Restarting logcat often helps when it becomes irresponsive.


1 Answers

Turns out I had to enable the appropriate logging level directly through ADB.

$ ./adb shell stop
$ ./adb shell setprop log.tag.MYTAG VERBOSE
$ ./adb shell start

This solved the problem. Seems like a pain to do that every time I restart my phone though.

like image 126
Catherine Avatar answered Oct 11 '22 00:10

Catherine