LogCat不会显示我的日志 [英] LogCat won't show my logs
问题描述
我已经搜索了类似的问题,但是没有发现任何有用的东西-我正在使用eclipse
,并且看不到我的日志.
该设备已正确连接,应用程序运行和做什么它应该做的,但我没有得到任何原木它.结果
我从设备上收到其他日志消息,而不是我打印的消息,例如Log.d("SMS", "hello")
.另一方面,如果我使用语句System.out.println("hello")
,则会看到标记为System.out
的语句.
我试图断开并重新连接设备,重新启动,关闭和打开
I've searched for similar problems, but I didn't find anything useful - I'm working with eclipse
, and I can't see my Logs.
The device is connected properly, the app runs and does what it's supposed to do, but I get no logs from it.
I get other logs messages from the device, not the ones that I print, e.g. Log.d("SMS", "hello")
. On the other hand, if I use the statement System.out.println("hello")
, I do see it, tagged as System.out
.
I've tried to disconnect and reconnect the device, restart it, close and open eclipse
, choose the device from Device
window. It happens both with a 'real' device and an emulator. I've also tried to remove the filtering, but nothing helps - I still don't get the logs.
推荐答案
好的,我发现这个问题 - 点击
显然有一些非法标签,而我使用了其中之一.
我的应用程序是垃圾短信阻止程序,并且我使用了标签SMS
.如果我将其更改为另一个标签(例如SMSBlocker),它会突然出现在LogCat
中.
Okay, I've found the problem -
Apprently there are some illegal tags, and I've used one of them.
My app is spam SMS blocker, and I've used the tag SMS
. If I change it to another tag (like SMSBlocker) it suddenly appears in the LogCat
.
这篇关于LogCat不会显示我的日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!