LogCat中没有显示调试级别的消息 [英] Logcat not showing debug level messages

查看:146
本文介绍了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.

这篇关于LogCat中没有显示调试级别的消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆