LogCat中没有显示TAG" SMS" [英] LogCat not displaying TAG "SMS"

查看:161
本文介绍了LogCat中没有显示TAG" SMS"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    Log.e("SMS","Hello World");   //not showing
    Log.v("SMS","Hello World");   //not showing
    Log.i("SMS","Hello World");   //not showing
    Log.d("SMS","Hello World");   //not showing

    Log.i("sms","Hello World");   //showing
}

为什么在logcat中的日志记录不工作的一些线在上面code ??

Why the Logging in the Logcat is not working for some line in the above code??

推荐答案

有一些标记,不要去默认的缓冲区,因为已经指出。

There are some tags that don't go to the default buffer, as has been stated.

您可以通过指定要查看与-blogcat的选项,缓冲区查看。检查部分的查看替代日志缓冲区的使用L​​ogCat中来查看不同的缓冲区可用。例如,看到短信logcat的消息,与启动logcat的:

You can view them by specifying which buffer to view with the "-b" logcat option. Check section Viewing Alternative Log Buffers of Using LogCat to view the different buffers available. For example, to see the "SMS" logcat messages, start logcat with:

adb logcat -b radio

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

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