android - LogCat 不显示 TAG "SMS"

标签 android logcat ddms

@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 中的日志记录对上面代码中的某些行不起作用??

最佳答案

如前所述,有些标签不会进入默认缓冲区。

您可以通过使用“-b”logcat 选项指定要查看的缓冲区来查看它们。查看 Using LogCatViewing Alternative Log Buffers 部分查看可用的不同缓冲区。例如,要查看“SMS”logcat 消息,请使用以下命令启动 logcat:

adb logcat -b radio

关于android - LogCat 不显示 TAG "SMS",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8699756/

相关文章:

java - android上非 Activity InputConnection警告上的getExtractedText

android - 为什么 'data'文件夹不能像DDMS文件浏览器一样显示?

android - Eclipse DDMS 网络统计为空

android - Playstore:在Android Studio list 中制作的应用的 “0 devices supported”和

android - 未找到 TabHost addFlags()

android - 如何在 android 中通过 javascript 更改 WebView 内容字体系列?

javascript - 如果不是 HREF Javascript 那么什么 [例如手机]

Android 应用程序在手机 7.0 上运行良好,但在运行 7.1.2 的平板电脑上加载时崩溃

java - 安卓ListView报错

java - 即使在我的应用程序为 "interact"之后,DDMS 中我的应用程序进程怎么可能为 "exit"?