LogCat中没有显示调试级别的消息

问题描述:

由于某种原因,我能看到各级Log.i()及以上的消息,但不是Log.d()或Log.v()的水平。没有多少运气找到一个原因。任何人有任何想法如何解决这一问题?

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?

一些进一步的细节:这不是一个问题,我忘了选择在Eclipse中的logcat下拉合适的水平。有问题的日志消息并不在一个应用程序我有logcat的跟踪我的手机上显示任。 (调试日志消息从其他应用程序显示出来,虽然)。我运行OSX。

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.

原来我不得不直接通过ADB启用相应的日志记录级别。

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.